[Mapguide_dev] RE: [Mapguide_users] Coordinate Systems and Zooms
Trevor Wekel
trevor.wekel at autodesk.com
Thu Jan 4 12:30:30 EST 2007
Hi Chris,
Virtually all of the other HTTP requests return the extents in the map's
coordinate system and not the layer's coordinate system. From a
consistency perspective I think GETFEATURESETENVELOPE should return the
extents in the map's coordinate system.
We will need to investigate this further and determine the impact of
switching to the map's coordinate system. One noted side effect will be
the behaviour of MgSelection::GetExtents.
I'm not sure simply switching it over is the right solution. It will
break any existing code which was written against the current
functionality.
Thank you for investigating and finding the root cause.
Trevor
-----Original Message-----
From: mapguide_dev-bounces at lists.osgeo.org
[mailto:mapguide_dev-bounces at lists.osgeo.org] On Behalf Of Chris
Gountanis
Sent: Thursday, January 04, 2007 7:40 AM
To: 'Scott Hameister'; 'Andy Morsell'; mapguide_users at lists.osgeo.org;
mapguide_dev at lists.osgeo.org
Subject: [Mapguide_dev] RE: [Mapguide_users] Coordinate Systems and
Zooms
Is there going to be an update to address this or is that normal
operation?
Chris
-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Scott
Hameister
Sent: Wednesday, January 03, 2007 5:17 PM
To: 'Andy Morsell'; mapguide_users at lists.osgeo.org;
mapguide_dev at lists.osgeo.org
Subject: RE: [Mapguide_users] Coordinate Systems and Zooms
I discovered that in mapFrame under the "ZoomSelection" Function that it
makes an fcgi call using GETFEATURESETENVELOPE....
...It's Obvious that GETFEATURESETENVELOPE returns the extents of the
features in their layers native coordinate system and not the MAPS
projected coordinate system.
So if My Map is in State Plan... 1 Layer is in UTM and another layer is
in LL84...and I select things from the UTM and LL84 layer I get a really
bad extent that is a combo of both...
...The only way to fix it would be to intercept/redirect the
"ZoomSelection"
function to run some code that iterates through each layer, reprojects
the extent of the selection on that layer, and grabs the x and Y's into
an array...and then look for Max and Min X and Ys to develop the correct
Zoom position.
Now I ask Does GETFEATURESETENVELOPE fcgi call have an undocumented way
of doing this without having to destroy the web-api code?
-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Andy
Morsell
Sent: Wednesday, January 03, 2007 11:50 AM
To: mapguide_users at lists.osgeo.org
Subject: RE: [Mapguide_users] Coordinate Systems and Zooms
I have the same problem with a map in an international foot state plane
coordinate system (Oregon, South Zone, NAD83, International feet). The
same thing occurs if you are using a custom web layout search command on
a layer.
The search works (as long as its not on a joined field) but clicking on
a result zooms to 0,0 with a scale of 1:0.001.
Andy
-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Scott
Hameister
Sent: Tuesday, January 02, 2007 8:16 AM
To: mapguide_users at lists.osgeo.org
Subject: [Mapguide_users] Coordinate Systems and Zooms
I'm having trouble with Zooms in Authored Maps with Coordinate Systems
Assigned...Example I have a Lat/Lon WGS84 map Of states and Counties
Projected locally into UTM Zone 16N...I can look at a weblayout...select
a county...right click and do a zoom selected and it flys off into
nowheresville...It seems to be zooming to the Lat and Lon cords of the
county and not the UTM...is this a known bug, and is there a Fix for
this?
_______________________________________________
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
_______________________________________________
Mapguide_users mailing list
Mapguide_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide_users
_______________________________________________
Mapguide_dev mailing list
Mapguide_dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide_dev
More information about the Mapguide-internals
mailing list