Import Monte Pisano streets network
Monte Pisano is a sub-area of central Italy which can be downloaded in PBF format from the following address:
https://download.geofabrik.de/europe/italy/centro-latest.osm.pbf (300 Mb)
MontePisano bbox is: 10.3,43.6,10.7,43.9
Following the process to import data into PostGis:
> curl https://download.geofabrik.de/europe/italy/centro-latest.osm.pbf --output centro-latest.pbf
> osmium extract -b 10.3,43.6,10.7,43.9 centro-latest.pbf -o montepisano.pbf
> osm2pgsql -d osmone -O flex -S streets.lua montepisano.pbf
Notes:
PostGIS: a database named osmone is used in this example (must be created and eventually other parameters will be used for the connection like user, host and port, see osm2pgsql documentation for details.
The montepisano.pbf file is 14Mb
Last updated