Hacker News new | ask | show | jobs
by rozza 1488 days ago
The world is used to x,y for coordinates which sets the convention.
1 comments

In a cartesian plane yes. However for geospatial it's Lat/Long everywhere except in GeoJSON it seems.
Geospatial is pervasively Lon/Lat and has been the standard for decades across virtually every software system. GeoJSON is in the correct order, same order as every other common industry format for geospatial. There are similar conventions for polygon winding order, whether a polygon is closed or not, etc which new users frequently ignore.

To someone that works with geospatial data, this is like asserting that RGB is the wrong order for specifying color, ignoring that approximately everyone in industry has been using this ordering convention for a very long time.

It is usually not the end applications that get it backwards, it's usually a library somewhere in the toolchain that bites you where the author wrote code before learning there are conventions for these things.
OpenCV uses BGR.
It also uses y first indexing
Heh, I did not know that.
Can you give an example of one geospatial library or program that uses lat, lon? I can't think of any because they all use lon, lat.