1 / 12

OSM-Daten filtern

OSM-Daten filtern. Osmosis Java Kommandozeile Filter Konvertieren http://wiki.openstreetmap.org/wiki/Osmosis. Installation. Download von http://gweb.bretth.com/osmosis-latest.zip Entpacken. Aufrufen. Start  Ausführen cmd In entpackten Ordner navigieren

sheri
Download Presentation

OSM-Daten filtern

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OSM-Daten filtern • Osmosis • Java • Kommandozeile • Filter • Konvertieren • http://wiki.openstreetmap.org/wiki/Osmosis

  2. Installation • Download von http://gweb.bretth.com/osmosis-latest.zip • Entpacken

  3. Aufrufen • Start  Ausführen • cmd • In entpackten Ordner navigieren • Navigieren (cd meinOrdner\unterordner\) • Ordnerinhalt anzeigen (dir) • java –jar osmosis.jar <Optionen>

  4. Optionen • Lesen und Schreiben • XML, MySQL, PostgreSQL, API (nur Lesen) --read-xmlquelldatei.osm --write-xml zieldatei.osm • Filteroperationen • Räumlich oder Attribute (Tags) --bounding-box left=minxright=maxx top=maxybottom=miny --way-key-valuekeyValueList=“key.value, key.value”

  5. Bounding Box y (Breite) maxy miny x (Länge) minx maxx Export-Tab auf http://openstreetmap.org/ http://webgis.giub.uni-bonn.de/schmitz/osm/extent.html

  6. Bounding Box

  7. Beispiel: räumlicher Filter java –jar osmosis.jar --read-xml quelldatei.osm --bounding-box left=minx right=maxx top=maxy bottom=miny --write-xml zieldatei.osm

  8. Beispiel: räumlicher Filter java –jar osmosis.jar --read-xml quelldatei.osm --bounding-polygon file=someCountries.poly --write-xml zieldatei.osm http://trac.openstreetmap.org/browser/applications/utils/osm-extract/polygons

  9. Beispiel: räumlicher Filter & Tag-Filter java –jar osmosis.jar --read-xml quelldatei.osm --bounding-box left=minx right=maxx top=maxy bottom=miny -- way-key-value keyValueList=„highway.primary,highway.trunk“ --used-node --write-xml zieldatei.osm

  10. Aufgabe • 4 Gruppen • 4 Karten erstellen aus OSM-Daten • Straßenkarte Bonn • Kneipenkarte Bonner Altstadt • Grünflächen in Bonn • Straßenbahnen in Köln • Hilfsmittel • API, OSM-Downloadseite • Osmosis, Map Features, Tagwatch • Osmarender

More Related