Created
April 1, 2009 21:51
-
-
Save samgranieri/88914 to your computer and use it in GitHub Desktop.
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
Given a preexisting lat/lng | |
lat | 41.9219 | |
lng | -87.6562 | |
and a table that I added a geometry column via the following sql | |
SELECT AddGeometryColumn('bars','the_geom','9102671','MULTILINESTRING',2); | |
(the srid is illinois, east, 9102671) | |
(i think lat-lngs will be stored as multistring) | |
how do i convert the lat/lng into a point and have it stored as the_geom? | |
do i do this? | |
update bars set the_geom = setsrid(makepoint(-87.6562, 41.9219), 4269) | |
or do i change the srid to illinois east? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment