get_site_boundaries: eLTER get_site_boundaries function

View source: R/get_site_boundaries.R

get_site_boundariesR Documentation

eLTER get_site_boundaries function

Description

[Stable] This internal function retrieves the boundary of a specified eLTER site and a view of the site boundaries on a leaflet map is shown. All the info are taken from the DEIMS-SDR sites API. If the boundary is missing, a warning message is printed in the R console.

Usage

get_site_boundaries(deimsid, show_map = FALSE)

Arguments

deimsid

A character. The DEIMS ID of the site from DEIMS-SDR website. DEIMS ID information here.

show_map

A boolean. When TRUE the boundary will be plotted on a Leaflet map. Default FALSE.

Value

The output of the function is an sf object, the boundary of the site or NA if the boundary is missing from DEIMS-SDR. In addition, as ⁠html map⁠ with boundaries of the site is plotted.

Author(s)

Alessandro Oggioni, phD (2020) oggioni.a@irea.cnr.it

Micha Silver, phD (2021) silverm@post.bgu.ac.il


oggioniale/ReLTER documentation built on Jan. 4, 2024, 3:48 p.m.