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, 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")
.