[R-sig-Geo] Error when saving an sf (data) object to file as a shapefile
Edzer Pebesma
edzer@pebe@m@ @end|ng |rom un|-muen@ter@de
Sat Jun 20 18:20:42 CEST 2020
On 6/20/20 12:28 PM, Lom Navanyo wrote:
> Unknown field name `Act_Depthtwtr': updating a layer with improper field
> name(s)?
Shapefiles have funny restrictions as to the length and form of variable
names, you probably ran into that, as the message suggests.
A general advice is to not use shapefiles for writing; there are better
alternatives, geopackage comes to mind. Shapefiles make life unnecessary
complicated, you've now run into two of the many problems they have. The
days of creating shapefiles are over. If someone asks you to create
shapfiles, explain them it is a bad idea.
--
Edzer Pebesma
Institute for Geoinformatics
Heisenbergstrasse 2, 48149 Muenster, Germany
Phone: +49 251 8333081
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pEpkey.asc
Type: application/pgp-keys
Size: 3110 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20200620/ae0821eb/attachment.bin>
More information about the R-sig-Geo
mailing list