GEOS 3.14.0dev
Public Member Functions | Static Public Member Functions | List of all members
geos::linearref::LocationIndexOfLine Class Reference

Determines the location of a subline along a linear Geometry. More...

#include <LocationIndexOfLine.h>

Public Member Functions

 LocationIndexOfLine (const geom::Geometry *linearGeom)
 
LinearLocationindicesOf (const geom::Geometry *subLine) const
 Caller must take of releasing with delete[].
 

Static Public Member Functions

static LinearLocationindicesOf (const geom::Geometry *linearGeom, const geom::Geometry *subLine)
 Determines the location of a subline along a linear Geometry.
 

Detailed Description

Determines the location of a subline along a linear Geometry.

The location is reported as a pair of LinearLocations.

Note
Currently this algorithm is not guaranteed to return the correct substring in some situations where an endpoint of the test line occurs more than once in the input line. (However, the common case of a ring is always handled correctly).

Member Function Documentation

◆ indicesOf()

static LinearLocation * geos::linearref::LocationIndexOfLine::indicesOf ( const geom::Geometry linearGeom,
const geom::Geometry subLine 
)
static

Determines the location of a subline along a linear Geometry.

The location is reported as a pair of LinearLocations.

Note
Currently this algorithm is not guaranteed to return the correct substring in some situations where an endpoint of the test line occurs more than once in the input line. (However, the common case of a ring is always handled correctly).
Caller must take of releasing with delete[]

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