Turn a single parsed GeoJSON feature (a list with geometry and optional
properties) into an sg_roi. Useful for consuming interactive drawing
output.
Usage
sg_roi_from_geojson(
feature,
label = NULL,
level = 0L,
source = "manual",
call = rlang::caller_env()
)Arguments
- feature
A parsed GeoJSON feature: a list with a
geometryelement (typeandcoordinates) and optionalproperties.- label
Single string class label; taken from
properties$labelwhenNULL.- level
Integer pyramid level. Default
0.- source
Provenance source string. Default
"manual".- call
The calling environment, for error reporting.
Value
An sg_roi.