Created
January 14, 2015 18:24
-
-
Save bertbalcaen/9f2731f61f9680e3cc67 to your computer and use it in GitHub Desktop.
Convert geometry from an OpenStreetMap Postgress database into latitude/longitude
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT name, ST_Y(ST_Transform(geometry, 4326)) AS lat, ST_X(ST_Transform(geometry, 4326)) AS long | |
FROM osm_places; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment