views:

439

answers:

3

Hi all,

i have places location in the database by x ,y and shape How can I convert this location points to latitude and longitude pairs? Is there a tool or a formula?

for example x =220162.636213404 y = 762057.914609313 it should be something like lat = 34.55667500000000000 lng = 31.68173300000000000

Thanks!

A: 
Joel Alejandro
The sample x and y values given are greater than 100 000. If those are pixel coordinates, avnic's got quite a big screen
MarkJ
A: 

That depends on the projection model you choose to use.

P Daddy
And where in the world your data is.
ChrisF
+1  A: 

There are a lot of different geographic coordinate systems. The most commonly used is WGS84 (EPSG:4236). Google Maps uses it's own spherical mercator projection which is commonly known as Google Mercator, but its latlong values are WGS84 coordinates.

In order to transform your coordinates you have to know the source and destination coordinate system. Once you have figured this out you can use a library like Proj4js to calculate the transformation.

Proj4js also provides an online coordinate calculator, which might help you to figure out which coordinates system the coordinates in your database are using.

If you are looking for a C# framework: SharpMap is great for handling all aspects of geospatial applications.

f3lix