I'm converting an extracted chunk of OSM data to GeoJSON. We can use GDL ogr2ogr commands like:
By default, ogr2ogr doesn't automatically convert all closed ways into polygons, only ones with certain tags which can be defined in osmconf.ini. The default is:
How can I tell ogr2ogr that I want ALL closed ways to be treated as polygons? I know it's not always advisable in general, but in my case it's what I want, and especially I want un-tagged ways to handled like this. The asked 29 Apr '20, 09:27 mcld |
It looks like you can't (the implementation just explicitly checks the listed keys): I imagine post processing the GeoJSON is going to be the easiest way to get what you want. answered 29 Apr '20, 12:22 maxerickson |