Skip to contents

Validate compatibility between geometry and dragmapr state

Usage

validate_state_compatibility(
  x,
  state,
  region_col = NULL,
  geometry_id = NULL,
  strict = TRUE
)

Arguments

x

An sf object or layout-like object.

state

A dragmapr_state.

region_col

Region column in x. Defaults to the binding metadata stored in state.

geometry_id

Optional expected geometry ID or fingerprint.

strict

Treat warnings as invalid.

Value

A dragmapr_compatibility object with structured findings.