[R-sig-Geo] Field names abbreviated for ESRI Shapefile driver
Bede-Fazekas Ákos
b|@|ev||@t @end|ng |rom gm@||@com
Sun Apr 19 17:49:35 CEST 2020
Dear Milu,
ESRI shapefile format cannot contain field names longer than 10
characters. So you should do one of the following options:
- choose other file format when saving the data,
- rename the columns of the sf object before saving.
HTH,
Ákos Bede-Fazekas
Hungarian Academy of Sciences
2020.04.19. 17:37 keltezéssel, Miluji Sb írta:
> Greetings,
>
> i am trying to export a shapefile using the following command;
>
> st_write(weight.sf, "weight.shp, driver="ESRI Shapefile")
>
> But getting the following warning;
>
> 1: In abbreviate_shapefile_names(obj) :
> Field names abbreviated for ESRI Shapefile driver
>
> The variable names have the following pattern; "weight_2010" but
> become like this "w__201". How can I preserve field/variable names? Thank
> you.
>
> Best regards,
>
> Milu
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
More information about the R-sig-Geo
mailing list