Hi to all, We can get co-ordinates for a region(city/state/country) using polygon_geojson=1 in nominatim url. It will give large amount of data(co-ordinates) for large regions(example for a country). Now i want to reduce the co-ordinates count. How it is possible? asked 09 Jul '15, 10:15 Rajavelu_M |
I was trying to do the same and found that using param polygon_threshold=0.009 is usefull answered 26 Feb '19, 15:09 shaniqwa |
Are you asking for an algorithm for simplifying a polygon?
@scai: yes. An algorithm for simplifying a polygon is fine. For example http://nominatim.openstreetmap.org/search?q=India&polygon_geojson=1&format=json The above url gives 1.5MB data. I want to reduce co-ordinates and the size to around 200kb.
gpsbabel can simplify tracks which could be an option depending on what you are trying to do.
... or try JOSM offline editor (not sure whether it can load geojson, but it has a simplify feature for lines)... or maybe QGIS?