Openstreetmap derived Reports and Shapefilegeneration about global administrative Boundaries
JavaScript Java Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scripts first commit Jun 7, 2012
sql first commit Jun 7, 2012
src
template improvements Jun 9, 2012
webbase improvements Jun 9, 2012
.gitignore improvements Jun 9, 2012
README improvements Jun 9, 2012
config.cfg improvements Jun 9, 2012

README

Reports and shapefile generation for OSM derived global administrative boundaries.



Step 1: Install prerequisites
postgresql, postgis, java, osmosis, gdal, ant, git

Step 2: Initialize Postgresql
Adjust scripts/initdb.sh to your needs
Execute initdb.sh - probably you need it to run with the pgsql db user

Step 3: Build Java Sources
cd src and then run ant

Step 4: Edit config.cfg
I have gatherd all parameters further used in one central config file.
All further scripts will use that file

Step 5: Init Tree World
To create DB tables and functions you need to run these commands:

psql -d osm osm -f sql/inittreeworld.sql
psql -d osm osm -f sql/createtree.sql
psql -d osm osm -f sql/iso3166-1.sql
psql -d osm osm -f sql/iso3166-2.sql

Step 6: Import OSM Boundary Data to Postgres with osmosis
fetch planet (pbf) and adjust scripts/importosm.sh to your needs
ATTENTION: The script will truncate your DB before importing!


Step 7: Generate Polygons
run scripts/generatepolygons.sh
With this script all polygons and parent/child connections will be renderd

Step 8: Generate Website
run scripts/generatewebsite.sh

Step 9: Generate Shapefiles
run scripts/generateshapes.sh