shp2pgsql(1) PostGIS shp2pgsql(1) (NAME) shp2pgsql - shapefile postgis (SYNTAX) shp2pgsql [options] shapefile [schema.]table (DESCRIPTION) shp2pgsql ESRI Shape SQL PostGIS/PostgreSQL . : 1.1.5 (2006/10/06) (USAGE) shape . 'roads' shapefile 'roads.shp' 'roads.shx' 'roads.dbf' . ( schema) . 'geo_value' . (OPTIONS) : ( -a -c -d -p .) -d Shape (drop) . -a Shape (append) . (attributes) . -c Shape . . -p SQL . . -D "dump" PostgreSQL . -a -c -d . "insert" SQL . . -w WKT WKB. . -e (transaction). . -D "dump" . -s [:] SRID . FROM_SRID (reproject) . -D . -G geography geometry. geography (lat/lon) . 4326 . -g ( ). -k ( schema ). Shapefile . -m () DBF. : COLUMNNAME DBFFIELD1\n AVERYLONGCOLUMNNAME DBFFIELD2\n . -i 32-bit bigint 64-bit DBF . -S (simple Geometries) (MULTIgeometries). Shape LINESTRING MULTILINESTRING shp2pgsql MULTILINESTRING . LINESTRING shp2pgsql MULTILINESTRING . POLYGON MULTIPOLYGON . -W encoding Shapefile. UTF-8 . -I GiST . -N NULL ( insert skip abort). -T tablespace . tablespace -X . PostgreSQL tablespace . -X tablespace . (primary key) -I GIST . -? . (INSTALLATION) "make" . ( ) . man page ../doc/man/ . (EXAMPLES) : # shp2pgsql shaperoads roadstable roadsdb > roads.sql # psql -d roadsdb -f roads.sql (pipes) : # shp2pgsql shaperoads roadstable roadsdb | psql -d roadsdb (AUTHORS) Jeff Lounsbury . Sandro Santilli . . ESRI Shape shapelib 1.2.9 Frank Warmerdam . (SEE ALSO) pgsql2shp(1) . shp2pgsql(1)