18#include <geos/export.h>
19#include <geos/geom/Coordinate.h>
51 using CoordinateXY = geos::geom::CoordinateXY;
62 bool m_isNodeAtVertex;
63 const CoordinateXY* m_v0;
64 const CoordinateXY m_nodePt;
65 const CoordinateXY* m_v1;
69 static int compareWithNull(
const CoordinateXY* v0,
const CoordinateXY* v1);
71 static int compare(
int a,
int b);
82 const CoordinateXY* v0,
83 const CoordinateXY nodePt,
84 const CoordinateXY* v1)
90 , m_isNodeAtVertex(isNodeAtVertex)
98 , m_dim(ns->dimension())
100 , m_ringId(ns->ringId())
102 , m_isNodeAtVertex(ns->isNodeAtVertex())
103 , m_v0(ns->getVertex(0))
104 , m_nodePt(ns->nodePt())
105 , m_v1(ns->getVertex(1))
108 const CoordinateXY* getVertex(
int i)
const;
110 const CoordinateXY& nodePt()
const;
112 int dimension()
const;
126 bool isShell()
const;
138 bool isNodeAtVertex()
const;
140 bool isProper()
const;
144 std::string toString()
const;
146 static std::string edgeRep(
const CoordinateXY* p0,
const CoordinateXY* p1);
148 friend std::ostream& operator<<(std::ostream& os,
const NodeSection& ns);
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:197
Definition NodeSection.h:50
const Geometry * getPolygonal() const
int compareTo(const NodeSection &o) const
Basic namespace for all GEOS functionalities.
Definition geos.h:39