OSM-Technisches: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(OSM zu Shapefiles konvertieren)
(OSM)
Zeile 76: Zeile 76:
 
* Import in PostgreSQL mit [http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/ osm2pgsql]
 
* Import in PostgreSQL mit [http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/ osm2pgsql]
  
=== OSM ===
+
=== OSM in ArcGIS 9.x ===
  
 
=> [http://www.esri-germany.de/downloads/papers/OSM_in_ArcGIS9x.pdf Hinweise zur Nutzung von OSM in ArcGIS 9.x].
 
=> [http://www.esri-germany.de/downloads/papers/OSM_in_ArcGIS9x.pdf Hinweise zur Nutzung von OSM in ArcGIS 9.x].

Version vom 17. Januar 2010, 22:00 Uhr

Diese Seite enthält technische Aspekte zum OSM-Projekt. Die Einstiegsseite zu OpenStreetMap befindet sich hier.

Siehe auch:

Routing

Einfaches Indoor-Routing (2D) geht mit OSM-Daten bereits (vgl. OpenRouteSerivce.org).

Links: [1]

Constraints/Checks:

  • Wege im Gebäude vorhanden und mit dem Straßennetz außerhalb des Gebäudes verbunden?
  • Für '3D' sind die Tags noch etwas experimentell
  • nicht verbundene Ways
  • auf die Digitalisierungsrichtung bei Oneways und zb Roundabouts achten?
  • richtige Schreibweisen der Highway-Values
  • "richtige"/genormte Schreibweise bei Straßennamen: "Str." vs. "Strasse" vs. "Straße" ....
  • "tote" Ways -> Ways ohne Nodes
  • Ways mit ein und derselben Node

Technische Dokumentation zum OSM-Dateiformat

OSM/XML besteht aus Knoten (Nodes), Kanten-Listen (Ways, früher: Segments) und Relations.

Import/Export der OSM-Daten

FAQ

How to get the OSM data?
If the size of the bounding box isn't too large osmxapi is great. osmxapi will return data from its own database, it's a web-based app; you don't need to download a planet file. If you want a large area or many areas, then switch to osmosis. Osmosis is a local application working on your own data file you need to download a planet file before.
How to get reliable bbox coordinates?
Use http://www.informationfreeway.org/ Google Earth is probably the simplest, possibly Google Maps.
Why are osm_id columns (generated from osm2pgsql) just almost but not completely unique?
Because a single feature in an OSM source file can translate into multiple "features" in the database. Parking areas which create nodes is the obvious one, but there are others like route-relations.

Notizen

Möglichkeiten:

Outdated:

Mobiles:

OSM zu Shapefiles konvertieren

Man beachte, dass es bedingt durch das Datenmodell von OSM keine einzig richtige Konversion gibt.

Ein Versuch eines Datenmodells, das topografischen Karten nahe kommt, wird hier diskutiert:

Ansonsten kann man vorsichtigerweise bei Nodes/Ways/Relations bleiben. Für kleinere Ausschnitte:

  1. Export-Tab auf openstreetmap.org => .osm lokal speichern.
  2. .osm zu GML konvertieren mit XSTL-Skript (Converting, verwendet xalan). Achtung: Das XSLT muss noch verbessert werden ('Closed Ways' fehlen).
  3. GML zu Shapefiles konvertieren mit OGR-Tools oder GeoConverter.

Für grössere Datenmengen:

  • Export nach .osm mit Planetfiles (siehe oben)
  • Import in PostgreSQL mit osm2pgsql

OSM in ArcGIS 9.x

=> Hinweise zur Nutzung von OSM in ArcGIS 9.x.

OSM REST API 0.5

OSM REST API 0.5:

OSM X API