<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">pgsql2shp -s 4326 -I <shapefile> <mytable> | psql -d <mydb><br><br>where <br><shapefile> is the name of your shapefile, eg: myfile.shp<br><mytable> is the name of the POstgis table to create & populate<br><mydb> is the name of od the Postgis database (Postgres with Postgis installed)<br><br>"-s 4326" tells pgsql to create a table for a shapefile with lat/long geometries, as in<br><a href="http://www.spatialreference.org/ref/epsg/4326/">http://www.spatialreference.org/ref/epsg/4326/</a><br><br>HTH,<br><br> Brent Wood<br><br>--- On <b>Sat, 12/31/11, Daniel Montenegro <i><dmontenegro84@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Daniel Montenegro <dmontenegro84@gmail.com><br>Subject: [postgis-users] Geographic
Coordinates<br>To: "postgis-users" <postgis-users@postgis.refractions.net><br>Date: Saturday, December 31, 2011, 4:57 PM<br><br><div id="yiv329185809"><div>Hi there!</div><div> </div><div>How can I import a shape file with geographic coordinates to PostGIS via shp2pgsql?</div><div> </div><div>Thanks</div><div> </div><div>Daniel</div>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>