QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
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
QgsWkbTypes::Type wkbType() const
Returns the WKB type of the geometry.
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.
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.
QString mValidityFailureReason
Abstract base class for all geometries.
QgsRectangle boundingBox() const override
Returns the minimal bounding box for the geometry.
static Type flatType(Type type)
Returns the flat type for a WKB type.
virtual QgsRectangle calculateBoundingBox() const
Default calculator for the minimal bounding box for the geometry.
QgsRectangle mBoundingBox