hallo und guten Abend Klaus,
vielen Dank für Deine rasche Antwort und die Tipps. Das werde ich machen. ich werde mit
1 . osmconvert anfangen - und “mit der Option --all-to-nodes um alle Objekte in POIs umzuwandeln” und dann
2 . mit osmfilter weiterarbeiten u. die gewünschten Objekte herausfiltern…
dann werde ich die Daten alle in einer db. speichern
vielen Dank noch einmal!!!
#tagtheworld
http://manpages.ubuntu.com/manpages/trusty/man1/osmconvert.1.html
--all-to-nodes
Anm; ich hatte mal damit - also mit diesen Themen schon zu tun - vor einigen Jahren - im Jahre 2014. vgl.: overpass-api or osmconvert: which method is more appropiate to use for files from 10 to 400 mb?
https://gis.stackexchange.com/questions/95635/overpass-api-or-osmconvert-which-method-is-more-appropiate-to-use-for-files-fro
**Zu den Optionen: **
Der XML-output der Overpass Api hat im Grunde die gleiche Struktur wie alle .osm files, man kann deshalb auch gut osmconvert einsezten.
bzgl. des Einsatzes einer mysql DB Export XML Data to a MySQL DB ( Link: https://gis.stackexchange.com/questions/94534/export-xml-data-to-a-mysql-db )
Alternativ kann man eine Postgis-DB mit osm2pgsql einsetzen oder eine sog. spatialite database.
CSV files sind eher unpraktisch.
GDAL für den Import .osm data bzw. für den Export in andere Formate (incl CSV).
**Anm: **eine Postgis DB mit osmosis hat einen anderen Setup als eine osm2pgsql. Die osm2pgsql version ist für GIS applicationen gemacht, wie etwa QGIS und rendering tiles mit mapnik. Ich werde mal sehen wie ich weiterkomme - und ob ich PostGIS tatsächl. brauche.
See this Q&A for some guidance:
https://stackoverflow.com/questions/20125242/import-openstreetmap-data-osm-file-to-a-mysql-database-sql-file
http://forum.openstreetmap.org/viewtopic.php?pid=152695
http://mysqlserverteam.com/mysql-5-7-and-gis-an-example/
MySQL allows only the xml formats as stated in the linked document. You have to modify the osm xml into one of those. Alternatively, you can use osmosis or GDAL to do the import.
Zusatz: …um das ganze anzugehen, hab ich noch ein paar Links gesammelt - bzgl. OSM im Einsatz mit Python:
Using Osmconvert with Python
https://stackoverflow.com/questions/26513716/using-osmconvert-with-python
https://github.com/ElcoK/osm_clipper
**OSM and Python: **To be able to extract the data from OpenStreetMap (OSM), a few steps and downloads are required.
https://gmtra.readthedocs.io/en/latest/osmtutorial.html
Loading Data from OpenStreetMap with Python and the Overpass API
https://towardsdatascience.com/loading-data-from-openstreetmap-with-python-and-the-overpass-api-513882a27fd0