Skip to content

gma2th/pgosmdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PgOSMData

This project load FOSSGIS OSMData land and water polygon to postgres. It will load the data into the tables land_polygon and water_polygon. It uses WGS84 projection. See https://osmdata.openstreetmap.de/

Requirements

  • PostgreSQL
  • PostGIS
  • shp2pgsql

Install

$ createdb pgosmdata
$ export DATABASE_URL="postgresql://localhost/pgosmdata"
$ psql $DATABASE_URL -c "CREATE EXTENSION postgis;
$ make all

Help

$ make help
help                           print this message
clean-files                    remove data files
clean-db                       drop db tables
clean                          clean-files, clean-db
download                       clean-files, download shp files from osmdata
prepare                        convert shp files to sql files
insert                         insert data into db
update                         prepare, insert
all                            download, update

About

Load OSMData land and water polygon to postgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published