JTS Core 1.17.1
Packages
Classes
Search
About
Top
extractSegmentStrings(Geometry): List
extractNodedSegmentStrings(Geometry): List
toGeometry(Collection, GeometryFactory): Geometry
toString(List): String
Bottom
Source
Classic
org.locationtech.jts.noding
Class SegmentStringUtil
Hierarchy:
Object
, SegmentStringUtil
public class SegmentStringUtil
Utility methods for processing
SegmentString
s.
Authors:
Martin Davis
public
static
List
extractSegmentStrings(
Geometry
geom)
Extracts all linear components from a given
Geometry
to
SegmentString
s. The SegmentString data item is set to be the source Geometry.
Parameters:
geom - geom the geometry to extract from
Returns:
a List of SegmentStrings
public
static
List
extractNodedSegmentStrings(
Geometry
geom)
Extracts all linear components from a given
Geometry
to
SegmentString
s. The SegmentString data item is set to be the source Geometry.
Parameters:
geom - geom the geometry to extract from
Returns:
a List of SegmentStrings
public
static
Geometry
toGeometry(
Collection
segStrings,
GeometryFactory
geomFact)
Converts a collection of
SegmentString
s into a
Geometry
. The geometry will be either a
LineString
or a
MultiLineString
(possibly empty).
Parameters:
segStrings - segStrings a collection of SegmentStrings
Returns:
a LineString or MultiLineString
public
static
String
toString(
List
segStrings)