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
A rectangle specified with double values.
virtual bool isValid(QString &error, int flags=0) const =0
Checks validity of the geometry, and returns true if the geometry is valid.
const QgsSurface * cast(const QgsAbstractGeometry *geom) const
Cast the geom to a QgsSurface.
Type
The WKB type describes the number of dimensions a geometry has.
virtual void clearCache() const
Clears any cached parameters associated with the geometry, e.g., bounding boxes.
QgsRectangle boundingBox() const override
Returns the minimal bounding box for the geometry.
Abstract base class for all geometries.
QgsWkbTypes::Type wkbType() const
Returns the WKB type of the geometry.
QString mValidityFailureReason
virtual QgsRectangle calculateBoundingBox() const
Default calculator for the minimal bounding box for the geometry.
static Type flatType(Type type)
Returns the flat type for a WKB type.
QgsRectangle mBoundingBox