简体   繁体   English

Android工具(DDMS和仿真器“ geo fix”)为什么在纬度之前需要经度,是否有技术上的原因?

[英]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.

相关问题 有没有办法使用Android模拟器和“地理定位”来传递当前速度数据以及纬度和经度? - Is there a way to pass current speed data along with latitude and longitude using the Android emulator and 'geo fix'? android在android的模拟器上获取经纬度 - android get latitude and longitude on emulator of android abd emu 地理修复<longitude><latitude>不适用于 Bitrise CI 服务器</latitude></longitude> - abd emu geo fix <longitude> <latitude> is not working on Bitrise CI server 在Mac上的Android模拟器中收到了错误的纬度/经度 - Wrong Latitude/longitude received in Android Emulator on Mac 为什么Android ddms没有显示模拟器或连接的设备? - Why Android ddms not showing emulator or connected devices? Android 模拟器位置 mocking 带地理修复 - Android Emulator Location mocking with geo fix 地理修复未在Android仿真器中设置浏览器位置 - Geo Fix Not Setting Browser Location in Android Emulator 通过纬度和经度,我可以在模拟器中获取地址,但不能在android设备中获取地址 - By latitude and longitude I can get address in emulator but not in android device 如何从Android中的模拟器中提取当前的纬度和经度值 - How to extract the present Latitude and Longitude values from Emulator in android 为什么在Android中获得不同的经度和纬度值? - Why is getting different values for longitude and latitude in android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM