Description Usage Arguments Details Value See Also Examples
Set the reference window of a spatial object.
1 2 3 4 5 6 7 |
x |
the object for which to set a new reference window. |
to |
any suitable data-structure that contains the minimum and maximum values in x and y-dimension to which the reference window shall be set, see Details. |
... |
other arguments. |
Possible data-structures are
an object of class
Extent
,
an object of class bbox
,
a table with two columns (named x and y) containing the minimum and maximum values for each dimension.
The object x
with an update reference window.
Other setters:
setCRS()
,
setFeatures()
,
setGroups()
,
setHistory()
1 2 3 4 5 6 7 8 9 10 11 | # create a polygon programmatically
coords <- data.frame(x = c(40, 70, 70, 50),
y = c(40, 40, 60, 70))
(aGeom <- gs_polygon(anchor = coords))
visualise(aGeom)
window <- data.frame(x = c(0, 80),
y = c(0, 80))
(aGeom <- setWindow(x = aGeom, to = window))
visualise(aGeom)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.