Spatial reference error when using arc.write

436
0
10-08-2019 11:59 AM
PaulMillhouser
New Contributor II

I'm working through the habitat suitability tutorial at Identify an Ecological Niche for African Buffalo | Learn ArcGIS . as per the instructions, I attempted to use arc.write in RStudio to export my spatial pixels data frame (for which I have assigned the spatial reference as instructed) to a file geodatabase raster by executing arc.write("C:/[file path]/AfricanBuffalo.gdb/Habitat_Suitability_Raster", habitat_suitability)

I get the following message: "Error in .call_proxy("raster.create", .self, source, as.pairlist(args)) : No spatial reference exists." However, if I check the crs with crs(habitat_suitability), I receive "CRS arguments: +proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +no_defs", which appears to be correct. The spatial pixels data frame also looks correct when plotted in RStudio. I'm using RStudio 1.2.5001, R 3.6.1 (64 bit), and arcgisbinding1.0.1.232.

 

Any suggestions? Thanks in advance for your help.

0 Kudos
0 Replies