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.
See also
at_fix_geometry(), at_validate()
Other geometry:
at_check_containment(),
at_clamp(),
at_fix_geometry(),
at_flip_y(),
at_roi_buffer(),
at_roi_contains(),
at_roi_distance(),
at_roi_overlaps(),
at_roi_rescale(),
at_roi_ring(),
at_roi_setops,
at_roi_simplify(),
at_rois_overlap(),
at_snap(),
at_transform()
Examples
at_check_geometry(at_example_project())
#> # A tibble: 0 × 4
#> # ℹ 4 variables: roi_id <chr>, issue <chr>, severity <chr>, fixable <lgl>