Package org.locationtech.jts.noding
Class SegmentStringUtil
java.lang.Object
org.locationtech.jts.noding.SegmentStringUtil
Utility methods for processing
SegmentString
s.- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
Extracts all linear components from a givenGeometry
toBasicSegmentString
s.static List
Extracts all linear components from a givenGeometry
toNodedSegmentString
s.static List
Extracts all linear components from a givenGeometry
toSegmentString
s.static Geometry
toGeometry
(Collection segStrings, GeometryFactory geomFact) Converts a collection ofSegmentString
s into aGeometry
.static String
-
Constructor Details
-
SegmentStringUtil
public SegmentStringUtil()
-
-
Method Details
-
extractSegmentStrings
Extracts all linear components from a givenGeometry
toSegmentString
s. The SegmentString data item is set to be the source Geometry.- Parameters:
geom
- the geometry to extract from- Returns:
- a List of SegmentStrings
-
extractNodedSegmentStrings
Extracts all linear components from a givenGeometry
toNodedSegmentString
s. The SegmentString data item is set to be the source Geometry.- Parameters:
geom
- the geometry to extract from- Returns:
- a List of NodedSegmentStrings
-
extractBasicSegmentStrings
Extracts all linear components from a givenGeometry
toBasicSegmentString
s. The SegmentString data item is set to be the source Geometry.- Parameters:
geom
- the geometry to extract from- Returns:
- a List of BasicSegmentStrings
-
toGeometry
Converts a collection ofSegmentString
s into aGeometry
. The geometry will be either aLineString
or aMultiLineString
(possibly empty).- Parameters:
segStrings
- a collection of SegmentStrings- Returns:
- a LineString or MultiLineString
-
toString
-