roi_to_jgeom: Convert a region of interest to a json geometry

View source: R/roi_to_jgeom.R

roi_to_jgeomR Documentation

Convert a region of interest to a json geometry

Description

Convert a region of interest to a json geometry

Usage

roi_to_jgeom(roi, projection = sp::CRS("+init=epsg:4326"))

Arguments

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 readOGR can open or a json geometry character string

projection

sp's package CRS object providing points projection. Applicable only when the roi parameter is a vector/matrix of coordinates

Value

character, a json geometry string

Note

Coordinates are assumed to be projected (WGS-84, 4326). Spatial objects will be reprojected as necessary


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