[mapguide-users] Re: Selection By Location
jumpinjackie at gmail.com
Tue Mar 15 05:28:50 EDT 2011
Create an MgSelection from your MgMap
Get the selected feature from this MgSelection (an MgFeatureReader)
Get the geometry component of this selected feature (MgGeometry created via
Use this MgGeometry as part of the spatial filter for a second feature query
against your Agencies layer.
The MgFeatureReader from this second query will be the agencies contained
within your (Parcel) MgGeometry.
You can then either iterate through this reader to list the agencies, or
pass it to a new MgSelection, call ToXml() to get the selection XML, which
you can then set client-side to have all the matching agencies selected.
Take a look at the "Find features in buffer" example in the Developer's
Guide examples. It is pretty similar to what I've just outlined.
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Selection-By-Location-tp6172016p6172063.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users