Last active
December 15, 2015 08:29
-
-
Save mhkeller/5230844 to your computer and use it in GitHub Desktop.
Lat and Lng from geom
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 ST_X(ST_Centroid(the_geom)) as longitude, ST_Y(ST_Centroid(the_geom)) as latitude FROM table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment