Closed aSeniyants closed 2 years ago
convert.py
is just a simple example that shows how to use the SimpleWriter. It only support OSM data formats as output. geojson is not one of them. Use osmium export from the osmium suite for converting to geojson.
From my python script use:
osmium export map.osm -o data.geojson
yes?
No, not from Python. It's a command line tool.
Hello. I try:
python3 convert.py map.osm data.geoJSON
and get:
RuntimeError: Could not detect file format for filename 'data.geoJSON'.
Please. help me. Thank you