getFeature problem with C# MapScript

Tamas Szekeres szekerest at GMAIL.COM
Mon Aug 14 15:13:43 EDT 2006


Hi,

>
> it seems that the the query by rectangle returns more than one shape object,
> should I loop through the query results and store the shape objects in an
> shapeObj type array?

I think i still could not understand exactly your problem.
If you want to get only one result queryByPoint would be more sufficient.
If you want to display the results you can use the layerObj.drawQuery
or mapObj.drawQuery. Or you could create an inline layer and add the
shapes to the layer one by one using the layerObj.getResults. In the
latter case you have more contol on how the objects will be displayed
on the map. The resultcache mentioned previously contains only the
indexes of the features. The features should be obtained from the
database by the index.

Best Regards,

Tamas



More information about the mapserver-users mailing list