bbox_to_wkt | R Documentation |
bbox_to_wkt()
returns a WKT POLYGON string for the given bounding box.
Requires GDAL built with the GEOS library.
bbox_to_wkt(bbox, extend_x = 0, extend_y = 0)
bbox |
Numeric vector of length four containing xmin, ymin, xmax, ymax. |
extend_x |
Numeric scalar. Distance in units of |
extend_y |
Numeric scalar. Distance in units of |
Character string for an OGC WKT polygon.
NA
is returned if GDAL was built without the GEOS library.
bbox_from_wkt()
, g_buffer()
elev_file <- system.file("extdata/storml_elev.tif", package="gdalraster")
ds <- new(GDALRaster, elev_file, read_only=TRUE)
bbox_to_wkt(ds$bbox())
ds$close()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.