的首选书写顺序GIS服务中的经度元组

的首选书写顺序GIS服务中的经度元组

本文介绍了纬度&的首选书写顺序GIS服务中的经度元组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在处理GIS源代码时,通常需要编写纬度和经度坐标元组.

When dealing with GIS source code you often need to write latitude and longitude coordinate tuples.

例如在Google地图链接中(123,456):

E.g. in Google Maps links (123, 456):

http: //maps.google.com/maps/ms?msid=214518704716144912556.00046d7689a99e95b721c&msa=0&ll=123,456&spn=0.007996,0.026865

哪个是首选顺序(为什么?)

Which is preferred order (and why?)

  • 纬度,经度

  • latitude, longitude

经度,纬度

我已经看到两者都在各种系统中使用,我希望找到一些证据可以与其他系统保持一致.

I have seen both being used in various systems and I hope to find some evidence to stick with other one.

是否有标准做法?如果是,这是什么/什么?

Is there a standard practice, and if so, what is it / what are they?

推荐答案

EPSG:4326特别指出,坐标顺序应为纬度,经度.许多软件包仍使用经度,纬度排序.这种情况对项目截止日期和程序员的理智造成了无法想象的破坏.

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.

一个可以提供的最佳指导是充分了解软件堆栈中每个组件的预期轴顺序. PostGIS期望使用lng/lat. WFS 1.0使用lng/lat,但是WFS 1.3.0遵循标准并使用lat/lng. GeoTools默认为lat/lng,但可以使用系统属性覆盖.

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.

有关问题的历史和解释的GeoTools文档值得一读: http://docs.geotools.org/latest/userguide/library/referencing/order.html

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

这篇关于纬度&的首选书写顺序GIS服务中的经度元组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 06:44