border_lines: Convert SpatialPolygonsDataFrame to SpatialLinesDataFrame...

Description Usage Arguments Value

Description

border_lines converts a SpatialPolygonsDataFrame to a SpatialLinesDataFrame with one element for each border between neighbouring areas.

Usage

1
border_lines(sp, longlat = TRUE)

Arguments

sp

Object of type SpatialPolygonsDataFrame (sf objects as converted)

longlat

Use Euclidean or Great Circle distance for calculation of line length. If FALSE, Euclidean distance, if TRUE Great Circle distance in kilometers.

Value

Object of class SpatialLinesDataFrame with one element for each border between neighbouring areas.


jlegewie/BoundaryDetection documentation built on May 17, 2019, 7:28 p.m.