[Mapguide_users] Courious behavior of Properties panewithSetSelection

Kori Maleski Kori.Maleski at websoftdev.com
Mon Jan 8 17:06:11 EST 2007


This may because MapGuide Open and Enterprise use different coordinate
system/map projection software - PROJ4 versus Autodesk.

You will have to ensure that the projection is common in both server
implementations before doing a package import.  If it is missing in
Enterprise, you will have to define the projection via Autodesk Map and copy
the Coordysys files over if necessary.


Cheers,



________________________________




Kori Maleski
Senior Application Developer
WEBSOFT DEVELOPERS, INC.
P: (530) 759-8754 ext 114
F: (530) 759-0923
kori.maleski at websoftdev.com
________________________________

 

-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Chris Claydon
Sent: Monday, January 08, 2007 12:55 PM
To: meli-m; Mapguide_users at lists.osgeo.org
Subject: RE: [Mapguide_users] Courious behavior of Properties
panewithSetSelection

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
displayed.

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);

To:

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
withSetSelection


Hi all,

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

greetings,

Melanie
-- 
View this message in context:
http://www.nabble.com/Courious-behavior-of-Properties-pane-with-SetSelec
tion-tf2937944.html#a8213813
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

_______________________________________________
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