www.skylinesoft.com Homepage
Forum Home Forum Home > SkylineGlobe Enterprise Products > TerraExplorer for Developers
  New Posts New Posts RSS Feed - Reproject a Point
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Reproject a Point

 Post Reply Post Reply
Author
Message
tb63 View Drop Down
Visitor
Visitor


Joined: November 24 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote tb63 Quote  Post ReplyReply Direct Link To This Post Topic: Reproject a Point
    Posted: November 25 2011 at 2:55pm
In My application I have to reproject a point from Australian Geographic GDA to Ttranverse mercatore  MGA zone 55.

I have a point

double x
double y

in GDA

and I want it in MGA94 for creeting a location.

Any help

Thanks
 
Back to Top
tb63 View Drop Down
Visitor
Visitor


Joined: November 24 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote tb63 Quote  Post ReplyReply Direct Link To This Post Posted: November 25 2011 at 3:07pm
For the moment I'triiyn ( withou success )

              ITerrain6 tr = sgworld.Terrain;
                ICoordinateSystem6 csProject = tr.CoordinateSystem;

                ICoordServices6 ICoordServices ;


                ICoordinateSystem6 csGDA;
                csGDA.InitFromEPSG(4283);

                ICoordServices.Reproject(csProject, csGDA, x, y);
Back to Top
tb63 View Drop Down
Visitor
Visitor


Joined: November 24 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote tb63 Quote  Post ReplyReply Direct Link To This Post Posted: November 25 2011 at 4:08pm
This compile but does not work :-(

                ITerrain6 tr = sgworld.Terrain;
                ICoordinateSystem6 csProject = tr.CoordinateSystem;
                ICoordServices6 ICoordServices = sgworld.CoordServices;
                ICoordinateSystem6 csGDA = ICoordServices.CreateCoordinateSystem("");
                ICoordServices.GetDistance(1,1,5,5);
                csGDA.InitFromEPSG(4283);
                ICoord2D cc = ICoordServices.Reproject(csProject, csGDA, x, y);
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.328 seconds.