45 if ( mBoundingBox.isNull() )
52 bool isValid( QString &error
SIP_OUT, Qgis::GeometryValidityFlags flags = Qgis::GeometryValidityFlags() )
const override;
73 return static_cast<const QgsSurface *
>( geom );
82 mutable bool mHasCachedValidity =
false;
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
virtual QgsPolygon * surfaceToPolygon() const =0
Gets a polygon representation of this surface.
static Qgis::WkbType flatType(Qgis::WkbType type)
Returns the flat type for a WKB type.