使用 GeoTools:com.vividsolutions.jts.geom.Cooperative 类中的纬度和经度是什么?
我将使用 com.vividsolutions.jts.geom.Coordinate 作为我的坐标类。 但没有找到任何坐标顺序正确的文档。这是标准的吗?
这是 java 文档链接 -> http://www.vividsolutions.com/jts/javadoc /com/vividsolutions/jts/geom/Cooperative.html
我的问题是: x 是什么? (是纬度还是经度?) y 是什么? (是纬度还是经度?)
任何指导都会受到赞赏。
更新1 让我补充一下。我正在使用 GeoTools Java 库。然后,该库正在使用该坐标类。 GeoTools 如何处理 Cooperative.x 和 Cooperative.y?
I will use com.vividsolutions.jts.geom.Coordinate
as my coordinate class.
But don't find any document which is the correct order of the coordinate. is it standard?
Here's the java doc link -> http://www.vividsolutions.com/jts/javadoc/com/vividsolutions/jts/geom/Coordinate.html
My question is:
What is x? (is it Latitude or Longitude?)
What is y? (is it Latitude or Longitude?)
Any guidance is appreciated.
UPDATES1
Let me to add this. I am using GeoTools Java Library. Then, the library is using that Coordinate class. How does GeoTools treat the Coordinate.x and Coordinate.y?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于您使用的投影。检查 EPSG 定义,它将列出轴顺序。例如,请参阅 http://spatialreference.org/ref/sr-org/6864/prettywkt /。如果您使用 GeoTools,那么您可能不需要担心 JTS 内部结构。
更新
我记得这个文档可能会有所帮助(http ://docs.geotools.org/latest/userguide/library/referencing/order.html)
It depends on the projection you are using. Check the EPSG definition and it will list the axis order. For example see http://spatialreference.org/ref/sr-org/6864/prettywkt/. If you are using GeoTools then you probably don't need to be worrying about the JTS internals.
UPDATE
I remembered this document which may help (http://docs.geotools.org/latest/userguide/library/referencing/order.html)
在笛卡尔坐标中,x 映射左右,y 映射上下。因此,在地图前面自然适合的方向是使用 x 表示经度(东西),使用 y 表示纬度(南北)。还有 az,可用于高度。
In Cartesian coordinates, x maps left-right and y maps up-down. So, a natural fit oriented in front of a map would be to use x for longitude (east-west) and y for latitude (north-south). There's a z as well, that could be used for altitude.