Skip to contents

Check the geometry of every ROI in a project

Usage

at_check_geometry(project, call = rlang::caller_env())

Arguments

project

An annot_project.

call

The calling environment, for error reporting.

Value

A tibble::tibble with columns roi_id (character), issue (character), severity (character, "error"/"warning"), and fixable (logical). Detected issues: self-intersection, invalid geometry, zero area, degenerate rings, out-of-bounds vertices, duplicate consecutive vertices, ring orientation, and NA coordinates. A 0-row tibble when all geometry is valid.

Examples

at_check_geometry(at_example_project())
#> # A tibble: 0 × 4
#> # ℹ 4 variables: roi_id <chr>, issue <chr>, severity <chr>, fixable <lgl>