[mapserver-users] raster layer legend: how to
Martin Landa
landa.martin at gmail.com
Sat Dec 2 07:56:31 PST 2017
Hi,
after some digging in manuals and googling I am still not able to set
up correctly legend for my WMS layer published by MapServer, eg.
https://rain1.fsv.cvut.cz/services/wms?service=wms&version=1.3.0&layer=H_N2_24h&REQUEST=getlegendgraphic&FORMAT=image/png&sld_version=1.1.0
The underlaing TIFF has color table defined:
Metadata:
COLOR_TABLE_RULES_COUNT=2
COLOR_TABLE_RULE_RGB_0=2.000000e+01 1.000000e+02 255 255 255 0 0 200
COLOR_TABLE_RULE_RGB_1=1.000000e+02 2.200000e+02 0 0 200 0 0 255
Generated_with=GRASS GIS 7.1.svn
Color Table (RGB with 256 entries)
I would like to set up legend like:
http://geo102.fsv.cvut.cz/~landa/tmp/wms-legend.png
Thanks for any hits in advance! Martin
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
More information about the MapServer-users
mailing list