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

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

#include <LocationIndexOfLine.h>

Collaboration diagram for geos::linearref::LocationIndexOfLine:
[legend]

Public Member Functions

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

Static Public Member Functions

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

Private Attributes

const geom::GeometrylinearGeom
 

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).

Definition at line 40 of file LocationIndexOfLine.h.

Constructor & Destructor Documentation

geos::linearref::LocationIndexOfLine::LocationIndexOfLine ( const geom::Geometry linearGeom)

Member Function Documentation

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[]

Referenced by geos::linearref::LocationIndexedLine::indicesOf().

Here is the caller graph for this function:

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

Caller must take of releasing with delete[].

Member Data Documentation

const geom::Geometry* geos::linearref::LocationIndexOfLine::linearGeom
private

MD - this algorithm has been extracted into a class because it is intended to validate that the subline truly is a subline, and also to use the internal vertex information to unambiguously locate the subline.

Definition at line 47 of file LocationIndexOfLine.h.


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