axialToSegmentShapeGraph {alcyon}R Documentation

Axial to Segment ShapeGraph

Description

Convert an Axial ShapeGraph to a Segment ShapeGraph

Usage

axialToSegmentShapeGraph(axialShapeGraph, stubRemoval = NULL)

Arguments

axialShapeGraph

An Axial ShapeGraph

stubRemoval

Remove stubs of axial lines shorter than this percentage (for example provide 0.4 for 40%)

Value

A new Segment ShapeGraph

Examples

mifFile <- system.file(
    "extdata", "testdata", "barnsbury",
    "barnsbury_small_axial_original.mif",
    package = "alcyon"
  )
  sfMap <- st_read(mifFile,
    geometry_column = 1L, quiet = TRUE
  )
  shapeGraph <- as(sfMap, "AxialShapeGraph")
axialToSegmentShapeGraph(shapeGraph, stubRemoval = 0.4)

[Package alcyon version 0.4.0 Index]