Read ROIs from a GeoJSON file
Usage
at_read_geojson(
path,
layer_name = NULL,
level = 0L,
flip_y = FALSE,
height = NULL,
call = rlang::caller_env()
)Arguments
- path
Path to a GeoJSON file.
- layer_name
Layer name for the imported ROIs; taken from the features'
layerproperty whenNULL.- level
Integer level to record when a feature has no
levelproperty.- flip_y
Logical; invert the y-axis on read. Default
FALSE.- height
Image height in pixels, required when
flip_y = TRUE.- call
The calling environment, for error reporting.
Value
A named list of annot_layer objects (one per distinct layer
property), or a single annot_layer when layer_name is supplied.