【问题标题】:How to convert shape file x, y coordinate to lat long in php如何在php中将形状文件x,y坐标转换为lat long
【发布时间】:2017-03-10 10:31:52
【问题描述】:

您好,我正在我的 yii2 项目中使用 shape 文件。我创建了上传和读取形状文件的功能。 (.shp、.shx、.dbf)。

我得到的数据如下:

在上图中,我得到了 x 和 y 坐标。从它我怎么能得到lat和long?

我需要将它保存在数据库中并显示在地图中。

如何在 php 中将 x 和 y 转换为 lat 和 long。

【问题讨论】:

  • x 和 y 是 lat 和 lng .. 你是什么意思 .? .你需要一个特定的转换? ..您需要哪种转换..?
  • 你找到答案了吗?

标签: php yii2 latitude-longitude shapefile


【解决方案1】:

x 坐标是纬度,y 坐标是经度。除非您想使用不使用十进制度的坐标系,否则无需转换它们。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-03-31
    • 2020-09-11
    • 2021-10-16
    • 1970-01-01
    • 1970-01-01
    • 2018-11-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多