[mapserver-commits] r8583 - trunk/docs/ogc

svn at osgeo.org svn at osgeo.org
Wed Feb 18 18:02:30 EST 2009


Author: assefa
Date: 2009-02-18 18:02:30 -0500 (Wed, 18 Feb 2009)
New Revision: 8583

Modified:
   trunk/docs/ogc/sld.txt
Log:
Add support for sld 1.1 raster symbolizer #473

Modified: trunk/docs/ogc/sld.txt
===================================================================
--- trunk/docs/ogc/sld.txt	2009-02-18 23:02:05 UTC (rev 8582)
+++ trunk/docs/ogc/sld.txt	2009-02-18 23:02:30 UTC (rev 8583)
@@ -473,6 +473,8 @@
 
 **Table 12. ColorMap**
 
+The following Features are available in SLD 1.0
+
 ======== ========= =====
 Features Supported Notes
 ======== ========= =====
@@ -482,7 +484,7 @@
 Label    No 
 ======== ========= =====
 
-The following is an example of ColorMap usage.
+The following is an example of ColorMap usage for SLD 1.0.
 
 If we have following ColorMap in an SLD:
 
@@ -510,6 +512,66 @@
 
 Note that the ColorMapEntry quantity parameters should be in increasing order.
 
+
+The following Features are available in SLD 1.1
+
+========== ========= =====
+Features   Supported Notes
+========== ========= =====
+Categorize Yes  
+======== ========= =====
+
+The following is an example of and SLD 1.1.0 with a raster symbolizer
+
+.. code-block:: guess
+
+   <StyledLayerDescriptor version="1.1.0" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:se="http://www.opengis.net/se" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+   <NamedLayer>
+   <se:Name>landsat</se:Name>
+   <UserStyle>
+   <se:Name>xxx</se:Name>
+   <se:FeatureTypeStyle>
+   <se:Rule>
+   <se:RasterSymbolizer>
+   <se:Opacity>0.7</se:Opacity>
+   <se:ColorMap>
+   <se:Categorize fallbackValue="#78c818">
+   <se:LookupValue>Rasterdata</se:LookupValue>
+   <se:Value>#ffffff</se:Value>
+   <se:Threshold>22</se:Threshold>
+   <se:Value>#00ff00</se:Value>
+   <se:Threshold>30</se:Threshold>
+   <se:Value>#00bf3f</se:Value>
+   <se:Threshold>37</se:Threshold>
+   <se:Value>#007f7f</se:Value>
+   <se:Threshold>45</se:Threshold>
+   <se:Value>#003fbf</se:Value>
+   <se:Threshold>52</se:Threshold>
+   <se:Value>#0000ff</se:Value>
+   <se:Threshold>60</se:Threshold>
+   <se:Value>#000000</se:Value>
+   </se:Categorize>
+   </se:ColorMap>
+   </se:RasterSymbolizer>
+   </se:Rule>
+   </se:FeatureTypeStyle>
+   </UserStyle>
+   </NamedLayer>
+   </StyledLayerDescriptor>
+
+
+The classes that are created are:
+
+::
+
+    class 1: [pixel] < 22 with color ffffff
+    class 2: [pixel] >= 22 AND [pixel] < 30 with color 00ff00
+    class 3: [pixel] >= 30 AND [pixel] < 37 with color 00bf3f 
+    class 4: [pixel] >= 37 AND [pixel] < 45 with color 007f7f
+    class 5: [pixel] >= 45 AND [pixel] < 52 with color 003fbf
+    class 6: [pixel] >= 52 AND [pixel] < 60 with color 0000ff
+    class 7: [pixel] >= 60 with color 000000 
+
 Examples using 8 bits and 16 bits rasters can be seen at:
 
 - `example 1`_ 



More information about the mapserver-commits mailing list