【问题标题】:why readOGR() is not reading projection information from .spj - r为什么 readOGR() 没有从 .spj - r 读取投影信息
【发布时间】:2013-10-20 23:55:46
【问题描述】:

我使用 readOGR 成功导入了一个多边形 shapefile,但是 .prj 文件中的信息没有被导入。

测试 类:SpatialPolygonsDataFrame 特点:19407 范围:35551.4、1585917、6318047、9408727(xmin、xmax、ymin、ymax) 协调。参考。 : 不

总结(测试) SpatialPolygonsDataFrame 类的对象 坐标: 最小最大 x 35551.4 1585917 是 6318047.3 9408727 预计:NA proj4string : [不适用]

投影应该是utm21n复区

【问题讨论】:

  • @SlowLearner:我没有看到这个用户的类似帖子。

标签: r shapefile map-projections rgdal


【解决方案1】:

看起来问题出在 rgdal 版本上。

Edzer:当我将任意 shapefile 的 .prj 文件替换为 这些内容,很好读。您是否尝试过当前的 R (3.2.4) 和 rgdal (1.1.7)?
Vinh_Nguyen:感谢 Edzer,升级 rgdal 到 1.1.8 的作品。仔细考虑这个问题。

http://r-sig-geo.2731867.n2.nabble.com/readOGR-not-reading-in-prj-file-td7589717.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-26
    • 2016-11-10
    • 1970-01-01
    • 2010-10-14
    相关资源
    最近更新 更多