GEOS
3.6.1
|
#include <BasicSegmentString.h>
Public Member Functions | |
BasicSegmentString (geom::CoordinateSequence *newPts, const void *newContext) | |
Construct a BasicSegmentString. More... | |
virtual unsigned int | size () const |
see dox in SegmentString.h | |
virtual const geom::Coordinate & | getCoordinate (unsigned int i) const |
see dox in SegmentString.h | |
virtual geom::CoordinateSequence * | getCoordinates () const |
see dox in SegmentString.h | |
virtual bool | isClosed () const |
see dox in SegmentString.h | |
virtual std::ostream & | print (std::ostream &os) const |
see dox in SegmentString.h | |
int | getSegmentOctant (unsigned int index) const |
Gets the octant of the segment starting at vertex index. More... | |
![]() | |
SegmentString (const void *newContext) | |
Construct a SegmentString. More... | |
const void * | getData () const |
void | setData (const void *data) |
Additional Inherited Members | |
![]() | |
typedef std::vector< const SegmentString * > | ConstVect |
typedef std::vector< SegmentString * > | NonConstVect |
Represents a list of contiguous line segments, and supports noding the segments. The line segments are represented by an array of Coordinates. Intended to optimize the noding of contiguous segments by reducing the number of allocated objects. SegmentStrings can carry a context object, which is useful for preserving topological or parentage information. All noded substrings are initialized with the same context object.
|
inline |
Construct a BasicSegmentString.
newPts | CoordinateSequence representing the string, externally owned |
newContext | the context associated to this SegmentString |
int geos::noding::BasicSegmentString::getSegmentOctant | ( | unsigned int | index | ) | const |
Gets the octant of the segment starting at vertex index.
index | the index of the vertex starting the segment. Must not be the last index in the vertex list |