It tries repairing input vector data.
Vector validity violation usually appears in polygon data with
self-crossing or
hole orders. This function will pass the input_vector object to
sf::st_make_valid
(if input_vector is sf) or
terra::makeValid
(if input_vector is SpatVector).
May take some time depending on the geometry complexity.
See also
Other Helper functions:
any_class_args()
,
clip_ras_ext()
,
clip_vec_ext()
,
crs_check()
,
datamod()
,
dep_check()
,
dep_switch()
,
ext2poly()
,
get_clip_ext()
,
is_bbox_within_reference()
,
is_within_ref()
,
par_def_q()
,
reproject_b2r()
,
reproject_std()