View Full Version : Retreiving longitude and latitude

09-16-2005, 08:37 AM
Hello all,

Does anyone know of any way of retreiving latitude and longitude values from a location object.

I need to do this because I need to store information about Mappoint shapes in a database so that they can be redrawn at any time in their exact original location.

I can get the height and width no problem. I can also retreive the centre location no problem. However there seems to be no way of breakin the location back down into lat and lon values. Please help.

PS. Im programming in C#.

09-16-2005, 08:59 AM
Gilles Kohl's "CalcPos" routine is what you need. It can be found in the following article:


It uses the measure distance functionality and a bit of geometry to calculate a location's coordinates.


09-19-2005, 05:55 AM
Cheers, works a treat !!