[R-sig-Geo] Field names abbreviated for ESRI Shapefile driver

Joe Lewis jo@eph|ew|@1992 @end|ng |rom gm@||@com
Sun Apr 19 17:42:53 CEST 2020


Hi  Milu,

It is not possible to preserve your field/variable name when creating ESRI
shapefiles as the maximum length of field names is limited to 10 character.

See https://community.esri.com/thread/63279

I believe the geopackage format does not have the 10 character limit, so
you may want to try that.

Hope it helps.

Kind regards,
Joseph Lewis

On Sun, Apr 19, 2020 at 4:38 PM Miluji Sb <milujisb using gmail.com> wrote:

> 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
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list