public class SegmentStringUtil extends Object
SegmentString
s.Constructor and Description |
---|
SegmentStringUtil() |
Modifier and Type | Method and Description |
---|---|
static List |
extractNodedSegmentStrings(Geometry geom)
Extracts all linear components from a given
Geometry
to SegmentString s. |
static List |
extractSegmentStrings(Geometry geom)
Extracts all linear components from a given
Geometry
to SegmentString s. |
static Geometry |
toGeometry(Collection segStrings,
GeometryFactory geomFact)
Converts a collection of
SegmentString s into a Geometry . |
static String |
toString(List segStrings) |
public static List extractSegmentStrings(Geometry geom)
Geometry
to SegmentString
s.
The SegmentString data item is set to be the source Geometry.geom
- the geometry to extract frompublic static List extractNodedSegmentStrings(Geometry geom)
Geometry
to SegmentString
s.
The SegmentString data item is set to be the source Geometry.geom
- the geometry to extract frompublic static Geometry toGeometry(Collection segStrings, GeometryFactory geomFact)
SegmentString
s into a Geometry
.
The geometry will be either a LineString
or a MultiLineString
(possibly empty).segStrings
- a collection of SegmentStringsCopyright © 2020. All rights reserved.