spat_to_jgeom: Convert any sp package geometry to a json geometry

View source: R/spat_to_jgeom.R

spat_to_jgeomR Documentation

Convert any sp package geometry to a json geometry

Description

Convert any sp package geometry to a json geometry

Usage

spat_to_jgeom(spat)

Arguments

spat

an sp package spatial object or list of sp package spatial objects

Value

vector of corresponding JSON geometries

Note

Objects consisting of many one feature are covnerted to GeoJSON Polygons while objects consisting of many features to MultiPolygons.


IVFL-BOKU/sentinel2 documentation built on May 13, 2022, 11:15 p.m.