Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

geos::linearref::ExtractLineByLocation Class Reference

#include <ExtractLineByLocation.h>

List of all members.

Public Member Functions

 ExtractLineByLocation (const geom::Geometry *line)
geom::Geometryextract (const LinearLocation &start, const LinearLocation &end)

Static Public Member Functions

geom::Geometryextract (const geom::Geometry *line, const LinearLocation &start, const LinearLocation &end)


Detailed Description

Extracts the subline of a linear Geometry between two LinearLocations on the line.


Member Function Documentation

geom::Geometry* geos::linearref::ExtractLineByLocation::extract const LinearLocation start,
const LinearLocation end
 

Extracts a subline of the input. If end < start the linear geometry computed will be reversed.

Parameters:
start the start location
end the end location
Returns:
a linear geometry

geom::Geometry* geos::linearref::ExtractLineByLocation::extract const geom::Geometry line,
const LinearLocation start,
const LinearLocation end
[static]
 

Computes the subline of a LineString between two LineStringLocations on the line. If the start location is after the end location, the computed geometry is reversed.

Parameters:
line the line to use as the baseline
start the start location
end the end location
Returns:
the extracted subline


The documentation for this class was generated from the following file:
Generated on Thu Oct 7 20:18:29 2010 for GEOS by  doxygen 1.3.9.1