Closed gka closed 3 years ago
Hi, and thanks for this!
We ran into some issues when converting GeoJSON files to Poly using this script. According to the OSM wiki page the order must be longitude, latitude.
longitude
latitude
The third and subsequent lines in the section contain the coordinates of the polygon points in the order longitude, latitude, separated by whitespace.
After some debugging I figured out that in the generated Poly files the order was latitude, longitude. After I swapped x and y everything worked.
x
y
Maybe this is useful for anyone using this script.
I merged another pull request(https://github.com/smellman/ogr2poly/pull/5). If this pull request is mean that you want, I want to close this PR.
Hi, and thanks for this!
We ran into some issues when converting GeoJSON files to Poly using this script. According to the OSM wiki page the order must be
longitude
,latitude
.After some debugging I figured out that in the generated Poly files the order was
latitude
,longitude
. After I swappedx
andy
everything worked.Maybe this is useful for anyone using this script.