Changes
Page history
Updated Updating the planet extracting data (markdown)
authored
Jan 24, 2015
by
ltog
Hide whitespace changes
Inline
Side-by-side
Updating-the-planet---extracting-data.md
View page @
051f56d9
...
...
@@ -6,27 +6,27 @@
### Installation (Ubuntu)
`
sudo apt-get install osmosis
`
sudo apt-get install osmosis
### 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
`
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
### Installation (Ubuntu)
`
sudo apt-get install osmctools
`
sudo apt-get install osmctools
### 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
`
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
...
...
@@ -38,11 +38,11 @@ Keine Unterstützung für .pbf / .o5m Dateien.
### bbox
`
<$osminfile ./osmchange -b=$minlon,$minlat,$maxlon,$maxlat >$osmoutfile
`
<$osminfile ./osmchange -b=$minlon,$minlat,$maxlon,$maxlat >$osmoutfile
### poly
`
<$osminfile ./osmchange -B=$polyfile >$osmoutfile
`
<$osminfile ./osmchange -B=$polyfile >$osmoutfile
## mapsplit
...
...
@@ -63,7 +63,8 @@ Ein Verzeichnis zum Path hinzufügen: https://unix.stackexchange.com/questions/2
### 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
...
...
...
...