geo2char: Function to convert several extent informations into API...

View source: R/helpers.R

geo2charR Documentation

Function to convert several extent informations into API parameter 'geometry'

Description

This function will most probably become internal and is meant to convert several R classes with a geographical extent information into the format as needed by the 'geometry' parameter (see value).

Usage

geo2char(x)

Arguments

x

one of the following classes: Raster, Extent, sf, map or sp

Value

character string in the format: 'POINT(lon+lat)' or 'POLYGON(lon+lat,lon+lat,lon+lat,....)'

Author(s)

Robin Lovelace and Matteo Mattiuzzi


MatMatt/clmsapi documentation built on Feb. 4, 2023, 9:08 a.m.