New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terra::rasterize()
returns error about file already existing when trying to run on very large template raster
#1072
Comments
For a very much not small (but perhaps still minimal?) working example, I was using the Landfire biophysical settings layer for CONUS, which is the first download link here: https://landfire.gov/version_download.php I downloaded that file and called it And a vector file here:
Then I run:
Which results in the following error:
My
|
Maybe not relevant, but some additional context is that I'm trying
...but ran into trouble (R session aborted; memory issue?) when trying to re-populate a SpatRaster with a
|
I believe this works now. At least the below works (simulating the conditions encountered with a large file):
|
I'm still trying to come up with a minimum reproducible example here, but I'm noticing that
terra::rasterize()
returns an error about a file already existing (and suggests that I can tryoverwrite = TRUE
), but I'm including afilename=
argument for a file that definitely doesn't already exist, and am even including anoverwrite = TRUE
argument specification.I'm trying to count overlapping polygons over a large extent at 30 meter resolution. I believe I'm getting to this part of the code:
terra/R/rasterize.R
Lines 275 to 282 in 3ec9212
The text was updated successfully, but these errors were encountered: