s2lonlatbox | R Documentation |
Generic function to extract or construct a box in longitude and latitude coordinates.
s2lonlatbox(...) ## S3 method for class 's2region' s2lonlatbox(x, ...) ## Default S3 method: s2lonlatbox(lon = c(-180, 180), lat = c(-90, 90), ...) ## S3 method for class 's2_geography' s2lonlatbox(x, ...)
... |
Arguments passed on to
|
x |
object of class |
lon |
Numeric of length 2 specifying longitude interval in degrees. For
boxes not crossing the 180 degree meridian the input should be such that
|
lat |
Numeric of length 2 with |
Box in longitude and latitude coordinates (of class "s2lonlatbox"
).
s2lonlatbox(s2region)
: Extraction method for "s2region"
.
s2lonlatbox(default)
: Default method to generate "s2lonlatbox"
from a
longitude and latitude interval.
s2lonlatbox(s2_geography)
: Method to generate "s2lonlatbox"
from an object of
class "s2_geography"
.
s2lonlatbox.s2region s2lonlatbox.default
s2lonlatbox(lon = c(-30, 30), lat = c(45, 90)) ## Very large box crossing the 180th meridian big <- s2lonlatbox(lon = c(1, -1), lat = c(-90, 90)) # area(big) # Not implemented yet ## Very small box **not** crossing the 180th meridian small <- s2lonlatbox(lon = c(-1, 1), lat = c(-90, 90)) # area(small) # Not implemented yet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.