[mapserver-commits] r11079 - trunk/mapserver/mapscript/java/examples

svn at osgeo.org svn at osgeo.org
Sat Mar 5 08:51:09 EST 2011


Author: tamas
Date: 2011-03-05 05:51:09 -0800 (Sat, 05 Mar 2011)
New Revision: 11079

Modified:
   trunk/mapserver/mapscript/java/examples/QueryByAttributeUnicode.java
Log:
Fixed the java example according to RFC-65 (#3647)

Modified: trunk/mapserver/mapscript/java/examples/QueryByAttributeUnicode.java
===================================================================
--- trunk/mapserver/mapscript/java/examples/QueryByAttributeUnicode.java	2011-03-05 05:20:03 UTC (rev 11078)
+++ trunk/mapserver/mapscript/java/examples/QueryByAttributeUnicode.java	2011-03-05 13:51:09 UTC (rev 11079)
@@ -20,12 +20,11 @@
 			layer.queryByAttributes(map,"KREIS_NAME", filter, mapscriptConstants.MS_MULTIPLE);
 			layer.open();
 
-			resultCacheMemberObj result = layer.getResult(0);
+			resultObj result = layer.getResult(0);
 			if (result==null) {
-				System.out.println("Error: no results found, resultCacheMemberObj is null!");
+				System.out.println("Error: no results found, resultObj is null!");
 			} else {
-				shapeObj shp = new shapeObj( layer.getType().swigValue() );
-				layer.getShape(shp, result.getTileindex(), result.getShapeindex());
+				shapeObj shp = layer.getShape(result);
 				for (int z = 0; z < shp.getNumvalues(); z++) {
 					System.out.println("shp.value[" + z + "]=" + shp.getValue(z));
 				}



More information about the mapserver-commits mailing list