OSM: Unterschied zwischen den Versionen

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche
(OSM zu Shapefile)
(Import/Export der OSM-Daten)
Zeile 16: Zeile 16:
 
== Import/Export der OSM-Daten ==
 
== 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 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.
 
;How to get reliable bbox coordinates?: Use http://www.informationfreeway.org/ Google Earth is probably the simplest, possibly Google Maps.
  
 +
 +
=== Notizen ===
 
* [[OpenStreetMap#Osmxapi]] - schreibt/exportiert nach XML direkt vom Webserver.
 
* [[OpenStreetMap#Osmxapi]] - schreibt/exportiert nach XML direkt vom Webserver.
 
* [[OpenStreetMap#Osmosis]] - liest lokal oder übers Web (OSM REST API) und schreibt/exportiert nach XML, MySQL und PostgreSQL.
 
* [[OpenStreetMap#Osmosis]] - liest lokal oder übers Web (OSM REST API) und schreibt/exportiert nach XML, MySQL und PostgreSQL.

Version vom 7. Mai 2008, 17:31 Uhr

OSM (.osm) - Abkürzung für OpenStreetMap sowie für das OpenStreetMap/XML-Dateiformat.

Siehe auch:

Technische Dokumentation zum OSM-Dateiformats

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.


Notizen

Möglichkeiten:

Outdated:

Mobiles:

OSM zu Shapefiles konvertieren

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 REST API 0.5

OSM REST API 0.5: http://api.openstreetmap.org/api/0.5/map?bbox=11.54,48.14,11.543,48.145 Example bbox:

  • Example 11.54,48.14,11.543,48.145
  • Bremen 8.4900,52.9195,9.123,53.234
  • Hannover 9.55,52.3,9.91,52.47
  • IsleOfWight -1.6,50.57,-1.0,50.77
  • Rapperswil ...