Builds a linear geometry (LineString or MultiLineString) incrementally (point-by-point).
More...
#include <LinearGeometryBuilder.h>
Builds a linear geometry (LineString or MultiLineString) incrementally (point-by-point).
- Version
- 1.7
Definition at line 40 of file LinearGeometryBuilder.h.
geos::linearref::LinearGeometryBuilder::~LinearGeometryBuilder |
( |
| ) |
|
Adds a point to the current line.
- Parameters
-
void geos::linearref::LinearGeometryBuilder::add |
( |
const geom::Coordinate & |
pt, |
|
|
bool |
allowRepeatedPoints |
|
) |
| |
Adds a point to the current line.
- Parameters
-
pt | the Coordinate to add |
allowRepeatedPoints | if set to false , repeated coordinates are collapsed |
void geos::linearref::LinearGeometryBuilder::endLine |
( |
| ) |
|
Terminate the current LineString.
geom::Geometry* geos::linearref::LinearGeometryBuilder::getGeometry |
( |
| ) |
|
geom::Coordinate geos::linearref::LinearGeometryBuilder::getLastCoordinate |
( |
| ) |
const |
void geos::linearref::LinearGeometryBuilder::setFixInvalidLines |
( |
bool |
fixInvalidLines | ) |
|
Allows invalid lines to be ignored rather than causing Exceptions.
An invalid line is one which has only one unique point.
- Parameters
-
fixInvalidLines | true if short lines are to be ignored |
void geos::linearref::LinearGeometryBuilder::setIgnoreInvalidLines |
( |
bool |
ignoreInvalidLines | ) |
|
Allows invalid lines to be ignored rather than causing Exceptions.
An invalid line is one which has only one unique point.
- Parameters
-
ignoreInvalidLines | true if short lines are to be ignored |
bool geos::linearref::LinearGeometryBuilder::fixInvalidLines |
|
private |
bool geos::linearref::LinearGeometryBuilder::ignoreInvalidLines |
|
private |
GeomPtrVect geos::linearref::LinearGeometryBuilder::lines |
|
private |
The documentation for this class was generated from the following file: