[mapserver-users] gradient color and discrete color in SLD for raster data

Peisheng Zhao zhaops at hotmail.com
Wed Feb 12 08:06:41 PST 2014


Hi all,

In this document, http://docs.geoserver.org/stable/en/user/styling/sld-cookbook/rasters.html#discrete-colors, GeoServer uses "type=intervals" to make raster data rendering with discrete color in SLD, for example
<FeatureTypeStyle>
     <Rule>
       <RasterSymbolizer>
         <ColorMap type="intervals">
           <ColorMapEntry color="#008000" quantity="150" />
           <ColorMapEntry color="#663333" quantity="256" />
         </ColorMap>
       </RasterSymbolizer>
     </Rule>
   </FeatureTypeStyle>

Without this attribute, the map rendering is with gradient colors.

But I cannot find this in MapServer document. It seems MapServer only supports discrete colors when using SLD.

Any thought about this?

Thanks.





 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140212/0849d01a/attachment.htm>


More information about the MapServer-users mailing list