[mapserver-commits] r12932 - in trunk/docs/en: input mapscript
svn at osgeo.org
svn at osgeo.org
Thu Dec 29 03:56:21 EST 2011
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
=================
More information about the mapserver-commits
mailing list