[mapserver-commits] r10938 -
trunk/mapserver/mapscript/csharp/examples
svn at osgeo.org
svn at osgeo.org
Sat Feb 5 09:44:10 EST 2011
Author: tamas
Date: 2011-02-05 06:44:10 -0800 (Sat, 05 Feb 2011)
New Revision: 10938
Modified:
trunk/mapserver/mapscript/csharp/examples/inline.cs
Log:
Modify the example to follow the recent changes in the query handling. (#3647)
Modified: trunk/mapserver/mapscript/csharp/examples/inline.cs
===================================================================
--- trunk/mapserver/mapscript/csharp/examples/inline.cs 2011-02-04 21:45:29 UTC (rev 10937)
+++ trunk/mapserver/mapscript/csharp/examples/inline.cs 2011-02-05 14:44:10 UTC (rev 10938)
@@ -105,7 +105,7 @@
//perform a query
layer.queryByRect(map, new rectObj(0, 0, 450, 450, 0));
- resultCacheMemberObj res;
+ resultObj res;
shapeObj feature;
using (resultCacheObj results = layer.getResults())
{
@@ -116,7 +116,7 @@
for (int j = 0; j < results.numresults; j++)
{
res = results.getResult(j);
- feature = layer.getFeature(res.shapeindex, res.tileindex);
+ feature = layer.getShape(res);
if (feature != null)
{
Console.WriteLine(" Feature: shapeindex=" + res.shapeindex + " tileindex=" + res.tileindex);
More information about the mapserver-commits
mailing list