st_rect | R Documentation |
st_rect
st_rect(range, crs = st_crs(4326))
range |
|
## Not run:
xlim <- c(112, 115)
ylim <- c(21, 23)
range <- c(xlim, ylim)
poly <- st_rect(range)
write_sf(poly, "poly.shp")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.