rsbivand / rgrass

Interpreted interface between the GRASS geographical information system and R
https://rsbivand.github.io/rgrass/
26 stars 9 forks source link

write_RAST: fix overwrite behavior for SpatRaster #74

Closed petrasovaa closed 1 year ago

petrasovaa commented 1 year ago

Currently, the overwrite = TRUE in write_RAST doesn't work when SpatRaster is used. This PR should fix that.

There are some inconsistencies between write_RAST and write_VECT API regarding overwriting:

write_VECT(x, vname, ..., flags="overwrite")
write_RAST(x, vname, ... , flags=NULL, overwrite=FALSE, verbose=TRUE)

so ideally this should be standardized.