[mapguide-users] switching to Maestro 5 API
mika at digikartta.net
mika at digikartta.net
Wed Nov 27 03:29:40 PST 2013
Yep,
thanks Hans, I was going to.. but are there any classes for
constructing filter from the mapselection? What this all does, is that
eventually there will be one buffer around selected areas on the map.
The areas can be selected either programmatically or manually from the
screen.
Sorry if I am asking stupid questions. It's been a while when I last
did anything with the Mapguide and now I am rewriting the whole code in
order to adjust it to the new API, that is MaestroAPI 5.
- mika -
Hans Milling kirjoitti 2013-11-27 13:00:
> 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.
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list