Can writeSpatialShape { maptools }
be somehow forced to write the shapefile with CRS?
writeSpatialShape(socc_buf, "f:/hdf/socc_buff_R.shp") # no CRS in the shapefile
There does not seem to be an option for this.
PS: I know it can be done using writeOGR { rgdal }
.
TMS
You need to remove the .shp from the filename as it creates a .shp .shx and .dbf file. According to the package manual "fn shapefile layer name, when writing omitting the extensions *.shp, *.shx and *.dbf, which are added in the function"
Thanks
tony.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.