[mapguide-users] Select from Selection

Jackie Ng jackie.ng at aecsystems.com.au
Mon Mar 3 00:25:09 EST 2008


Try the following.

- Create an MgSelection from your selection xml.
- Create an MgFeatureQueryOptions object, set its filter to the
GenerateFilter() of the MgSelection object.
- Combine this query with your spatial filter.
- Pass it to SelectFeatures() of MgFeatureService. The returned
MgFeatureReader should have all the features from your current selection
that satisfy your spatial filter.

Hope that helps.

- Jackie


JillP wrote:
> 
> I am interested in allowing users to select features through a query, then
> refine their selection spatially.  I believe this used to be called an
> nselect (at least in the old ArcInfo world).  I can get the selection via
> a text query and the selection via a spatial query -- but have not figured
> out how to refine my text query results with a selection on the map.  Has
> anybody done this? Or have any idea how to accomplish this?  I'm stuck on
> how to get it going.
> 
> Thanks for your help,
> Jill
> 

-- 
View this message in context: http://www.nabble.com/Select-from-Selection-tp15765468s16610p15797975.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list