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