RE: [mapguide-users] OnPointDigitized and GetTransform

2009-02-03 Thread Mark Pendergraft
sgeo.org [mailto:mapguide-users-boun...@lists.osgeo.org] On Behalf Of Steve G Sent: Tuesday, February 03, 2009 11:47 AM To: mapguide-users@lists.osgeo.org Subject: Re: [mapguide-users] OnPointDigitized and GetTransform I have searched through the Nabble forum to find some sample codes, so I kind of

Re: [mapguide-users] OnPointDigitized and GetTransform

2009-02-03 Thread Steve G
I have searched through the Nabble forum to find some sample codes, so I kind of understand what you mean. However, I have also found that MgCoordinateSystemTransform is now an abstract class. I have modified the code to what I think would work: $coordSysFactory = new MgCoordinateSyste

Re: [mapguide-users] OnPointDigitized and GetTransform

2009-02-02 Thread Jackie Ng
GetTransform() requires two MgCoordinateSystem objects. These are created from the MgCoordinateSystemFactory, which you have to pass in wkt strings of the coordinate systems. So you need 2 wkt strings: 1) The map's coordinate system (The GetMapSRS() method of MgMap will return this string) 2) Th

[mapguide-users] OnPointDigitized and GetTransform

2009-02-02 Thread Steve G
I am trying to create a tool in the task pane where you click a button and then click on the map which will get the x, y coordinates and open in google maps. I have found the sample onpointdigitized php example and copied the code and it works pretty well to get the x, y coordinates. The next st