[Geoserver-devel] Raster legends

Simone (and other interested parties)

I saw your comment on the legendgraphic wiki page. I have no concrete plans to improve getLegendGraphic support for rasters (other than what's already in place...a static image for all rasters)

I'll be honest, I don't think I have any really good ideas about how to do something like that...take a sample from a small area? A large area? Choose a sample based on representative data? If you've got the ideas, I'd love to help support it!

--saul

Farber, Saul (EEA) ha scritto:

Simone (and other interested parties)

I saw your comment on the legendgraphic wiki page. I have no
concrete plans to improve getLegendGraphic support for rasters (other
than what's already in place...a static image for all rasters)

I'll be honest, I don't think I have any really good ideas about how
to do something like that...take a sample from a small area? A large
area? Choose a sample based on representative data? If you've got
the ideas, I'd love to help support it!

Well, if the raster is an aerial/satellite image, I think a generic
symbol would be just ok. Yet, if the raster is a geophysics coverage,
that is, a DEM, a concentration of something, that is, numbers,
then the raster symbolizer should have some kind of colour table, and
that is something you can use to build the typical coloured bar
with a gradient of colours and associated values (I wish I could
find a sample on the net, but I'm not lucky today).

Cheers
Andrea

Well, if the raster is an aerial/satellite image, I think a generic
symbol would be just ok. Yet, if the raster is a geophysics coverage,
that is, a DEM, a concentration of something, that is, numbers,
then the raster symbolizer should have some kind of colour table, and
that is something you can use to build the typical coloured bar
with a gradient of colours and associated values (I wish I could
find a sample on the net, but I'm not lucky today).

Cheers
Andrea

I believe this is a good and quite possible approach. I have been
doing something like this, (although writing legends to a file before
hand):
http://smoke-fire.us/img/wms_client.png

It should be possible to generalize the solution for coverages and
create the graphic on the fly I think...

Alex