Coercion between sf and alcyon map classes
Source:R/coercion.R, R/ShapeMap.R, R/AxialShapeGraph.R, and 1 more
alcyon-coercion.RdDirect conversions between sf objects and the map classes provided by
this package. For ShapeMap -> Axial -> Segment see
axialToSegmentShapeGraph.
This is a direct conversion, for ShapeMap -> Axial -> Segment see axialToSegmentShapeGraph
This is a direct conversion, for ShapeMap -> Axial -> Segment see axialToSegmentShapeGraph
Usage
# S4 method for class 'sf,ShapeMap'
coerce(from, to = "ShapeMap", strict = TRUE)
# S4 method for class 'ShapeMap,sf'
coerce(from, to = "sf", strict = TRUE)
# S4 method for class 'ShapeMap,AxialShapeGraph'
coerce(from, to = "AxialShapeGraph", strict = TRUE)
# S4 method for class 'sf,AxialShapeGraph'
coerce(from, to = "AxialShapeGraph", strict = TRUE)
# S4 method for class 'ShapeMap,SegmentShapeGraph'
coerce(from, to = "SegmentShapeGraph", strict = TRUE)
# S4 method for class 'sf,SegmentShapeGraph'
coerce(from, to = "SegmentShapeGraph", strict = TRUE)Arguments
- from
the object to coerce.
- to
the target class. Supplied by
asand not used by the method bodies.- strict
logical, part of the
coercegeneric signature. Not used by the method bodies.
See also
Other ShapeMap:
ShapeMap-class
Other AxialShapeGraph:
AxialShapeGraph-class
Other SegmentShapeGraph:
SegmentShapeGraph-class