Tuesday, December 1, 2015

OSM2PO notes


PgRouting table generation plug-in

Merging several OSM packages


Example:

rem Convert phase 1 and 2
java -Xmx4g -jar osm2po/osm2po-core-5.0.0-signed.jar cmd=tj prefix=pt tileSize=x,c workDir=tmp map-pkg/portugal-latest.osm.pbf

java -Xmx4g -jar osm2po/osm2po-core-5.0.0-signed.jar cmd=tj prefix=es tileSize=x,c workDir=tmp map-pkg/spain-latest.osm.pbf

rem Merge
java -Xmx4g -jar osm2po/osm2po-core-5.0.0-signed.jar cmd=m prefix=all pt es workDir=tmp
rem Convert phase 3 and 4
java -Xmx4g -jar osm2po/osm2po-core-5.0.0-signed.jar cmd=sp prefix=all workDir=tmp
rem Insert in DB

psql -d osm -h 192.168.1.230 -U postgres -f tmp/all_2po_4pgr.sql



No comments:

Post a Comment