checkgeometry | R Documentation |
This function checks the geometry type of a spatial object, and casts to the desired geometry (POLYGON or POINT). Also makes the geometries valid. Used mostly before operations requiring single-part polygon geometry. If intersections return linestrings, triangles or points, those are dropped.
checkgeometry(x, target = "POLYGON")
x |
Simple features spatial object, or list of sf objects |
target |
EPSG code of desired end projection, default British National Grid, or another sf object whose projection you want to match |
sf object with desired geometry type.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.