Hello! I have all the XML data into PostGres DB using OSM2PGSQL. I get the coordinates of a node and what I get is the next: 471196104, -858385498 (it is in Washington) I dont know the format of the this coordinates and how to convert it. I would like to have coordinates in a "normal" format, I mean something like this: 41.347187,2.0309942 Thank you for the help in advance
asked
aruizga7 |

The coordinates you got is in spherical mercator projection. osm2pgsql transforms all the coordinates to mercator before inserting them to the database. To get the coordinates in another projection use the function ST_Transform in postgis. The standard latlon coordinates you want is EPSG:4326 and spherical mercator is EPSG:3857.
answered
Gnonthgol ♦ |