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