calcBoundaryData: Calculate boundary data for planning units
Description
This function calculates boundary length data for PolySet, SpatialPolygons, and SpatialPolygonsDataFrame objects.
Be aware that this function is designed to be as fast as possible, and as a consequence, if this
function is used improperly then it may crash R. Furthermore, multipart polygons with touching edges will likely result in inaccuracies.
If argument set to SpatialPolygons or SpatialPolygonsDataFrame, this will be converted to PolySet before processing.