Hi,
OpenGeo asked me to look into getting a better GetLegendGraphics output
for generic raster.
In fact the current one is rather ugly:
http://demo.opengeo.org/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=bluemarble

A colored R.... R what? Ah, "R"aster. However it's quite pixellated
and does not really look professional.

I've looked around to see what other software does... most of the
time (ArcExplorer, ArcGis, OpenJump) there is really no icon at
all.

uDig as its own little icon. It's sure raster, but maybe a little
too simple? See udig.png attached (coming from a screenshot).
It's however better than the current R imho.

Also tried to look into gvSig but could not make it work at all...
with my own JDK it works fine but does not open raster files
because it cannot initalize the custom gvSig GDAL extensions,
with their own most dialogs are solid gray, which is
a known issue on Ubuntu if you use any JRE 1.5.
Oh well, if anybody has it working and finds they are using
a nice icon, please report?

Oh, there is also the icon that we're using in the GeoServer
GUI of course. We could consider using that one as well,
attached as raster.png

The main issue I see with the above raster icons is that they don't scale, whilst GetLegendGraphic users can decide how big the icon is...
See for example:

http://demo.opengeo.org/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=bluemarble
http://demo.opengeo.org/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=40&HEIGHT=40&LAYER=bluemarble

and compare with:

http://demo.opengeo.org/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=20&HEIGHT=20&LAYER=topp:states
http://demo.opengeo.org/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&WIDTH=40&HEIGHT=40&LAYER=topp:states

I guess a better approach would be to have a SVG icon that we can paint
at different scales (that would be a bit on the heavy site) or just
go plain java2d if the icon is actually simple (like uDig one, but
the one we use in GS is just a matter of writing a simple loop too)

Thoughts?

Cheers
Andrea


--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

<<inline: udig.png>>

<<inline: raster.png>>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to