Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可以writeSpatialShape { maptools }以某种方式强制使用 CRS 编写 shapefile 吗?
writeSpatialShape { maptools }
writeSpatialShape(socc_buf, "f:/hdf/socc_buff_R.shp") # no CRS in the shapefile
似乎没有这个选项。
PS:我知道可以使用writeOGR { rgdal }.
writeOGR { rgdal }
经颅磁刺激
您需要从文件名中删除 .shp,因为它会创建 .shp .shx 和 .dbf 文件。根据包手册“fn shapefile层名称,编写时省略扩展名*.shp、*.shx和*.dbf,它们是在函数中添加的”
谢谢
托尼