build_polygon | R Documentation |
Creates a spatial polygon bounding box from a user-provided extent and coordinate reference system.
build_polygon(xmin, xmax, ymin, ymax)
x_min |
A float or integer value for the x (longitude) coordinate minimum |
x_max |
A float or integer value for the x (longitude) coordinate maximum |
y_min |
A float or integer value for the y (latitude) coordinate minimum |
y_max |
A float or integer value for the y (latitude) coordinate maximum |
my_crs |
An integer for the EPSG number of the desired output coordinate reference system. |
A bounding box polygon as an sf object
Chris R. Vernon (chris.vernon@pnnl.gov)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.