Skip to contents

Download raster with bounding box from PostGIS

Usage

pgGetTerra(conn, name, tile, rast = "rast", bands = 37:73, boundary)

Arguments

conn

a DBI or RPostgres connection object.

name

character. Table name in database.

tile

Logical. Retrieve data in tiles to avoid overloading the database?

rast

character. Name of column which stores raster data. Defaults to "rast"

bands

numeric. Which raster bands to return. Default 37:73.

boundary

numeric. Vector of length 4 (ymax,ymin,xmax,xmin). Defaults to NULL.

Value

A SpatRaster