[mapserver-commits] r7845 - in trunk/mapserver: . mapscript/doc mapscript/swiginc

svn at osgeo.org svn at osgeo.org
Wed Aug 13 09:57:25 EDT 2008


Author: tamas
Date: 2008-08-13 09:57:24 -0400 (Wed, 13 Aug 2008)
New Revision: 7845

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapscript/doc/mapscript.txt
   trunk/mapserver/mapscript/swiginc/layer.i
Log:
Expose msConnectLayer to the SWIG mapscript interface (#2735)

Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2008-08-08 18:37:19 UTC (rev 7844)
+++ trunk/mapserver/HISTORY.TXT	2008-08-13 13:57:24 UTC (rev 7845)
@@ -12,6 +12,8 @@
 Current Version (5.3-dev, SVN trunk):
 ------------------------------------
 
+- Expose msConnectLayer to the SWIG mapscript interface (#2735)
+
 - SLD: when creating well known symbols on the fly the pen-up value
   used should be -99.
 

Modified: trunk/mapserver/mapscript/doc/mapscript.txt
===================================================================
--- trunk/mapserver/mapscript/doc/mapscript.txt	2008-08-08 18:37:19 UTC (rev 7844)
+++ trunk/mapserver/mapscript/doc/mapscript.txt	2008-08-13 13:57:24 UTC (rev 7845)
@@ -1391,6 +1391,11 @@
 
 .. note:: demote() is removed in MapServer 4.4
 
+connectLayer(int connectiontype, string library_str) : int
+    Changes the connectiontype of the layer and recreates the vtable
+    according to the new connection type. This method should be used
+    instead of setting the connectiontype parameter directly.    
+
 draw( mapObj_ map, imageObj_ image ) : int
     Renders this layer into the target image, adding labels to the cache if
     required.  Returns MS_SUCCESS or MS_FAILURE. 

Modified: trunk/mapserver/mapscript/swiginc/layer.i
===================================================================
--- trunk/mapserver/mapscript/swiginc/layer.i	2008-08-08 18:37:19 UTC (rev 7844)
+++ trunk/mapserver/mapscript/swiginc/layer.i	2008-08-13 13:57:24 UTC (rev 7845)
@@ -544,5 +544,10 @@
     {
         return msLayerClearProcessing(self);
     }
-
+    
+    int connectLayer(int connectiontype,
+                            char *library_str) 
+    {    
+        return msConnectLayer(self, connectiontype, library_str);
+    }
 }



More information about the mapserver-commits mailing list