QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
21 #include "qgis_core.h"
44 if ( mBoundingBox.isNull() )
51 bool isValid( QString &error
SIP_OUT,
int flags = 0 )
const override;
72 return static_cast<const QgsSurface *
>( geom );
81 mutable bool mHasCachedValidity =
false;
85 #endif // QGSSURFACE_H
const QgsSurface * cast(const QgsAbstractGeometry *geom) const
Cast the geom to a QgsSurface.
virtual void clearCache() const
Clears any cached parameters associated with the geometry, e.g., bounding boxes.
static Type flatType(Type type) SIP_HOLDGIL
Returns the flat type for a WKB type.
Type
The WKB type describes the number of dimensions a geometry has.
virtual bool isValid(QString &error, int flags=0) const =0
Checks validity of the geometry, and returns true if the geometry is valid.
A rectangle specified with double values.
virtual QgsPolygon * surfaceToPolygon() const =0
Gets a polygon representation of this surface.
QgsWkbTypes::Type wkbType() const SIP_HOLDGIL
Returns the WKB type of the geometry.
QString mValidityFailureReason
Abstract base class for all geometries.
QgsRectangle boundingBox() const override
Returns the minimal bounding box for the geometry.
virtual QgsRectangle calculateBoundingBox() const
Default calculator for the minimal bounding box for the geometry.
QgsRectangle mBoundingBox