|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vividsolutions.jts.linearref.LinearGeometryBuilder
Builds a linear geometry (LineString
or MultiLineString
)
incrementally (point-by-point).
Constructor Summary | |
LinearGeometryBuilder(GeometryFactory geomFact)
|
Method Summary | |
void |
add(Coordinate pt)
Adds a point to the current line. |
void |
add(Coordinate pt,
boolean allowRepeatedPoints)
Adds a point to the current line. |
void |
endLine()
Terminate the current LineString. |
Geometry |
getGeometry()
|
Coordinate |
getLastCoordinate()
|
void |
setFixInvalidLines(boolean fixInvalidLines)
Allows invalid lines to be ignored rather than causing Exceptions. |
void |
setIgnoreInvalidLines(boolean ignoreInvalidLines)
Allows invalid lines to be ignored rather than causing Exceptions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinearGeometryBuilder(GeometryFactory geomFact)
Method Detail |
public void setIgnoreInvalidLines(boolean ignoreInvalidLines)
public void setFixInvalidLines(boolean fixInvalidLines)
public void add(Coordinate pt)
pt
- the Coordinate to addpublic void add(Coordinate pt, boolean allowRepeatedPoints)
pt
- the Coordinate to addpublic Coordinate getLastCoordinate()
public void endLine()
public Geometry getGeometry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |