osm2geojson icon indicating copy to clipboard operation
osm2geojson copied to clipboard

Convert OSM and Overpass XML/JSON to GeoJSON

Results 11 osm2geojson issues
Sort by recently updated
recently updated
newest added

Many features that count as multipolygons under the OSM definition are valid Polygons under the [geojson definition](https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.6): anything with a single exterior member and all other members located inside could...

hi @rapkin, thank you very much for sharing your work. I'm running into some trouble when attempting to convert some osm data to geojson. Is this something that you have...

Big thanks for creating this. I used it for my purposes here: https://github.com/so9q/SEPAtoWikidata/blob/master/missing-shelters-in-vin-based-on-osm.py

Its very much an edge case, but if you have a Multi Polygon which had a part inside a hole of itself that part does not end up in the...

Any pointers on how to convert any of the common OSM formats into Overpass-like JSON in the CLI? https://wiki.openstreetmap.org/wiki/OSM_JSON

Hello, At first: thank you, your library is very useful! Second: As mentioned in the title, my problem is that the conversion of MultiPolygons with more than one hole fails....

Overpass Query : [out:json]; area["name:en"="Madhya Pradesh"]->.a; ( way(area.a)["landuse"]; relation(area.a)["landuse"]; ); out body geom; And this is the issue: ( getting this issue for multiple queries ) ( may be due...

I'm running the following query: ``` [out:json][timeout:25]; ( node(60.11,24.55,60.24,24.85); way(60.11,24.55,60.24,24.85); relation(60.11,24.55,60.24,24.85); ); out body; \>; out skel qt; ``` And getting these errors: Errors Ref for multiline relation not found...

A relation representing a simple polygon, but without an outer ring explicitly defined will fail. See below example for relation https://www.openstreetmap.org/relation/6127139 ``` import osm2geojson resp = osm2geojson.overpass_call(''' [out:json]; relation(6127139); out;...

Library fails to convert Moscow oblast to shape. Code to reproduce: ``` import osm2geojson resp = osm2geojson.overpass_call(''' [out:json]; relation(51490); out; >; out skel qt; ''') osm2geojson.json2geojson(resp) ``` Stacktrace: ``` Traceback...