calcBoundaryData: Calculate boundary data for planning units
Description
This function calculates boundary length data. Be aware that this
function is designed with performance in mind, 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.