Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 819 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 819 Bytes

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