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 23, 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

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