Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.

Updating the planet extracting data

ltog edited this page Jan 24, 2015 · 54 revisions

Updating the planet

Extracting data

osmosis

Installation (Ubuntu)

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

poly

osmosis --read-pbf file="$pbfinfile" --bounding-polygon file="$polyfile" --write-pbf file="$pbfoutfile"

osmconvert

Installation (Ubuntu)

sudo apt-get install osmctools

bbox

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

osmchange

Keine Unterstützung für .pbf / .o5m Dateien.

Installation (Ubuntu)

???

bbox

<$osminfile ./osmchange -b=$minlon,$minlat,$maxlon,$maxlat >$osmoutfile

poly

<$osminfile ./osmchange -B=$polyfile >$osmoutfile

mapsplit

Installation (Ubuntu)

sudo apt-get install default-jdk ant
git clone https://github.com/PedaB/mapsplit.git
cd mapsplit
ant

bbox

???

poly

mapsplit $pbfinfile $pbfoutfile -p=$polyfile

Zu klären

  • Sich selbst überschneidende Polygonlinie (wo wird das abgefangen?)
  • bbox über Datumsgrenze
  • Grenzüberlappende Linien, Relationen (osmconvert: Flächen) abschneiden oder behalten?
  • Werden folgende Daten benötigt?
    • Autor
    • Erstellungsdatum

Clone this wiki locally