Updated Updating the planet extracting data (markdown) authored by ltog's avatar ltog
...@@ -6,27 +6,27 @@ ...@@ -6,27 +6,27 @@
### Installation (Ubuntu) ### Installation (Ubuntu)
`sudo apt-get install osmosis` sudo apt-get install osmosis
### bbox ### bbox
`osmosis --read-pbf file=$pbfinfile --bounding-box top=$maxlat left=$minlon bottom=$minlat right=$maxlon --write-pbf file=$pbfoutfile` osmosis --read-pbf file=$pbfinfile --bounding-box top=$maxlat left=$minlon bottom=$minlat right=$maxlon --write-pbf file=$pbfoutfile
### poly ### poly
`osmosis --read-pbf file="$pbfinfile" --bounding-polygon file="$polyfile" --write-pbf file="$pbfoutfile"` osmosis --read-pbf file="$pbfinfile" --bounding-polygon file="$polyfile" --write-pbf file="$pbfoutfile"
## osmconvert ## osmconvert
### Installation (Ubuntu) ### Installation (Ubuntu)
`sudo apt-get install osmctools` sudo apt-get install osmctools
### bbox ### bbox
`osmconvert $pbfinfile -b=$minlon,$minlat,$maxlon,$maxlat --out-pbf [--complete-ways | --complex-ways] -o=$pbfoutfile` osmconvert $pbfinfile -b=$minlon,$minlat,$maxlon,$maxlat --out-pbf [--complete-ways | --complex-ways] -o=$pbfoutfile
### poly ### poly
`osmconvert $pbfinfile -B=$polyfile --out-pbf [--complete-ways | --complex-ways] -o=$pbfoutfile` osmconvert $pbfinfile -B=$polyfile --out-pbf [--complete-ways | --complex-ways] -o=$pbfoutfile
## osmchange ## osmchange
...@@ -38,11 +38,11 @@ Keine Unterstützung für .pbf / .o5m Dateien. ...@@ -38,11 +38,11 @@ Keine Unterstützung für .pbf / .o5m Dateien.
### bbox ### bbox
`<$osminfile ./osmchange -b=$minlon,$minlat,$maxlon,$maxlat >$osmoutfile` <$osminfile ./osmchange -b=$minlon,$minlat,$maxlon,$maxlat >$osmoutfile
### poly ### poly
`<$osminfile ./osmchange -B=$polyfile >$osmoutfile` <$osminfile ./osmchange -B=$polyfile >$osmoutfile
## mapsplit ## mapsplit
...@@ -63,7 +63,8 @@ Ein Verzeichnis zum Path hinzufügen: https://unix.stackexchange.com/questions/2 ...@@ -63,7 +63,8 @@ Ein Verzeichnis zum Path hinzufügen: https://unix.stackexchange.com/questions/2
### poly ### poly
`mapsplit $pbfinfile $pbfoutfile -p=$polyfile` mapsplit [-v] [-Xmx4G] $pbfinfile $pbfoutfile -p=$polyfile
./mapsplit -v -Xmx4G ../test/switzerland-latest.osm.pbf ../test/mapsplit-out.osm.pbf -p=../test/polygon.poly -s=40000000,5000000,2000000
# Zu klären # Zu klären
... ...
......