Skip to content
No description, website, or topics provided.
HTML Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
manuel
region
test
towns
.gitignore
.travis.yml
LICENSE
README.md
report.style
requirements-dev.txt
requirements.txt
setup.py

README.md

Description

Tool to generate reports of OpenStreetMap

Example: generate report of the total length of residential and living_street highways in OpenStreetMap without name.

Installation

pip install .

Previous steps

Tools needed

Data preparation

  • Create database (dbname, dbuser, dbpass) with the postgis and hstore extensions
  • Edit report.conf to set your conection data (dbname, dbuser, dbpass), area name and area/subarera admin_levels
  • Download data: http://download.geofabrik.de/index.html
  • Load data to database:
osm2pgsql -s --cache-strategy sparse -G --hstore -E 4326 -l -C 2048 -S report.style -d dbname data-planet.osm.pbf -H localhost -U dbuser -W

Usage

  • Execute
manuel towns/report.conf
You can’t perform that action at this time.