Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm new to the world of GIS and geoserver so sorry if I'm asking an obvious or simple question.

I'm using GetLegendGraphic to create a legend for a raster layer on the server, as it stands it looks like this:

legend

http://norsewind.eu:8080/geoserver/wms?REQUEST=GetLegendGraphic&FORMAT=image/png&WIDTH=20&HEIGHT=20&SCALE=160000000&LAYER=norse:norse_map_1

I'd like to know how to format the numbers to a specific number of decimal points. Also I don't need the '=x' part, can that be removed?

Thanks

share|improve this question

1 Answer 1

The text parts are controlled in the SLD colormap label, ie

    <ColorMapEntry color="#FFFF00" quantity="0.25" label="0.25"/>

I don't think either of your questions can be handled from the GetLegendGraphic request.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.