GEOS
3.9.1dev
|
Computes a point in the interior of an point geometry. More...
#include <InteriorPointPoint.h>
Public Member Functions | |
InteriorPointPoint (const geom::Geometry *g) | |
~InteriorPointPoint () | |
bool | getInteriorPoint (geom::Coordinate &ret) const |
Private Member Functions | |
void | add (const geom::Geometry *geom) |
void | add (const geom::Coordinate *point) |
Private Attributes | |
bool | hasInterior |
geom::Coordinate | centroid |
double | minDistance |
geom::Coordinate | interiorPoint |
Computes a point in the interior of an point geometry.
Algorithm:
Find a point which is closest to the centroid of the geometry.
Definition at line 41 of file InteriorPointPoint.h.
geos::algorithm::InteriorPointPoint::InteriorPointPoint | ( | const geom::Geometry * | g | ) |
|
inline |
Definition at line 65 of file InteriorPointPoint.h.
|
private |
Tests the point(s) defined by a Geometry for the best inside point. If a Geometry is not of dimension 0 it is not tested.
geom | the geometry to add |
|
private |
bool geos::algorithm::InteriorPointPoint::getInteriorPoint | ( | geom::Coordinate & | ret | ) | const |
|
private |
Definition at line 46 of file InteriorPointPoint.h.
|
private |
Definition at line 44 of file InteriorPointPoint.h.
|
private |
Definition at line 50 of file InteriorPointPoint.h.
|
private |
Definition at line 48 of file InteriorPointPoint.h.