|
kiwi-postgis
Version 0.1.0.0
|
Computes a substring of a LineString between given distances along the line. More...

Public Member Functions | |
| LengthSubstring (LineString line) | |
| LineString | getSubstring (double startDistance, double endDistance) |
Static Public Member Functions | |
| static LineString | getSubstring (LineString line, double startLength, double endLength) |
Private Member Functions | |
| LineString | computeSubstring (double startDistance, double endDistance) |
| Assumes input is strictly valid (e.g. More... | |
Private Attributes | |
| LineString | line |
Computes a substring of a LineString between given distances along the line.
FUTURE: should handle startLength > endLength, and flip the returned linestring. Also should handle negative lengths (they are measured from end of line backwards).
| LengthSubstring | ( | LineString | line | ) |
References LengthSubstring.line.
Referenced by LengthSubstring.getSubstring().
|
private |
Assumes input is strictly valid (e.g.
startDist < endDistance)
| startDistance | |
| endDistance |
Ensure there is enough coordinates to build a valid line. Make a 2-point line with duplicate coordinates, if necessary There will always be at least one coordinate in the coordList.
References LocatePoint.pointAlongSegment().
Referenced by LengthSubstring.getSubstring().
|
static |
References LengthSubstring.getSubstring(), and LengthSubstring.LengthSubstring().
Referenced by LengthSubstring.getSubstring().
| LineString getSubstring | ( | double | startDistance, |
| double | endDistance | ||
| ) |
References LengthSubstring.computeSubstring().
|
private |
Referenced by LengthSubstring.LengthSubstring().