[mapguide-users] switching to Maestro 5 API

Hans Milling hm at geograf.dk
Wed Nov 27 03:00:50 PST 2013


I use QueryFeatureSource instead of the SelectFeatures where filter is a
string.

IFeatureService featSvc =
(IFeatureService)con.GetService((int)ServiceType.Feature);
IReaderfsr = featSvc.QueryFeatureSource(resourceid, classname, filter,
columns);
while (fsr.ReadNext())
{
  string value = (string)fsr[valuecolumn];
  ICoordinate coord = (IGeometry)fsr[geometrycolumn].Coordinates;
  .. do something
}

Best regards
  Hans Milling...



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/switching-to-Maestro-5-API-tp5090710p5091451.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list