So Andrea, in adding dpi to GetLegendGraphic request, is this a fair summary?:
Text grows: Expected Line Doesn't Get thicker: Unexpected Points grow: Expected Legend icons grow: Should they? Hmm. It falls in that fussy area between spatial and page coordinates, doesn't it. When a getmap request is processed, the user specifies the dpi to force the scaling of elements, and then independently requests the actual full size of the map. In the case of a legend element, only one is specified, so we have an ambiguous case, as we are dealing with a purely page coordinates case, unlike the getmap. Should legend icons grow? I'd say they should grow (disclosure: I have a vested interest in this outcome). If someone is applying DPI to the request, the expectation is that the legend icons would match the font size. The legend itself doesn't make sense as a single request otherwise. Yes, it makes for a bit of a mess to put it into a layout, but that's where we have a mix of page and map expectations, where this request might make more sense: http://localhost:8080/geoserver/topp/wms?LAYERS=topp%3Astates&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-144.13570042969,17.896190337891,-56.139554062508,55.125329185547&WIDTH=1560&HEIGHT=660&bgcolor=0xDDDDDD&format_options=layout:legend;dpi:140 http://localhost:8080/geoserver/topp/wms?LAYERS=topp%3Astates&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-144.13570042969,17.896190337891,-56.139554062508,55.125329185547&WIDTH=1560&HEIGHT=660&bgcolor=0xDDDDDD&format_options=layout:legend;dpi:140 than this: http://localhost:8080/geoserver/topp/wms?LAYERS=topp%3Astates&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-144.13570042969,17.896190337891,-56.139554062508,55.125329185547&WIDTH=780&HEIGHT=330&bgcolor=0xDDDDDD&format_options=layout:legend;dpi:140 http://localhost:8080/geoserver/topp/wms?LAYERS=topp%3Astates&STYLES=&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG%3A4326&BBOX=-144.13570042969,17.896190337891,-56.139554062508,55.125329185547&WIDTH=780&HEIGHT=330&bgcolor=0xDDDDDD&format_options=layout:legend;dpi:140 -- View this message in context: http://osgeo-org.1560.n6.nabble.com/GetLegendGraphics-dpi-and-decorations-oh-my-tp4468887p4469949.html Sent from the GeoServer - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
