21 #ifndef GEOS_GEOM_POLYGON_H
22 #define GEOS_GEOM_POLYGON_H
24 #include <geos/export.h>
27 #include <geos/platform.h>
28 #include <geos/geom/Geometry.h>
29 #include <geos/geom/Polygonal.h>
30 #include <geos/geom/Envelope.h>
31 #include <geos/geom/Dimension.h>
33 #include <geos/inline.h>
41 class CoordinateArraySequence;
42 class CoordinateSequenceFilter;
88 size_t getNumPoints()
const;
94 virtual int getCoordinateDimension()
const;
97 int getBoundaryDimension()
const;
107 bool isEmpty()
const;
115 bool isSimple()
const;
121 size_t getNumInteriorRing()
const;
124 const LineString* getInteriorRingN(std::size_t n)
const;
126 std::string getGeometryType()
const;
128 bool equalsExact(
const Geometry *other,
double tolerance=0)
const;
140 int compareToSameClass(
const Geometry *p)
const;
144 double getArea()
const;
147 double getLength()
const;
153 bool isRectangle()
const;
183 std::vector<Geometry *> *holes;
185 Envelope::AutoPtr computeEnvelopeInternal()
const;
189 void normalize(
LinearRing *ring,
bool clockwise);
195 #endif // ndef GEOS_GEOM_POLYGON_H