ogr2ogr to convert a polyon from a
.shp file to
GeoJSON, I noticed that it writes the coordinates in order lat, long. I noticed this because whenever I tried to view the
GeoJSON on a map, it would place the polygon in the middle of nowhere; I then read a bit more about
GeoJSON and realized that the format requires the
(long,lat,altitude) [source]. Is there a way for me to specify that ogr2ogr should write the GeoJSON in that order? Or is there any other way for me to get around this problem?
I'm 100% open to the possibility that I'm misunderstanding GeoJSON and that it doesn't actually have to be in long,lat,altitude order.