roi_to_jgeom | R Documentation |
Convert a region of interest to a json geometry
roi_to_jgeom(roi, projection = sp::CRS("+init=epsg:4326"))
roi |
a region of interest supplied as a vector/matrix of named ('x',
'y') coordinates or any sp package spatial
object or a path to a file |
projection |
sp's package CRS object providing points projection.
Applicable only when the |
character, a json geometry string
Coordinates are assumed to be projected (WGS-84, 4326). Spatial objects will be reprojected as necessary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.