GEOS
3.4.2
|
#include <CentroidPoint.h>
Public Member Functions | |
void | add (const geom::Geometry *geom) |
void | add (const geom::Coordinate *pt) |
geom::Coordinate * | getCentroid () const |
bool | getCentroid (geom::Coordinate &ret) const |
Return false if centroid could not be computed. | |
void geos::algorithm::CentroidPoint::add | ( | const geom::Geometry * | geom | ) |
Adds the point(s) defined by a Geometry to the centroid total. If the geometry is not of dimension 0 it does not contribute to the centroid.
geom | the geometry to add |