I am getting the following error while writing an sf object dataframe to a GDB. The dataframe imported is a feature class from a GDB brought in via the sf package. After some data manipulation I am trying to write the dataframe back into the same GDB as a new feature class/layer.
I read in another post that sf does not support writing a feature class to a gdb so I had to use arcgisbinding. However, when I use sf::st_write to write the df as a shapefile, it works just fine.
The arc.write works on the sample nc dataset in the sf package but does not work on my dataset. I don't know if it matters but my sf object has more than 700,000 rows and 82 columns.
How can I fix this?
Error
Error in .call_proxy("arc_write", path, pairlist(data = data, coords = coords, :
insert row failed
Code
library(sf)
library(arcgisbinding)
arc.check_product()
product: ArcGIS Pro (12.8.0.29751)
license: Advanced
version: 1.0.1.244
arc.write("path/GDB.gdb/Feature_Class_Name", data = df, overwrite = TRUE)
I am getting the following error while writing an
sf objectdataframeto aGDB. The dataframe imported is a feature class from a GDB brought in via thesfpackage. After some data manipulation I am trying to write thedataframeback into the sameGDBas anewfeature class/layer.I read in another post that
sfdoes not support writing a feature class to agdbso I had to usearcgisbinding. However, when I usesf::st_writeto write thedfas ashapefile, it works just fine.The
arc.writeworks on the samplencdataset in thesfpackage but does not work on my dataset. I don't know if it matters but mysf objecthas more than700,000rows and82columns.How can I fix this?
Error
Code