53 void clear() override;
57 QString asWkt(
int precision = 17 ) const override;
77 double pointDistanceToBoundary(
double x,
double y ) const;
96 return static_cast<const QgsPolygon *
>( geom );
104 SIP_PYOBJECT __repr__();
106 QString wkt = sipCpp->asWkt();
107 if ( wkt.length() > 1000 )
108 wkt = wkt.left( 1000 ) + QStringLiteral(
"..." );
109 QString
str = QStringLiteral(
"<QgsPolygon: %1>" ).arg( wkt );
110 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
WkbType
The WKB type describes the number of dimensions a geometry has.
Abstract base class for all geometries.
QFlags< WkbFlag > WkbFlags
Qgis::WkbType wkbType() const
Returns the WKB type of the geometry.
Curve polygon geometry type.
QgsCurvePolygon * createEmptyWithSameType() const override
Creates a new geometry with the same class and same WKB type as the original and transfers ownership.
Abstract base class for curved geometry type.
Line string geometry type, with support for z-dimension and m-values.
static const QgsPolygon * cast(const QgsAbstractGeometry *geom)
Cast the geom to a QgsPolygonV2.
QgsPolygon(QgsLineString *exterior, const QList< QgsLineString * > &rings=QList< QgsLineString * >())
Constructor for QgsPolygon, with the specified exterior ring and interior rings.
static Qgis::WkbType flatType(Qgis::WkbType type)
Returns the flat type for a WKB type.