4 ms·
My point was that simply flipping lat/lon to be lon/lat is a cheap fix that still leaves you with problems. What I propose is to go "all the way" and make an i
by geokon 5y ago
My point was that simply flipping lat/lon to be lon/lat is a cheap fix that still leaves you with problems.
What I propose is to go "all the way" and make an internal positive/unsigned South/East coordinate system that naturally matches the display coordinate system (the inverted X-Y). It's sufficiently different that you'll never get confused and flip things at API boundaries. It's also sufficiently weird that you won't expose it to others :)
- cozzyd 5y agoWell, display coordinates are different from typical plot coordinates in any standard plotting package (of course, many plotting packages also support GIS, sort of making this a moot point). Yeah, if you're going to display coordinates you'll have extra problems.
- geokon 5y agoIt's not a moot point because you wanna debug stuff :) If things are looking weird or wrong on your display then you need to go back to your internal values to inspect what's wrong. When the internal value covary with th display values then this makes life significantly easier Not to mention things have a tendency to blow up when you start testing in the southern hemisphere haha That said.. I don't personally use any magic plotting packages. I just generate my own graphics with svg. It's quite easy and everything is debuggable