LinearGeometryBuilder class

Builds a linear geometry ({@link LineString} or {@link MultiLineString}) incrementally (point-by-point).

@version 1.7

Constructors

LinearGeometryBuilder(GeometryFactory geomFact)

Properties

coordList CoordinateList?
getter/setter pair
fixInvalidLines bool
getter/setter pair
geomFact GeometryFactory
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ignoreInvalidLines bool
getter/setter pair
lastPt Coordinate?
getter/setter pair
lines List<LineString>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Coordinate pt) → void
Adds a point to the current line.
addWithRepeated(Coordinate pt, bool allowRepeatedPoints) → void
Adds a point to the current line.
endLine() → void
Terminate the current LineString.
getGeometry() Geometry
getLastCoordinate() Coordinate?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setFixInvalidLines(bool fixInvalidLines) → void
Allows invalid lines to be ignored rather than causing Exceptions. An invalid line is one which has only one unique point.
setIgnoreInvalidLines(bool ignoreInvalidLines) → void
Allows invalid lines to be ignored rather than causing Exceptions. An invalid line is one which has only one unique point.
toString() String
A string representation of this object.
inherited
validCoordinateSequence(List<Coordinate> pts) List<Coordinate>

Operators

operator ==(Object other) bool
The equality operator.
inherited