Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

geos::linearref::LinearGeometryBuilder Class Reference

#include <LinearGeometryBuilder.h>

List of all members.

Public Member Functions

 LinearGeometryBuilder (const geom::GeometryFactory *geomFact)
void setIgnoreInvalidLines (bool ignoreInvalidLines)
void setFixInvalidLines (bool fixInvalidLines)
void add (const geom::Coordinate &pt)
void add (const geom::Coordinate &pt, bool allowRepeatedPoints)
geom::Coordinate getLastCoordinate () const
 NOTE strk: why return by value ?
void endLine ()
 Terminate the current LineString.
geom::GeometrygetGeometry ()


Detailed Description

Builds a linear geometry (LineString or MultiLineString) incrementally (point-by-point).

Version:
1.7


Member Function Documentation

void geos::linearref::LinearGeometryBuilder::add const geom::Coordinate pt,
bool  allowRepeatedPoints
 

Adds a point to the current line.

Parameters:
pt the Coordinate to add

void geos::linearref::LinearGeometryBuilder::add const geom::Coordinate pt  ) 
 

Adds a point to the current line.

Parameters:
pt the Coordinate to add

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:
ignoreShortLines 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:
ignoreShortLines true if short lines are to be ignored


The documentation for this class was generated from the following file:
Generated on Sun Aug 21 23:21:02 2011 for GEOS by  doxygen 1.3.9.1