gdalio_set_default_grid: Title

View source: R/default_grid.R

gdalio_set_default_gridR Documentation

Title

Description

Input may be a list with extent $dimension, $projection, which is c(xmin, xmax, ymin, ymax), c(ncol, nrow), and string (accepted by GDAL as a projection input). Alternatively, use a raster, stars, or terra object. Only simple cases of stars will work (regular grids with positive x, negative y transforms).

Usage

gdalio_set_default_grid(
  x,
  ...,
  extent = NULL,
  dimension = NULL,
  projection = NULL
)

Arguments

x

grid specification, a list with '$extent, $dimension, $projection' or a spatial grid object see Details

Value

the grid specification (originally: nothing, used to set a default grid available globally)

Examples

gdalio_set_default_grid(list(extent = c(-1000, 1000, -2000, 2000),
   dimension = c(100, 200), projection = "+proj=longlat"))
gdalio_set_default_grid()

hypertidy/gdalio documentation built on June 15, 2022, 6:45 p.m.