[mapguide-users] Filtering a selection

Knight, Gregory Gregory.Knight.bra at cityofboston.gov
Mon Jan 29 09:47:07 EST 2007


I think the approach you need to employ here is to use the layer
collection from your selection and loop through the layers checking for
your layer of interest.


If you need more details, you can refer to this thread on the
mapguide/nabble forum:




Hope this helps,





From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Scott
Sent: Friday, January 26, 2007 8:44 PM
To: 'MapGuide Users Mail List'
Subject: [mapguide-users] Filtering a selection


I want to be able to filter a current mapguide Selection just down to
items on one or two specific layers of the original selection set


Example:  selection.FromXml(Session.Selection)  >>>>> Gives Me Objects
on the Parcel Layer, Water Pipes, And Sanitary Pipes Layer


I would like a simple way to change my Selection using the Server API to
only Objects from this Selection on the Water and Sanitary pipes Layer.


I tried doing   selection.GenerateFilter(layer, layerClassName)>

But that doesn't weed out my selection but instead makes it bigger to
include All the Pipes as well as the original Parcels....What am I

The substance of this message, including any attachments, may be
confidential, legally
privileged and/or exempt from disclosure pursuant to Massachusetts
law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and
delete the material from any computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20070129/140bac1d/attachment-0001.html

More information about the mapguide-users mailing list