17 #ifndef GEOS_ALGORITHM_CENTROIDPOINT_H
18 #define GEOS_ALGORITHM_CENTROIDPOINT_H
20 #include <geos/export.h>
21 #include <geos/geom/Coordinate.h>
34 class GEOS_DLL CentroidPoint {
40 geom::Coordinate centSum;
59 void add(
const geom::Geometry *geom);
61 void add(
const geom::Coordinate *pt);
63 geom::Coordinate* getCentroid()
const;
66 bool getCentroid(geom::Coordinate& ret)
const;
72 #endif // GEOS_ALGORITHM_CENTROIDPOINT_H