GEOS  3.3.3
Public Member Functions | List of all members
geos::algorithm::InteriorPointArea Class Reference

Computes a point in the interior of an area geometry. More...

#include <InteriorPointArea.h>

Public Member Functions

 InteriorPointArea (const geom::Geometry *g)
bool getInteriorPoint (geom::Coordinate &ret) const
void addPolygon (const geom::Geometry *geometry)
 Finds a reasonable point at which to label a Geometry.

Detailed Description

Computes a point in the interior of an area geometry.

Algorithm

Note: If a fixed precision model is used, in some cases this method may return a point which does not lie in the interior.

Member Function Documentation

void geos::algorithm::InteriorPointArea::addPolygon ( const geom::Geometry geometry)

Finds a reasonable point at which to label a Geometry.

Parameters
geometrythe geometry to analyze
Returns
the midpoint of the largest intersection between the geometry and a line halfway down its envelope

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