Turn a single parsed GeoJSON feature (a list with geometry and optional
properties) into an annot_roi. Useful for consuming interactive drawing
output.
Usage
at_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 annot_roi.
See also
Other io:
at_load_project(),
at_load_session(),
at_read_geojson(),
at_read_qupath(),
at_read_rois_csv(),
at_save_project(),
at_save_session(),
at_write_geojson(),
at_write_qupath(),
at_write_rois_csv()
Other rois:
at_roi_area(),
at_roi_bbox(),
at_roi_centroid(),
at_roi_circle(),
at_roi_ellipse(),
at_roi_freehand(),
at_roi_from_sf(),
at_roi_point(),
at_roi_polygon(),
at_roi_rect()