This internal helper evaluates whether a spatial object is too large based on area (for polygons) and bounding box dimensions.
geo_too_large(
x,
area_threshold = 1e+09,
extent_threshold = 150000,
verbose = TRUE
)Invisibly returns FALSE if within limits. Throws an error if thresholds are exceeded.
An sf object to check.
Numeric. Maximum allowed area in m2 (for polygon geometries). Default is 1e9.
Numeric. Maximum allowed bounding box width or height in meters. Default is 1.5e5.
Logical. If TRUE, prints a message when the object is within limits.