[postgis] rookie
Cedric BERNIER
cedric.bernier at thales-is.com
Thu Mar 21 08:33:16 PST 2002
Hi all !
I've just join the newsgroup, and I've just installed postgis 6.0 on my
Redhat 7.2.
I would like to populate a spatial database with Esri shapefiles.
To do this I want to use the loader.
I've create my database as following :
createdb mydatabase
then,
createlang plpgsql mydatabase
plsql -d mydatabase -f postgis.sql
and a table
CREATE TABLE mytable( ROAD_ID int4, ROAD_NAME varchar(128) );
SELECT AddGeometryColumn( 'mydatabase', 'mytable', 'roads_geom', -1,
'GEOMETRY', 3 );
but when I use shp2pgsql
shp2pgsql myshape.shp mytable
I 've got an error :
usage : pop <shapefile> <table> <SR_ID> <database>
what are the SR_Id ? my database is empty.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cedric.bernier.vcf
Type: text/x-vcard
Size: 377 bytes
Desc: Carte pour Cedric BERNIER
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20020321/5c8c6ace/attachment.vcf>
More information about the postgis-users
mailing list