# Download 'ArcRasterRescue' from:
# https://github.com/r-barnes/ArcRasterRescue
# Compile with:
# make
# Export TIF from GDB
input = "test.gdb/" # Must end with '/'!
output = "/home/michael/Downloads/out1.tif"
x = sprintf("ArcRasterRescue/./arc_raster.exe %s 0-1 %s", input, output)
system(x)
# Read back into R & plot
library(stars)
## Loading required package: abind
## Loading required package: sf
## Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 7.0.0
r = read_stars(output)
r
## stars_proxy object with 1 attribute in file:
## $out1.tif
## [1] "[...]/out1.tif"
##
## dimension(s):
## from to offset delta refsys point values
## x 1 87936 -2249822 50 North_America_Equidistant... FALSE NULL [x]
## y 1 57600 1290918 -50 North_America_Equidistant... FALSE NULL [y]
plot(r)
