On Tue, Feb 14, 2012 at 8:37 PM, Stephen Mather <[email protected]>wrote:
> So Andrea, in adding dpi to GetLegendGraphic request, is this a fair > summary?: > > Text grows: Expected > Line Doesn't Get thicker: Unexpected > Line does actually get thicker, it's just (very) hard to notice since the original width is 0.2, so when you double it it's still just 0.4 thick, which visually does not make much of a difference. If we use a much larger dpi it gets thicker in a visible way, see the attached legend generated at 1200dpi. I've also attached a sample with a legend using a point symbolizer for the "poi", normal and at 1200dpi. > 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 > > Agreed Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf -------------------------------------------------------
<<attachment: states-legend-nq8.png>>
<<attachment: poi.png>>
<<attachment: poi_1200-nq8.png>>
------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________ Geoserver-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-devel
