gdalClipWithShape: Clip raster with a shape file

View source: R/gdal_raster_functions.R

gdalClipWithShapeR Documentation

Clip raster with a shape file

Description

Clip raster with a shape file

Usage

gdalClipWithShape(
  inrast,
  inshp,
  outrast = NULL,
  field = NULL,
  cropToShape = FALSE,
  return.raster = TRUE
)

Arguments

inrast

file path or raster object

inshp

file path or shape object

outrast

NULL or file path. Default NULL and produces a tmp raster file.

field

name of specific field in shapefile to clip raster with. Default is NULL

cropToShape

logical Should the raster be cropped to the extent of the shapefile. Default is FALSE

return.raster

logical Should the raster be returned to R environment? Default is TRUE


skiptoniam/sense documentation built on March 18, 2023, 4:36 a.m.