[Mapguide_users] Courious behavior of Properties pane withSetSelection

Chris Claydon chris.claydon at autodesk.com
Mon Jan 8 15:54:51 EST 2007

Hi Melanie,

The property information is currently retrieved by making a call to the
Rendering Service "QueryFeatures" method. It uses a spatial filter based
on the geometry of the selected feature to retrieve the properties of
the first feature that meets the filtering requirements.

Unfortunately, it is possible that overlapping or adjacent features meet
the same criteria, and this is why the wrong properties may be

I'm looking into a way to fix this for both cases (adjacent and
overlapping). In the meantime, you should be able to fix the problem for
adjacent features only by passing the geometry's centroid into the
filter instead of the whole geometry.

You can modify setselection.aspx to achieve this by changing:

MgFeatureInformation featInfo = renderingSrvc.QueryFeatures(map,
layerNames, geometry, MgFeatureSpatialOperations.Intersects, 1);


MgFeatureInformation featInfo = renderingSrvc.QueryFeatures(map,
layerNames, geometry.GetCentroid(),
MgFeatureSpatialOperations.Intersects, 1);

Please let me know if this helps.

Chris Claydon.

-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of meli-m
Sent: January 8, 2007 12:45 AM
To: Mapguide_users at lists.osgeo.org
Subject: [Mapguide_users] Courious behavior of Properties pane

Hi all,

does somebody mentioned this curious problem?
If I send an selectionXml to the map, the right feature is highlighted
the map, but the wrong properties are shown in the Properties pane. To
more precise: The properties came from the parcel right next to the


View this message in context:
Sent from the MapGuide Users mailing list archive at Nabble.com.

Mapguide_users mailing list
Mapguide_users at lists.osgeo.org

More information about the Mapguide-users mailing list