Compute polygons robustness, the higher the value the more robust the polygon is. robustness can be defined as the largest distance of moving a vertex, while the result is still a valid polygon

st_probustness(x)

Arguments

x

object of class sf, sfc or sfg, it only works with POLYGON or MULTIPOLYGON are supported

Value

a numeric vector

References

Ledoux, H., Arroyo Ohori, K., and Meijers, M. (2014). A triangulation-based approach to automatically repair GIS polygons. Computers & Geosciences 66:121–131.

van Oosterom P., Quak W., Tijssen T. (2005). About Invalid, Valid and Clean Polygons. In: Developments in Spatial Data Handling. Springer, Berlin, Heidelberg

Examples

if (FALSE) { library(sf) p1 <- st_as_sfc("POLYGON((0 0, 0 10, 10 0, 10 10, 0 0))") st_is_valid(p1) st_probustness(p1) st_probustness(st_prepair(p1)) }