书写纬度&经度元组 [英] Preferred order of writing latitude & longitude tuples
问题描述
哪个是首选订单(以及为什么?) 经纬度
经度,纬度
我已经看到两种方法都被用于各种系统,我希望能够找到一些证据来坚持其他系统。
EPSG:4326明确指出坐标顺序应该是纬度,经度。许多软件包仍然使用经度,纬度排序。这种情况在项目期限和程序员的理智上造成了难以想象的混乱。
最好的方法是充分了解软件中每个组件的预期轴顺序叠加。 PostGIS预计lng / lat。 WFS 1.0使用lng / lat,但WFS 1.3.0遵循标准并使用lat / lng。 GeoTools默认为lat / lng,但可以用系统属性覆盖。
GeoTools关于问题历史和解释的文档值得一读:
http://docs.geotools.org/latest/userguide/library/referencing/order.html
When dealing with GIS source code you often need to write latitude and longitude coordinate tuples.
E.g. in Google Maps links (123, 456):
Which is preferred order (and why?)
latitude, longitude
longitude, latitude
I have seen both being used in various systems and I hope to find some evidence to stick with other one.
EPSG:4326 specifically states that the coordinate order should be latitude, longitude. Many software packages still use longitude, latitude ordering. This situation has wreaked unimaginable havoc on project deadlines and programmer sanity.
The best guidance one can offer is to be fully aware of the expected axis order of each component in your software stack. PostGIS expects lng/lat. WFS 1.0 uses lng/lat, but WFS 1.3.0 defers to the standard and uses lat/lng. GeoTools defaults to lat/lng but can be overridden with a system property.
The GeoTools docs on the history and explanation of the problem are worth a read: http://docs.geotools.org/latest/userguide/library/referencing/order.html
这篇关于书写纬度&经度元组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!