geos::algorithm::CentroidLine Class Reference

#include <CentroidLine.h>

List of all members.

Public Member Functions

void add (const geom::Geometry *geom)
 Adds the linestring(s) defined by a Geometry to the centroid total.
void add (const geom::CoordinateSequence *pts)
 Adds the length defined by an array of coordinates.
geom::CoordinategetCentroid () const
bool getCentroid (geom::Coordinate &ret) const
 return false if centroid could not be computed


Detailed Description

Deprecated:
use Centroid instead


Member Function Documentation

void geos::algorithm::CentroidLine::add ( const geom::CoordinateSequence pts  ) 

Adds the length defined by an array of coordinates.

Parameters:
pts an array of geom::Coordinates

void geos::algorithm::CentroidLine::add ( const geom::Geometry geom  ) 

Adds the linestring(s) defined by a Geometry to the centroid total.

If the geometry is not linear it does not contribute to the centroid

Parameters:
geom the geometry to add


The documentation for this class was generated from the following file:
Generated on 15 May 2014 for GEOS by  doxygen 1.4.7