POSTGIS Longitude SELECT ST_X(the_geom) FROM myTable; Latitude SELECT ST_Y(the_geom) FROM myTable; gooder references awesome postgresql using Active Record with Postgis on Rails good stackoverflow