I try to use this http://polygons.openstreetmap.fr/index.py to create polygons for multiple cities, but I run into an issue of some cities having errors when I try to create polygons. For example, 537353788 does not work and it gives me the following error: http://polygons.openstreetmap.fr/index.py?id=537353788 Any idea how to correct/who to contact? asked 27 Oct '20, 15:08 NelaM99 |
How did you arrive at the number 537353788?
Are you talking about Абай? Its geometry is already defined as a polygon ("closed way" in OSM terms). The page you are referring to is used to convert OSM relations (including multipolygons) into polygons.
Yes, it is Abay. The number is the Place ID number that I get at the bottom of this page: https://nominatim.openstreetmap.org/ui/details.html?osmtype=R&osmid=421007&class=place
The link you gave does not show the ID 537353788 for me. If you have a Nominatim query for this village, try adding
&polygon_geojson=1
to the Nominatim request to download it in GeoJSON form. Else, you could potentially use Overpass Turbo to export a single OSM object as GeoJSON. If you are exporting many such boundaries, save yourself the hassle and load OSM data into a PostGIS database withosm2pgsql
and then export stuff from there.