[英]Is there a technical reason why Android tools (DDMS, and emulator “geo fix”) expect longitude before latitude?
This isn't really a problem, I am able to use the Android tools correctly, but they always trip me up when I come back to them because they expect input with longitude first, then latitude ( geo fix , and DDMS). 这并不是真正的问题,我能够正确使用Android工具,但是当我回到他们的身边时,它们总是让我烦恼,因为他们希望输入的信息首先是经度,然后是纬度( geo fix和DDMS)。
That's backward from the way I have always used them, and from the way every other tool/API I've used has represented them, and even from the way the Android APIs use them ( GeoPoint , for example, expects latitude first, then longitude). 这与我一直以来使用它们的方式,我所使用的其他所有工具/ API表示它们的方式,甚至与Android API使用它们的方式(例如GeoPoint ,首先期望纬度,然后是经度, )。
I am curious if there is a technical reason for this that I don't understand, or if it's easier in some context or something (some reason for it, or is it just random)? 我很好奇,是否有我不了解的技术原因,或者在某些情况下或某些情况下更容易(某些原因,还是只是随机的)?
I think that PROJ.4 is one of the most widely spread libraries for coordinate transformations. 我认为PROJ.4是坐标转换最广泛使用的库之一。 Similar to Android it is also using Longitude before Latitude. 与Android类似,它在纬度之前也使用经度。
I had a problem with that when I started to use it: How to transform coordinate from WGS84 to a coordinate in a projection with PROJ.4? 当我开始使用它时,我遇到了一个问题: 如何使用PROJ.4将坐标从WGS84转换为投影中的坐标?
So all the coordinate libraries that I have used in programming have used Longitude before Latitude, but I don't think there is any standards on this and no technical reason since it's just two values and one of them has to be first. 因此,我在编程中使用的所有坐标库都在纬度之前使用了经度,但是我认为对此没有任何标准,也没有技术上的原因,因为它只有两个值,并且其中一个必须是第一个。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.