|
GEOS
3.5.0
|
#include <CentroidLine.h>
Public Member Functions | |
| void | add (const geom::Geometry *geom) |
| Adds the linestring(s) defined by a Geometry to the centroid total. More... | |
| void | add (const geom::CoordinateSequence *pts) |
| Adds the length defined by an array of coordinates. More... | |
| geom::Coordinate * | getCentroid () const |
| bool | getCentroid (geom::Coordinate &ret) const |
| return false if centroid could not be computed | |
| 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
| geom | the geometry to add |
| void geos::algorithm::CentroidLine::add | ( | const geom::CoordinateSequence * | pts | ) |
Adds the length defined by an array of coordinates.
| pts | an array of geom::Coordinates |
1.8.11