powered by
Tests whether a polygon has the correct geometry, namely; S4 or sf. Also, tests that there is a valid projection attached to the polygon.
S4
sf
poly_tester(poly)
Returns error messages, or mute
(as spatialPolygons, spatialPolygonDataFrames, or simple features). A spatial polygon object.
spatialPolygons
spatialPolygonDataFrames
simple features
Returns an error message if the polygon is not in the correct geometry or CRS.
#load boundary of Camden load(file = system.file("extdata", "camden.rda", package="stppSim")) boundary = camden$boundary # get boundary poly_tester(poly=boundary)
Run the code above in your browser using DataLab