【问题标题】:Having the latitude and longitude, plotting in 2d, can I use the 3d formula?有了纬度和经度,在 2d 中绘图,我可以使用 3d 公式吗?
【发布时间】:2013-01-09 03:57:57
【问题描述】:

这个方程接受纬度和经度并返回 y 和 x 坐标:

    y = R * cos(latitude) * sin(longitude);                 

    x = R * cos(latitude) * cos(longitude);

示例经度和纬度: “纬度”:19.0733000, “隆”:82.9479000,

z 坐标不作为它的 2d 存在。 现在我显示了某种地图部分,但在大多数情况下并不那么正确,我用谷歌搜索从经度纬度转换,并且由于 openStreetMap 使用墨卡托投影,但是使用我有一个单独的问题,即如何处理绘制浮点数的值x 和 y 在屏幕上?

如何应用公式? 为什么使用我正在使用的方程式是合适的?

【问题讨论】:

    标签: rendering geocoding latitude-longitude openstreetmap


    【解决方案1】:

    不,您不能使用上述公式在二维平面上绘图。尝试 (0N, 0E) 给出坐标 ( R, 0) 和 (0N, 90E) 给出坐标 (0, R)。

    此 gis 链接讨论墨卡托投影:https://gis.stackexchange.com/questions/20686/mercator-projection-problem-with-latitude-formula

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-19
      相关资源
      最近更新 更多