406 void fromWkb(
const QByteArray &wkb );
469 bool isGeosValid(
Qgis::GeometryValidityFlags flags =
Qgis::GeometryValidityFlags() ) const;
838 bool insertVertex(
double x,
double y,
int beforeVertex );
870 bool moveVertex(
double x,
double y,
int atVertex );
1068 Qgis::GeometryOperationResult
transform( const QTransform &t,
double zTranslate = 0.0,
double zScale = 1.0,
double mTranslate = 0.0,
double mScale = 1.0 );
1145 if ( PyList_Check( a0 ) && PyList_GET_SIZE( a0 ) )
1147 PyObject *p0 = PyList_GetItem( a0, 0 );
1148 if ( sipCanConvertToType( p0, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPointXY, SIP_NOT_NONE ) )
1150 QVector<QgsGeometry> newGeometries;
1151 QVector<QgsPointXY> topologyTestPoints;
1153 QVector<QgsPointXY> *splitLine =
reinterpret_cast<QVector<QgsPointXY> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1158 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1159 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1160 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPointXY, Py_None );
1162 sipRes = PyTuple_New( 3 );
1163 PyTuple_SET_ITEM( sipRes, 0, o0 );
1164 PyTuple_SET_ITEM( sipRes, 1, o1 );
1165 PyTuple_SET_ITEM( sipRes, 2, o2 );
1167 sipReleaseType( splitLine, sipType_QVector_0100QgsPointXY, state );
1170 else if ( sipCanConvertToType( p0, sipType_QgsPoint, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPoint, SIP_NOT_NONE ) )
1172 QVector<QgsGeometry> newGeometries;
1173 QVector<QgsPoint> topologyTestPoints;
1175 QVector<QgsPoint> *splitLine =
reinterpret_cast<QVector<QgsPoint> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPoint, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1180 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1181 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1182 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPoint, Py_None );
1184 sipRes = PyTuple_New( 3 );
1185 PyTuple_SET_ITEM( sipRes, 0, o0 );
1186 PyTuple_SET_ITEM( sipRes, 1, o1 );
1187 PyTuple_SET_ITEM( sipRes, 2, o2 );
1189 sipReleaseType( splitLine, sipType_QVector_0100QgsPoint, state );
1194 PyErr_SetString( PyExc_TypeError, u
"Could not convert first argument to a list of QgsPoint or QgsPointXY."_s.toUtf8().constData() );
1200 PyErr_SetString( PyExc_TypeError, u
"First argument is not a list of points or is empty."_s.toUtf8().constData() );
1230 int makeDifferenceInPlace(
const QgsGeometry &other )
SIP_SKIP;
1238 QgsGeometry makeDifference(
const QgsGeometry &other )
const;
1244 QgsRectangle boundingBox()
const;
1251 QgsBox3D boundingBox3D()
const;
1265 QgsGeometry orientedMinimumBoundingBox(
double &area
SIP_OUT,
double &angle
SIP_OUT,
double &width
SIP_OUT,
double &height
SIP_OUT )
const;
1276 QgsGeometry orientedMinimumBoundingBox() const
SIP_SKIP;
1285 QgsGeometry minimalEnclosingCircle( QgsPointXY ¢er
SIP_OUT,
double &radius
SIP_OUT,
unsigned int segments = 36 ) const;
1291 QgsGeometry minimalEnclosingCircle(
unsigned int segments = 36 ) const
SIP_SKIP;
1300 QgsGeometry orthogonalize(
double tolerance = 1.0E-8,
int maxIterations = 1000,
double angleThreshold = 15.0 ) const;
1314 QgsGeometry triangularWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1334 QgsGeometry triangularWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1348 QgsGeometry squareWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1368 QgsGeometry squareWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1382 QgsGeometry roundWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1402 QgsGeometry roundWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1417 QgsGeometry applyDashPattern( const QVector<
double > &pattern, Qgis::DashPatternLineEndingRule startRule = Qgis::DashPatternLineEndingRule::NoRule, Qgis::DashPatternLineEndingRule endRule = Qgis::DashPatternLineEndingRule::NoRule, Qgis::DashPatternSizeAdjustment adjustment = Qgis::DashPatternSizeAdjustment::ScaleBothDashAndGap,
double patternOffset = 0 ) const;
1430 QgsGeometry snappedToGrid(
double hSpacing,
double vSpacing,
double dSpacing = 0,
double mSpacing = 0 ) const;
1451 bool removeDuplicateNodes(
double epsilon = 4 * std::numeric_limits<
double>::epsilon(),
bool useZValues = false );
1462 bool intersects( const QgsRectangle &rectangle ) const;
1478 bool intersects( const QgsGeometry &geometry ) const;
1488 bool boundingBoxIntersects( const QgsRectangle &rectangle ) const;
1498 bool boundingBoxIntersects( const QgsGeometry &geometry ) const;
1503 bool contains( const QgsPointXY *p ) const;
1510 bool contains(
double x,
double y ) const;
1521 bool contains( const QgsGeometry &geometry ) const;
1532 bool disjoint( const QgsGeometry &geometry ) const;
1543 bool touches( const QgsGeometry &geometry ) const;
1554 bool overlaps( const QgsGeometry &geometry ) const;
1565 bool within( const QgsGeometry &geometry ) const;
1576 bool crosses( const QgsGeometry &geometry ) const;
1585 QgsGeometry buffer(
double distance,
int segments ) const;
1598 QgsGeometry buffer(
double distance,
int segments, Qgis::EndCapStyle endCapStyle, Qgis::JoinStyle joinStyle,
double miterLimit ) const;
1607 QgsGeometry offsetCurve(
double distance,
int segments, Qgis::JoinStyle joinStyle,
double miterLimit ) const;
1623 QgsGeometry singleSidedBuffer(
double distance,
int segments, Qgis::BufferSide side, Qgis::JoinStyle joinStyle = Qgis::JoinStyle::Round,
double miterLimit = 2.0 ) const;
1642 QgsGeometry taperedBuffer(
double startWidth,
double endWidth,
int segments ) const;
1658 QgsGeometry variableWidthBufferByM(
int segments ) const;
1665 QgsGeometry extendLine(
double startDistance,
double endDistance ) const;
1668 QgsGeometry simplify(
double tolerance ) const;
1678 QgsGeometry densifyByCount(
int extraNodesPerSegment ) const;
1693 QgsGeometry densifyByDistance(
double distance ) const;
1710 QgsGeometry convertToCurves(
double distanceTolerance = 1e-8,
double angleTolerance = 1e-8 ) const;
1725 QgsGeometry centroid() const;
1740 QgsGeometry pointOnSurface() const;
1753 QgsGeometry poleOfInaccessibility(
double precision,
double *distanceToBoundary
SIP_OUT =
nullptr ) const;
1778 QgsGeometry largestEmptyCircle(
double tolerance, const QgsGeometry &boundary = QgsGeometry() ) const
SIP_THROW( QgsNotSupportedException );
1794 QgsGeometry minimumWidth() const
SIP_THROW( QgsNotSupportedException );
1817 double minimumClearance() const
SIP_THROW( QgsNotSupportedException );
1830 QgsGeometry minimumClearanceLine() const
SIP_THROW( QgsNotSupportedException );
1840 QgsGeometry convexHull() const;
1855 QgsGeometry concaveHull(
double targetPercent,
bool allowHoles = false ) const
SIP_THROW( QgsNotSupportedException );
1871 QgsGeometry voronoiDiagram( const QgsGeometry &extent = QgsGeometry(),
double tolerance = 0.0,
bool edgesOnly = false ) const;
1883 QgsGeometry delaunayTriangulation(
double tolerance = 0.0,
bool edgesOnly = false ) const;
1897 QgsGeometry constrainedDelaunayTriangulation() const
SIP_THROW( QgsNotSupportedException );
1916 Qgis::CoverageValidityResult validateCoverage(
double gapWidth, QgsGeometry *invalidEdges
SIP_OUT =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
1938 QgsGeometry simplifyCoverageVW(
double tolerance,
bool preserveBoundary ) const
SIP_THROW( QgsNotSupportedException );
1951 QgsGeometry unionCoverage() const;
1963 QgsGeometry node() const;
1979 QgsGeometry sharedPaths( const QgsGeometry &other ) const;
2002 QgsGeometry subdivide(
int maxNodes = 256, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2018 QgsGeometry interpolate(
double distance ) const;
2030 double lineLocatePoint( const QgsGeometry &point ) const;
2040 double interpolateAngle(
double distance ) const;
2053 QgsGeometry intersection( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2061 QgsGeometry clipped( const QgsRectangle &rectangle );
2077 QgsGeometry combine( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2089 QgsGeometry mergeLines( const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2102 QgsGeometry difference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2115 QgsGeometry symDifference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2118 QgsGeometry extrude(
double x,
double y );
2180 PyErr_SetString( PyExc_ValueError, u
"Cannot generate points inside a null geometry."_s.toUtf8().constData() );
2185 PyErr_SetString( PyExc_TypeError, u
"Cannot generate points inside a %1 geometry. Only Polygon types are permitted."_s.arg(
QgsWkbTypes::displayString( sipCpp->wkbType() ) ).toUtf8().constData() );
2190 const sipTypeDef *qvector_type = sipFindType(
"QVector<QgsPointXY>" );
2191 sipRes = sipConvertFromNewType(
new QVector< QgsPointXY >( sipCpp->randomPointsInPolygon( a0, a1 ) ), qvector_type, Py_None );
2221 Q_INVOKABLE QString asWkt(
int precision = 17 )
const;
2224 SIP_PYOBJECT __repr__();
2227 if ( sipCpp->isNull() )
2228 str = u
"<QgsGeometry: null>"_s;
2231 QString wkt = sipCpp->asWkt();
2232 if ( wkt.length() > 1000 )
2233 wkt = wkt.left( 1000 ) + u
"..."_s;
2234 str = u
"<QgsGeometry: %1>"_s.arg( wkt );
2236 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
2243 QString asJson(
int precision = 17 )
const;
2250 virtual json asJsonObject(
int precision = 17 ) const
SIP_SKIP;
2288 QVector< QgsGeometry > coerceToType( Qgis::WkbType type,
double defaultZ = 0,
double defaultM = 0,
bool avoidDuplicates = true ) const;
2301 QgsGeometry convertToType( Qgis::GeometryType destType,
bool destMultipart = false ) const;
2315 QgsPointXY asPoint()
const;
2328 SIP_PYOBJECT asPoint() const
SIP_TYPEHINT( QgsPointXY );
2330 if ( sipCpp->isNull() )
2332 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a point."_s.toUtf8().constData() );
2337 const QgsAbstractGeometry *geom = sipCpp->constGet();
2340 PyErr_SetString( PyExc_TypeError, u
"%1 geometry cannot be converted to a point. Only Point types are permitted."_s.arg(
QgsWkbTypes::displayString( geom->
wkbType() ) ).toUtf8().constData() );
2345 sipRes = sipConvertFromNewType(
new QgsPointXY( sipCpp->asPoint() ), sipType_QgsPointXY, Py_None );
2377 const Qgis::WkbType type = sipCpp->wkbType();
2378 if ( sipCpp->isNull() )
2380 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polyline."_s.toUtf8().constData() );
2385 PyErr_SetString( PyExc_TypeError, u
"%1 geometry cannot be converted to a polyline. Only single line or curve types are permitted."_s.arg(
QgsWkbTypes::displayString( type ) ).toUtf8().constData() );
2390 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2391 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asPolyline() ), qvector_type, Py_None );
2422 const Qgis::WkbType type = sipCpp->wkbType();
2423 if ( sipCpp->isNull() )
2425 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polygon."_s.toUtf8().constData() );
2430 PyErr_SetString( PyExc_TypeError, u
"%1 geometry cannot be converted to a polygon. Only single polygon or curve polygon types are permitted."_s.arg(
QgsWkbTypes::displayString( type ) ).toUtf8().constData() );
2435 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2436 sipRes = sipConvertFromNewType(
new QgsPolygonXY( sipCpp->asPolygon() ), qvector_type, Py_None );
2465 const Qgis::WkbType type = sipCpp->wkbType();
2466 if ( sipCpp->isNull() )
2468 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipoint."_s.toUtf8().constData() );
2473 PyErr_SetString( PyExc_TypeError, u
"%1 geometry cannot be converted to a multipoint. Only multipoint types are permitted."_s.arg(
QgsWkbTypes::displayString( type ) ).toUtf8().constData() );
2478 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2479 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asMultiPoint() ), qvector_type, Py_None );
2510 const Qgis::WkbType type = sipCpp->wkbType();
2511 if ( sipCpp->isNull() )
2513 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multilinestring."_s.toUtf8().constData() );
2518 PyErr_SetString( PyExc_TypeError, u
"%1 geometry cannot be converted to a multilinestring. Only multi linestring or curves are permitted."_s.arg(
QgsWkbTypes::displayString( type ) ).toUtf8().constData() );
2523 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2524 sipRes = sipConvertFromNewType(
new QgsMultiPolylineXY( sipCpp->asMultiPolyline() ), qvector_type, Py_None );
2555 const Qgis::WkbType type = sipCpp->wkbType();
2556 if ( sipCpp->isNull() )
2558 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipolygon."_s.toUtf8().constData() );
2563 PyErr_SetString( PyExc_TypeError, u
"%1 geometry cannot be converted to a multipolygon. Only multi polygon or curves are permitted."_s.arg(
QgsWkbTypes::displayString( type ) ).toUtf8().constData() );
2568 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QVector<QgsPointXY>>>" );
2569 sipRes = sipConvertFromNewType(
new QgsMultiPolygonXY( sipCpp->asMultiPolygon() ), qvector_type, Py_None );
2577 QVector<QgsGeometry> asGeometryCollection()
const;
2603 bool deleteRing(
int ringNum,
int partNum = 0 );
2609 bool deletePart(
int partNum );
2619 bool convertToMultiType();
2636 bool convertToCurvedMultiType();
2647 bool convertToSingleType();
2658 bool convertGeometryCollectionToSubclass( Qgis::GeometryType geomType );
2684 Qgis::GeometryOperationResult avoidIntersectionsV2( const QList<QgsVectorLayer *> &avoidIntersectionsLayers, const QHash<QgsVectorLayer *, QSet<
QgsFeatureId> > &ignoreFeatures
SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<
QgsFeatureId> >() ) );
2706 QgsGeometry makeValid( Qgis::MakeValidMethod method = Qgis::MakeValidMethod::Linework,
bool keepCollapsed = false ) const
SIP_THROW( QgsNotSupportedException );
2717 Qgis::AngularDirection polygonOrientation() const;
2798 : mMessage( u
"none"_s )
2808 , mHasLocation( true ) {}
2813 QString what()
const;
2823 bool hasWhere()
const;
2826 SIP_PYOBJECT __repr__();
2828 QString str = u
"<QgsGeometry.Error: %1>"_s.arg( sipCpp->what() );
2829 sipRes = PyUnicode_FromString( str.toUtf8().data() );
2836 return other.mMessage == mMessage && other.mHasLocation == mHasLocation && other.mLocation == mLocation;
2842 bool mHasLocation =
false;
2882 static QgsGeometry polygonize(
const QVector<QgsGeometry> &geometries );
2897 bool requiresConversionToStraightSegments()
const;
2909 void draw( QPainter &p )
const;
2951 void filterVertices( const std::function<
bool( const
QgsPoint & ) > &filter )
SIP_SKIP;
2981 static
QgsGeometry fromQPolygonF( const QPolygonF &polygon );
3011 static bool compare(
const QgsPolylineXY &p1,
const QgsPolylineXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3021 static bool compare(
const QgsPolygonXY &p1,
const QgsPolygonXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3053 static bool compare( PyObject *obj1, PyObject *obj2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3061 if ( PyList_Check( a0 ) && PyList_Check( a1 ) && PyList_GET_SIZE( a0 ) && PyList_GET_SIZE( a1 ) )
3063 PyObject *o0 = PyList_GetItem( a0, 0 );
3064 PyObject *o1 = PyList_GetItem( a1, 0 );
3068 if ( sipCanConvertToType( o0, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( o1, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a1, sipType_QVector_0100QgsPointXY, SIP_NOT_NONE ) )
3072 p0 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3073 p1 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a1, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3078 sipReleaseType( p0, sipType_QVector_0100QgsPointXY, state0 );
3079 sipReleaseType( p1, sipType_QVector_0100QgsPointXY, state1 );
3081 else if ( PyList_Check( o0 ) && PyList_Check( o1 ) && PyList_GET_SIZE( o0 ) && PyList_GET_SIZE( o1 ) )
3083 PyObject *oo0 = PyList_GetItem( o0, 0 );
3084 PyObject *oo1 = PyList_GetItem( o1, 0 );
3088 if ( sipCanConvertToType( oo0, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( oo1, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, SIP_NOT_NONE ) )
3092 p0 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3093 p1 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3098 sipReleaseType( p0, sipType_QVector_0600QVector_0100QgsPointXY, state0 );
3099 sipReleaseType( p1, sipType_QVector_0600QVector_0100QgsPointXY, state1 );
3101 else if ( PyList_Check( oo0 ) && PyList_Check( oo1 ) && PyList_GET_SIZE( oo0 ) && PyList_GET_SIZE( oo1 ) )
3103 PyObject *ooo0 = PyList_GetItem( oo0, 0 );
3104 PyObject *ooo1 = PyList_GetItem( oo1, 0 );
3108 if ( sipCanConvertToType( ooo0, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( ooo1, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, SIP_NOT_NONE ) )
3112 p0 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3113 p1 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3118 sipReleaseType( p0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state0 );
3119 sipReleaseType( p1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state1 );
3146 QgsGeometry smooth(
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1.0,
double maxAngle = 180.0 )
const;
3194 static void convertPointList(
const QVector<QgsPointXY> &input,
QgsPointSequence &output );
3201 static void convertPointList(
const QgsPointSequence &input, QVector<QgsPointXY> &output );
3204 operator QVariant()
const
3206 return QVariant::fromValue( *
this );
3219 Q_ENUM( ChamferFilletOperationType )
3238 QgsGeometry fillet(
int vertexIndex,
double radius,
int segments = 8 )
const;
3273 QgsGeometry chamfer(
int vertexIndex,
double distance1,
double distance2 = -1.0 ) const;
3300 mutable QString mLastError;
3317 QgsGeometry convertToPoint(
bool destMultipart ) const;
3319 QgsGeometry convertToLine(
bool destMultipart ) const;
3321 QgsGeometry convertToPolygon(
bool destMultipart ) const;
3334 std::unique_ptr<
QgsLineString > smoothLine( const
QgsLineString &line,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3347 std::unique_ptr<
QgsPolygon > smoothPolygon( const
QgsPolygon &polygon,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3349 QgsGeometry doChamferFillet( ChamferFilletOperationType op,
int vertexIndex,
double distance1,
double distance2,
int segments ) const;