[mapserver-commits] r12050 - branches/branch-6-0/docs/en/mapscript branches/branch-6-0/docs/en/mapscript/php branches/branch-6-0/docs/en/ogc trunk/docs/en/mapscript trunk/docs/en/mapscript/php trunk/docs/en/ogc

svn at osgeo.org svn at osgeo.org
Fri Aug 12 09:44:20 EDT 2011


Author: havatv
Date: 2011-08-12 06:44:20 -0700 (Fri, 12 Aug 2011)
New Revision: 12050

Modified:
   branches/branch-6-0/docs/en/mapscript/mapscript.txt
   branches/branch-6-0/docs/en/mapscript/php/index.txt
   branches/branch-6-0/docs/en/ogc/sld.txt
   trunk/docs/en/mapscript/mapscript.txt
   trunk/docs/en/mapscript/php/index.txt
   trunk/docs/en/ogc/sld.txt
Log:
generateSLD must have layer status on - updated docs for mapscript (php and swig) and the SLD document (#3668).

Modified: branches/branch-6-0/docs/en/mapscript/mapscript.txt
===================================================================
--- branches/branch-6-0/docs/en/mapscript/mapscript.txt	2011-08-12 13:19:53 UTC (rev 12049)
+++ branches/branch-6-0/docs/en/mapscript/mapscript.txt	2011-08-12 13:44:20 UTC (rev 12050)
@@ -1032,7 +1032,8 @@
     string on error.
 
 generateSLD() : void
-    Returns an SLD XML string based on all the classes found in the layers.
+    Returns an SLD XML string based on all the classes found in the layer
+    (the layer must have `STATUS` `on`).
 
 getClass( int i ) : classObj_
     Fetch the requested class object.  Returns NULL if the class index is
@@ -1599,7 +1600,7 @@
     Clear layer query result caches.  Default is -1, or *all* layers.
     
 generateSLD( ) : string
-    Return SLD XML as a string for map layers.
+    Return SLD XML as a string for map layers that have `STATUS` `on`.
     
 getConfigOption( string key ) : string
     Fetches the value of the requested configuration key if set.  Returns

Modified: branches/branch-6-0/docs/en/mapscript/php/index.txt
===================================================================
--- branches/branch-6-0/docs/en/mapscript/php/index.txt	2011-08-12 13:19:53 UTC (rev 12049)
+++ branches/branch-6-0/docs/en/mapscript/php/index.txt	2011-08-12 13:44:20 UTC (rev 12050)
@@ -1044,7 +1044,7 @@
 
 string generateSLD()
     Returns an SLD XML string based on all the classes found in the
-    layers.
+    layer (the layer must have `STATUS` `on`).
 
 int moveclassup(int index)
     The class specified by the class index will be moved up into
@@ -1631,7 +1631,7 @@
 
 string generateSLD()
     Returns an SLD XML string based on all the classes found in all 
-    the layers.
+    the layers that have `STATUS` `on`.
 
 string getconfigoption(string key)
     Returns the config value associated with the key.

Modified: branches/branch-6-0/docs/en/ogc/sld.txt
===================================================================
--- branches/branch-6-0/docs/en/ogc/sld.txt	2011-08-12 13:19:53 UTC (rev 12049)
+++ branches/branch-6-0/docs/en/ogc/sld.txt	2011-08-12 13:44:20 UTC (rev 12050)
@@ -644,6 +644,9 @@
     // get the parcel layer
     $oLayer = $oMap->getLayerByName("parcel");
 
+    // force visibilty of the layer
+    $oLayer->set('status', MS_ON);
+
     // generate the sld for that layer
     $SLD = $oLayer->generateSLD();
 

Modified: trunk/docs/en/mapscript/mapscript.txt
===================================================================
--- trunk/docs/en/mapscript/mapscript.txt	2011-08-12 13:19:53 UTC (rev 12049)
+++ trunk/docs/en/mapscript/mapscript.txt	2011-08-12 13:44:20 UTC (rev 12050)
@@ -1032,7 +1032,8 @@
     string on error.
 
 generateSLD() : void
-    Returns an SLD XML string based on all the classes found in the layers.
+    Returns an SLD XML string based on all the classes found in the layer
+    (the layer must have `STATUS` `on`).
 
 getClass( int i ) : classObj_
     Fetch the requested class object.  Returns NULL if the class index is
@@ -1599,7 +1600,7 @@
     Clear layer query result caches.  Default is -1, or *all* layers.
     
 generateSLD( ) : string
-    Return SLD XML as a string for map layers.
+    Return SLD XML as a string for map layers that have `STATUS` `on`.
     
 getConfigOption( string key ) : string
     Fetches the value of the requested configuration key if set.  Returns

Modified: trunk/docs/en/mapscript/php/index.txt
===================================================================
--- trunk/docs/en/mapscript/php/index.txt	2011-08-12 13:19:53 UTC (rev 12049)
+++ trunk/docs/en/mapscript/php/index.txt	2011-08-12 13:44:20 UTC (rev 12050)
@@ -1044,7 +1044,7 @@
 
 string generateSLD()
     Returns an SLD XML string based on all the classes found in the
-    layers.
+    layer (the layer must have `STATUS` `on`).
 
 int moveclassup(int index)
     The class specified by the class index will be moved up into
@@ -1631,7 +1631,7 @@
 
 string generateSLD()
     Returns an SLD XML string based on all the classes found in all 
-    the layers.
+    the layers that have `STATUS` `on`.
 
 string getconfigoption(string key)
     Returns the config value associated with the key.

Modified: trunk/docs/en/ogc/sld.txt
===================================================================
--- trunk/docs/en/ogc/sld.txt	2011-08-12 13:19:53 UTC (rev 12049)
+++ trunk/docs/en/ogc/sld.txt	2011-08-12 13:44:20 UTC (rev 12050)
@@ -644,6 +644,9 @@
     // get the parcel layer
     $oLayer = $oMap->getLayerByName("parcel");
 
+    // force visibilty of the layer
+    $oLayer->set('status', MS_ON);
+
     // generate the sld for that layer
     $SLD = $oLayer->generateSLD();
 



More information about the mapserver-commits mailing list