com.vividsolutions.jts.linearref
Class LinearGeometryBuilder
java.lang.Object
com.vividsolutions.jts.linearref.LinearGeometryBuilder
public class LinearGeometryBuilder
extends java.lang.Object
LinearGeometryBuilder
public LinearGeometryBuilder(GeometryFactory geomFact)
add
public void add(Coordinate pt)
Adds a point to the current line.
pt
- the Coordinate to add
add
public void add(Coordinate pt,
boolean allowRepeatedPoints)
Adds a point to the current line.
pt
- the Coordinate to add
endLine
public void endLine()
Terminate the current LineString.
getGeometry
public Geometry getGeometry()
getLastCoordinate
public Coordinate getLastCoordinate()
setFixInvalidLines
public void setFixInvalidLines(boolean fixInvalidLines)
Allows invalid lines to be ignored rather than causing Exceptions.
An invalid line is one which has only one unique point.
setIgnoreInvalidLines
public void setIgnoreInvalidLines(boolean ignoreInvalidLines)
Allows invalid lines to be ignored rather than causing Exceptions.
An invalid line is one which has only one unique point.