if (FALSE) {
pgWriteRast(conn, c("schema", "tablename"), raster_name)
# basic test
r <- terra::rast(nrows=180, ncols=360, xmin=-180, xmax=180,
ymin=-90, ymax=90, vals=1)
pgWriteRast(conn, c("schema", "test"), raster = r,
bit.depth = "2BUI", overwrite = TRUE)
}
Run the code above in your browser using DataLab