[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-commits
Subject:    [mapserver-commits] r12932 - in trunk/docs/en: input mapscript
From:       svn () osgeo ! org
Date:       2011-12-29 8:56:21
Message-ID: 20111229085621.082783902C0 () trac ! osgeo ! org
[Download RAW message or body]

Author: unicoletti
Date: 2011-12-29 00:56:20 -0800 (Thu, 29 Dec 2011)
New Revision: 12932

Modified:
   trunk/docs/en/input/raster.txt
   trunk/docs/en/mapscript/querying.txt
Log:
Documented mapscript query API changes introduced in 6.0 (#4139)

Modified: trunk/docs/en/input/raster.txt
===================================================================
--- trunk/docs/en/input/raster.txt	2011-12-29 08:49:11 UTC (rev 12931)
+++ trunk/docs/en/input/raster.txt	2011-12-29 08:56:20 UTC (rev 12932)
@@ -747,9 +747,7 @@
     if result is None:
       break
         
-    print '(%d,%d)' % (result.shapeindex, result.tileindex)
-        
-    s = layer.getShape( result.shapeindex, result.tileindex )
+    s = layer.getShape( result )
     for i in range(layer.numitems):
       print '%s: %s' % (layer.getItem(i), s.getValue(i))
             

Modified: trunk/docs/en/mapscript/querying.txt
===================================================================
--- trunk/docs/en/mapscript/querying.txt	2011-12-29 08:49:11 UTC (rev 12931)
+++ trunk/docs/en/mapscript/querying.txt	2011-12-29 08:56:20 UTC (rev 12932)
@@ -78,7 +78,7 @@
         for i in range(results.numresults):
             result = results.getResult(i)
             
-            layer.getFeature(result.shapeindex, result.tileindex)
+            layer.getFeature(result)
             
             ...  # do something with this feature
 
@@ -88,15 +88,11 @@
 Backwards Compatibility
 -----------------------
 
-Scripts using the 4.2 API can continue to access query result members
-through layer methods::
+The API changed substantially with version 6.0 and backward compatibility was broken.
+Scripts will have to be updated to work
+with the new API.
 
-   for i in range(layer.getNumResults()):
-       result = layer.getResult(0)
-       
-but should adopt the new API for use in new work.
 
-
 Attribute Queries
 =================
 

_______________________________________________
mapserver-commits mailing list
mapserver-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic