VDS Technologies

 

Exampe in vb.net how to use ToWgs84

10/7/2017 12:45:37 PM
Total Posts 11

Exampe in vb.net how to use ToWgs84

Dear Forum...

Help me how to use ToWgs84 in vb.net

thank you very much

Regards

Bahar

10/12/2017 3:39:23 AM
MVP
Total Posts 323

Re: Exampe in vb.net how to use ToWgs84

For example

Dim cs As CoordSystem = New CoordSystem(CoordSystemCode.PCS_PopularVisualisationMercator)

Dim longLat As AspMap.Point = cs.ToWgs84(4253656, -252552)

' longLat.X - longitude

' longLat.Y - latitude

10/15/2017 1:55:01 AM
Total Posts 11

Re: Exampe in vb.net how to use ToWgs84

the error message are

 

"Compiler Error Message: BC30516: Overload resolution failed because no accessible 'ToWgs84' accepts this number of arguments."

10/18/2017 3:37:56 AM
MVP
Total Posts 323

Re: Exampe in vb.net how to use ToWgs84

Yes, the right code is

 

Dim longLat As AspMap.Point = cs.ToWgs84(new AspMap.Point(4253656, -252552))