OSM: Unterschied zwischen den Versionen
Aus Geoinformation HSR
Stefan (Diskussion | Beiträge) |
Stefan (Diskussion | Beiträge) (→Import/Export der OSM-Daten) |
||
Zeile 15: | Zeile 15: | ||
== Import/Export der OSM-Daten == | == Import/Export der OSM-Daten == | ||
+ | |||
+ | ;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. | ||
+ | |||
+ | * [[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. | ||
+ | |||
Möglichkeiten: | Möglichkeiten: | ||
− | |||
* [http://wiki.openstreetmap.org/index.php/Converting_OSM_to_GML Converting OSM to GML] - mit XSLT. Kann dann z.B. mit [[OGR]] weiterverarbeitet werden | * [http://wiki.openstreetmap.org/index.php/Converting_OSM_to_GML Converting OSM to GML] - mit XSLT. Kann dann z.B. mit [[OGR]] weiterverarbeitet werden | ||
− | |||
− | |||
* [http://svn.openstreetmap.org/applications/utils/ utils auf SVN (Tool-Sammlung)] z.B. mit osm2cvs (Perl) und osm2kml (cpp) | * [http://svn.openstreetmap.org/applications/utils/ utils auf SVN (Tool-Sammlung)] z.B. mit osm2cvs (Perl) und osm2kml (cpp) | ||
* [http://wiki.openstreetmap.org/index.php/Shapefile_upload_script Shapefile upload script] | * [http://wiki.openstreetmap.org/index.php/Shapefile_upload_script Shapefile upload script] |
Version vom 14. Februar 2008, 01:31 Uhr
OSM (.osm) - Abkürzung für OpenStreetMap sowie XML-Dateiformat
Siehe auch:
- OpenStreetMap - Seite über das Projekt, u.a. mit HowTos
- GIS-Konverter
Technische Dokumentation
OSM/XML besteht aus Knoten (Nodes) und Kanten-Listen (Ways, früher: Segments).
- http://wiki.openstreetmap.org/index.php/Develop - Übersicht und Einführung für Entwickler.
- http://wiki.openstreetmap.org/index.php/REST - Beschreibung des APIs.
- Planet.osm-Repository.
- OpenStreetMap - Die freie Weltkarte nutzen, Buch von Frederic Ramm und Jochen Topf, 29.95 Euros. ISBN is 978-3-86541-262-1.
Import/Export der OSM-Daten
- 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.
- 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.
Möglichkeiten:
- Converting OSM to GML - mit XSLT. Kann dann z.B. mit OGR weiterverarbeitet werden
- utils auf SVN (Tool-Sammlung) z.B. mit osm2cvs (Perl) und osm2kml (cpp)
- Shapefile upload script
- Open Street Maps in ArcGIS laden (ArcScript mit Python)
- OSM Export for Ruby
Outdated:
- OSM in Google Earth (kml), XSLT-Skript (leider noch mit 0.4 API).
Mobiles:
- Converting OSM to Garmin IMG
- Mit Shustrik's .map file creation tool für MGMaps aufbereiten.
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 ...