Hi all,
I've been using R to perform some spatial analyses on point and polygon data, and wish to export my products to a local .gdb as feature layers. My data types i'm attempting to write are sf class of spatial objects (as part of Simple Features package) and basic data frames.
I'm having some recurring issues using the arc.write() functions basic use case, in which issues with the arc.write() generating an "unknown error" or an "unspecified error" depending on the combination of arguments.
eg:
"Error in .call_proxy("arc_write", path, pairlist(data = data, coords = coords, :
unknown error"
I've previously had similar errors when specifying the path as "C:/project.gdb/" without a name for the feature layer, and had solved by running the code as set out below.
arc.check_product()
arc.write(path = "C:/project.gdb/layer_name", data = data_sf, overwrite = T, validate = T)
I have tried including and excluding all combinations of the above arguments, as well as including
"coords = sf$geometry". The sf data has not changed since it was last functional.
product: ArcGIS Pro (12.8.7.29751)
license: Advanced
version: 1.0.1.305
R version 4.1.3
arcgisbinding version is 1.0.1.305
The lack of detail in the error messages in the package are making diagnosing issues rather difficult. Is there plans to have this fixed in the near future? Can anyone help solve this problem?
Cheers,
Alan