18 #ifndef QGSPOLYGONV2_H 19 #define QGSPOLYGONV2_H 39 void clear()
override;
46 unsigned char*
asWkb(
int& binarySize )
const override;
65 #endif // QGSPOLYGONV2_H virtual QString geometryType() const override
Returns a unique string representing the geometry type.
virtual void addInteriorRing(QgsCurveV2 *ring)
Adds an interior ring to the geometry (takes ownership)
void clear() override
Clears the geometry, ie reset it to a null geometry.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QgsPolygonV2 * surfaceToPolygon() const override
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Abstract base class for all geometries.
virtual QgsAbstractGeometryV2 * toCurveType() const
Returns the geometry converted to the more generic curve type.
int wkbSize() const override
Returns the size of the WKB representation of the geometry.
unsigned char * asWkb(int &binarySize) const override
Returns a WKB representation of the geometry.
virtual QgsCurvePolygonV2 * clone() const override
Clones the geometry by performing a deep copy.
virtual QgsAbstractGeometryV2 * boundary() const override
Returns the closure of the combinatorial boundary of the geometry (ie the topological boundary of the...
virtual void setExteriorRing(QgsCurveV2 *ring)
Sets the exterior ring of the polygon.
virtual bool fromWkb(QgsConstWkbPtr wkb) override
Sets the geometry from a WKB string.
Curve polygon geometry type.
Abstract base class for curved geometry type.