Get the bounding box of a geometry specified in OGC WKT format
Source:R/RcppExports.R
bbox_from_wkt.Rd
bbox_from_wkt()
returns the bounding box of a WKT 2D geometry
(e.g., LINE, POLYGON, MULTIPOLYGON).
Arguments
- wkt
Character. OGC WKT string for a simple feature 2D geometry.
- extend_x
Numeric scalar. Distance to extend the output bounding box in both directions along the x-axis (results in
xmin = bbox[1] - extend_x
,xmax = bbox[3] + extend_x
).- extend_y
Numeric scalar. Distance to extend the output bounding box in both directions along the y-axis (results in
ymin = bbox[2] - extend_y
,ymax = bbox[4] + extend_y
).
Value
Numeric vector of length four containing the xmin, ymin,
xmax, ymax of the geometry specified by wkt
(possibly extended by values
in extend_x
, extend_y
).