GEOS  3.4.2
Public Member Functions
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

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:
geomthe geometry to add

Adds the length defined by an array of coordinates.

Parameters:
ptsan array of geom::Coordinates

The documentation for this class was generated from the following file: