Read ROIs from a CSV with WKT geometry
Usage
at_read_rois_csv(
path,
layer_name = "csv",
call = rlang::caller_env(),
coordinate_level = NULL,
legacy_levels = c("error", "recorded")
)Arguments
- path
Path to a CSV with at least
labelandgeometry(WKT) columns. Other columns (roi_id,level,author,source,created,modified) are used when present. Every column is read as text, so labels and ids such as"T","007"or"NA"are kept verbatim.levelis the pyramid level of the WKT coordinates.- layer_name
Layer name for the imported ROIs. Default
"csv".- call
The calling environment, for error reporting.
- coordinate_level
Optional integer overriding every recorded
levelwithout scaling coordinates. Use only when the actual coordinate level is known, for example0Lfor legacy hyperannotatR exports that wrote level-0 coordinates beside a nonzero source level.NULL(default) uses the schema andlegacy_levelspolicy. Coordinates are never automatically repaired.- legacy_levels
How to interpret files without the
coordinate_schemamarker:"error"(default) rejects ambiguous nonzero recorded levels;"recorded"explicitly trusts those levels. Level-0 files remain unambiguous.
Value
An annot_layer.