Skip to content

nathancahill/shp-postgis-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Requires shapefile and psycopg2.

Edit config.py to add the database connection string.

Run with your shapefile directory in the current directory. Pass the directory name as the first parameter and the table name as the second parameter:

$ python create-schema.py shapefile-directory table-name

Creates a PostGIS table with a geometry column and a field for each field in the shapefile. Makes it easy to import shapefiles to the table afterwards.

About

Creates a Postgres table from an shapefile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages