[mapserver-commits] r11740 - trunk/mapserver/mapscript/java/tests/threadtest

svn at osgeo.org svn at osgeo.org
Sat May 21 08:02:03 EDT 2011


Author: unicoletti
Date: 2011-05-21 05:02:03 -0700 (Sat, 21 May 2011)
New Revision: 11740

Modified:
   trunk/mapserver/mapscript/java/tests/threadtest/MapThread.java
Log:
Modified threadtests so that it compiles and run again after api changes #3887

Modified: trunk/mapserver/mapscript/java/tests/threadtest/MapThread.java
===================================================================
--- trunk/mapserver/mapscript/java/tests/threadtest/MapThread.java	2011-05-20 20:45:31 UTC (rev 11739)
+++ trunk/mapserver/mapscript/java/tests/threadtest/MapThread.java	2011-05-21 12:02:03 UTC (rev 11740)
@@ -57,7 +57,8 @@
 	layerObj layer = map.getLayer(3);
 	if (layer!=null) {
 		layer.open();
-		shapeObj shape=layer.getFeature(0,-1);
+		layer.queryByIndex(map,0,-1,mapscriptConstants.MS_FALSE);
+		shapeObj shape=layer.getShape(layer.getResults().getResult(0));
 		if (shape!=null) {
 			shapeObj buffer=shape.buffer(0.1);
 			if (buffer != null) {



More information about the mapserver-commits mailing list