g_envelope: Obtain the bounding envelope for input geometries

View source: R/geom.R

g_envelopeR Documentation

Obtain the bounding envelope for input geometries

Description

g_envelope() computes and returns the bounding envelope(s) for the input geometries. Wrapper of OGR_G_GetEnvelope() in GDAL OGRGeometry.

Usage

g_envelope(geom, quiet = FALSE)

Arguments

geom

Either a raw vector of WKB or list of raw vectors, or a character vector containing one or more WKT strings.

quiet

Logical value, TRUE to suppress warnings. Defaults to FALSE.

Value

Either a numeric vector of length 4 containing the envelope ⁠(xmin, xmax, ymin, ymax)⁠, or a four-column numeric matrix with number of rows equal to the number of input geometries and column names ⁠("xmin", "xmax", "ymin", "ymax")⁠.


gdalraster documentation built on June 8, 2025, 12:37 p.m.