public class BasicSegmentString
implements
SegmentString
Represents a list of contiguous line segments, and supports noding the segments. The line segments are represented by an array of
Coordinates. Intended to optimize the noding of contiguous segments by reducing the number of allocated objects. SegmentStrings can carry a context object, which is useful for preserving topological or parentage information. All noded substrings are initialized with the same context object.
Other
version: 1.7
public BasicSegmentString(Coordinate[] pts, Object
data)
Creates a new segment string from a list of vertices.
Parameters:
pts - pts the vertices of the segment string
data - data the user-defined data of this segment string (may be null)