39 if ( mBoundingBox.isNull() )
66 return static_cast<const QgsSurface *
>( geom );
75 mutable bool mHasCachedValidity =
false;
QFlags< GeometryValidityFlag > GeometryValidityFlags
Geometry validity flags.
WkbType
The WKB type describes the number of dimensions a geometry has.
@ CurvePolygon
CurvePolygon.
Abstract base class for all geometries.
virtual QgsBox3D calculateBoundingBox3D() const
Calculates the minimal 3D bounding box for the geometry.
virtual bool isValid(QString &error, Qgis::GeometryValidityFlags flags=Qgis::GeometryValidityFlags()) const =0
Checks validity of the geometry, and returns true if the geometry is valid.
virtual void clearCache() const
Clears any cached parameters associated with the geometry, e.g., bounding boxes.
Qgis::WkbType wkbType() const
Returns the WKB type of the geometry.
A 3-dimensional box composed of x, y, z coordinates.
QgsBox3D boundingBox3D() const override
Returns the 3D bounding box for the geometry.
static const QgsSurface * cast(const QgsAbstractGeometry *geom)
Cast the geom to a QgsSurface.
QString mValidityFailureReason
static Qgis::WkbType flatType(Qgis::WkbType type)
Returns the flat type for a WKB type.