GEOS 3.13.1
geos::algorithm::InteriorPointLine Class Reference

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

#include <InteriorPointLine.h>

Public Member Functions

 InteriorPointLine (const geom::Geometry *g)
bool getInteriorPoint (geom::Coordinate &ret) const

Detailed Description

Computes a point in the interior of an linear geometry.

Algorithm

  • Find an interior vertex which is closest to the centroid of the linestring.
  • If there is no interior vertex, find the endpoint which is closest to the centroid.

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