GEOS  3.7.2
Public Member Functions | List of all members
geos::algorithm::CentroidLine Class Reference

#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::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

◆ add() [1/2]

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

Adds the length defined by an array of coordinates.

Parameters
ptsan array of geom::Coordinates

◆ add() [2/2]

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

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