View source: R/spat_to_jgeom.R
spat_to_jgeom | R Documentation |
Convert any sp package geometry to a json geometry
spat_to_jgeom(spat)
spat |
an sp package spatial object or list of sp package spatial objects |
vector of corresponding JSON geometries
Objects consisting of many one feature are covnerted to GeoJSON Polygons while objects consisting of many features to MultiPolygons.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.