404 void fromWkb(
const QByteArray &wkb );
467 bool isGeosValid(
Qgis::GeometryValidityFlags flags =
Qgis::GeometryValidityFlags() ) const;
836 bool insertVertex(
double x,
double y,
int beforeVertex );
868 bool moveVertex(
double x,
double y,
int atVertex );
1066 Qgis::GeometryOperationResult
transform( const QTransform &t,
double zTranslate = 0.0,
double zScale = 1.0,
double mTranslate = 0.0,
double mScale = 1.0 );
1143 if ( PyList_Check( a0 ) && PyList_GET_SIZE( a0 ) )
1145 PyObject *p0 = PyList_GetItem( a0, 0 );
1146 if ( sipCanConvertToType( p0, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPointXY, SIP_NOT_NONE ) )
1148 QVector<QgsGeometry> newGeometries;
1149 QVector<QgsPointXY> topologyTestPoints;
1151 QVector<QgsPointXY> *splitLine =
reinterpret_cast<QVector<QgsPointXY> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1156 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1157 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1158 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPointXY, Py_None );
1160 sipRes = PyTuple_New( 3 );
1161 PyTuple_SET_ITEM( sipRes, 0, o0 );
1162 PyTuple_SET_ITEM( sipRes, 1, o1 );
1163 PyTuple_SET_ITEM( sipRes, 2, o2 );
1165 sipReleaseType( splitLine, sipType_QVector_0100QgsPointXY, state );
1168 else if ( sipCanConvertToType( p0, sipType_QgsPoint, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPoint, SIP_NOT_NONE ) )
1170 QVector<QgsGeometry> newGeometries;
1171 QVector<QgsPoint> topologyTestPoints;
1173 QVector<QgsPoint> *splitLine =
reinterpret_cast<QVector<QgsPoint> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPoint, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1178 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1179 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1180 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPoint, Py_None );
1182 sipRes = PyTuple_New( 3 );
1183 PyTuple_SET_ITEM( sipRes, 0, o0 );
1184 PyTuple_SET_ITEM( sipRes, 1, o1 );
1185 PyTuple_SET_ITEM( sipRes, 2, o2 );
1187 sipReleaseType( splitLine, sipType_QVector_0100QgsPoint, state );
1192 PyErr_SetString( PyExc_TypeError, u
"Could not convert first argument to a list of QgsPoint or QgsPointXY."_s.toUtf8().constData() );
1198 PyErr_SetString( PyExc_TypeError, u
"First argument is not a list of points or is empty."_s.toUtf8().constData() );
1228 int makeDifferenceInPlace(
const QgsGeometry &other )
SIP_SKIP;
1236 QgsGeometry makeDifference(
const QgsGeometry &other )
const;
1242 QgsRectangle boundingBox()
const;
1249 QgsBox3D boundingBox3D()
const;
1263 QgsGeometry orientedMinimumBoundingBox(
double &area
SIP_OUT,
double &angle
SIP_OUT,
double &width
SIP_OUT,
double &height
SIP_OUT )
const;
1274 QgsGeometry orientedMinimumBoundingBox() const
SIP_SKIP;
1283 QgsGeometry minimalEnclosingCircle( QgsPointXY ¢er
SIP_OUT,
double &radius
SIP_OUT,
unsigned int segments = 36 ) const;
1289 QgsGeometry minimalEnclosingCircle(
unsigned int segments = 36 ) const
SIP_SKIP;
1298 QgsGeometry orthogonalize(
double tolerance = 1.0E-8,
int maxIterations = 1000,
double angleThreshold = 15.0 ) const;
1312 QgsGeometry triangularWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1332 QgsGeometry triangularWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1346 QgsGeometry squareWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1366 QgsGeometry squareWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1380 QgsGeometry roundWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1400 QgsGeometry roundWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1415 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;
1428 QgsGeometry snappedToGrid(
double hSpacing,
double vSpacing,
double dSpacing = 0,
double mSpacing = 0 ) const;
1449 bool removeDuplicateNodes(
double epsilon = 4 * std::numeric_limits<
double>::epsilon(),
bool useZValues = false );
1460 bool intersects( const QgsRectangle &rectangle ) const;
1476 bool intersects( const QgsGeometry &geometry ) const;
1486 bool boundingBoxIntersects( const QgsRectangle &rectangle ) const;
1496 bool boundingBoxIntersects( const QgsGeometry &geometry ) const;
1501 bool contains( const QgsPointXY *p ) const;
1508 bool contains(
double x,
double y ) const;
1519 bool contains( const QgsGeometry &geometry ) const;
1530 bool disjoint( const QgsGeometry &geometry ) const;
1541 bool touches( const QgsGeometry &geometry ) const;
1552 bool overlaps( const QgsGeometry &geometry ) const;
1563 bool within( const QgsGeometry &geometry ) const;
1574 bool crosses( const QgsGeometry &geometry ) const;
1583 QgsGeometry buffer(
double distance,
int segments ) const;
1596 QgsGeometry buffer(
double distance,
int segments, Qgis::EndCapStyle endCapStyle, Qgis::JoinStyle joinStyle,
double miterLimit ) const;
1605 QgsGeometry offsetCurve(
double distance,
int segments, Qgis::JoinStyle joinStyle,
double miterLimit ) const;
1621 QgsGeometry singleSidedBuffer(
double distance,
int segments, Qgis::BufferSide side, Qgis::JoinStyle joinStyle = Qgis::JoinStyle::Round,
double miterLimit = 2.0 ) const;
1640 QgsGeometry taperedBuffer(
double startWidth,
double endWidth,
int segments ) const;
1656 QgsGeometry variableWidthBufferByM(
int segments ) const;
1663 QgsGeometry extendLine(
double startDistance,
double endDistance ) const;
1666 QgsGeometry simplify(
double tolerance ) const;
1676 QgsGeometry densifyByCount(
int extraNodesPerSegment ) const;
1691 QgsGeometry densifyByDistance(
double distance ) const;
1708 QgsGeometry convertToCurves(
double distanceTolerance = 1e-8,
double angleTolerance = 1e-8 ) const;
1723 QgsGeometry centroid() const;
1738 QgsGeometry pointOnSurface() const;
1751 QgsGeometry poleOfInaccessibility(
double precision,
double *distanceToBoundary
SIP_OUT =
nullptr ) const;
1776 QgsGeometry largestEmptyCircle(
double tolerance, const QgsGeometry &boundary = QgsGeometry() ) const
SIP_THROW( QgsNotSupportedException );
1792 QgsGeometry minimumWidth() const
SIP_THROW( QgsNotSupportedException );
1815 double minimumClearance() const
SIP_THROW( QgsNotSupportedException );
1828 QgsGeometry minimumClearanceLine() const
SIP_THROW( QgsNotSupportedException );
1838 QgsGeometry convexHull() const;
1853 QgsGeometry concaveHull(
double targetPercent,
bool allowHoles = false ) const
SIP_THROW( QgsNotSupportedException );
1869 QgsGeometry voronoiDiagram( const QgsGeometry &extent = QgsGeometry(),
double tolerance = 0.0,
bool edgesOnly = false ) const;
1881 QgsGeometry delaunayTriangulation(
double tolerance = 0.0,
bool edgesOnly = false ) const;
1895 QgsGeometry constrainedDelaunayTriangulation() const
SIP_THROW( QgsNotSupportedException );
1914 Qgis::CoverageValidityResult validateCoverage(
double gapWidth, QgsGeometry *invalidEdges
SIP_OUT =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
1936 QgsGeometry simplifyCoverageVW(
double tolerance,
bool preserveBoundary ) const
SIP_THROW( QgsNotSupportedException );
1949 QgsGeometry unionCoverage() const;
1961 QgsGeometry node() const;
1977 QgsGeometry sharedPaths( const QgsGeometry &other ) const;
2000 QgsGeometry subdivide(
int maxNodes = 256, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2016 QgsGeometry interpolate(
double distance ) const;
2028 double lineLocatePoint( const QgsGeometry &point ) const;
2038 double interpolateAngle(
double distance ) const;
2051 QgsGeometry intersection( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2059 QgsGeometry clipped( const QgsRectangle &rectangle );
2075 QgsGeometry combine( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2087 QgsGeometry mergeLines( const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2100 QgsGeometry difference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2113 QgsGeometry symDifference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2116 QgsGeometry extrude(
double x,
double y );
2178 PyErr_SetString( PyExc_ValueError, u
"Cannot generate points inside a null geometry."_s.toUtf8().constData() );
2183 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() );
2188 const sipTypeDef *qvector_type = sipFindType(
"QVector<QgsPointXY>" );
2189 sipRes = sipConvertFromNewType(
new QVector< QgsPointXY >( sipCpp->randomPointsInPolygon( a0, a1 ) ), qvector_type, Py_None );
2219 Q_INVOKABLE QString asWkt(
int precision = 17 )
const;
2222 SIP_PYOBJECT __repr__();
2225 if ( sipCpp->isNull() )
2226 str = u
"<QgsGeometry: null>"_s;
2229 QString wkt = sipCpp->asWkt();
2230 if ( wkt.length() > 1000 )
2231 wkt = wkt.left( 1000 ) + u
"..."_s;
2232 str = u
"<QgsGeometry: %1>"_s.arg( wkt );
2234 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
2241 QString asJson(
int precision = 17 )
const;
2248 virtual json asJsonObject(
int precision = 17 ) const
SIP_SKIP;
2286 QVector< QgsGeometry > coerceToType( Qgis::WkbType type,
double defaultZ = 0,
double defaultM = 0,
bool avoidDuplicates = true ) const;
2299 QgsGeometry convertToType( Qgis::GeometryType destType,
bool destMultipart = false ) const;
2313 QgsPointXY asPoint()
const;
2326 SIP_PYOBJECT asPoint() const
SIP_TYPEHINT( QgsPointXY );
2328 if ( sipCpp->isNull() )
2330 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a point."_s.toUtf8().constData() );
2335 const QgsAbstractGeometry *geom = sipCpp->constGet();
2338 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() );
2343 sipRes = sipConvertFromNewType(
new QgsPointXY( sipCpp->asPoint() ), sipType_QgsPointXY, Py_None );
2375 const Qgis::WkbType type = sipCpp->wkbType();
2376 if ( sipCpp->isNull() )
2378 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polyline."_s.toUtf8().constData() );
2383 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() );
2388 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2389 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asPolyline() ), qvector_type, Py_None );
2420 const Qgis::WkbType type = sipCpp->wkbType();
2421 if ( sipCpp->isNull() )
2423 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polygon."_s.toUtf8().constData() );
2428 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() );
2433 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2434 sipRes = sipConvertFromNewType(
new QgsPolygonXY( sipCpp->asPolygon() ), qvector_type, Py_None );
2463 const Qgis::WkbType type = sipCpp->wkbType();
2464 if ( sipCpp->isNull() )
2466 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipoint."_s.toUtf8().constData() );
2471 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() );
2476 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2477 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asMultiPoint() ), qvector_type, Py_None );
2508 const Qgis::WkbType type = sipCpp->wkbType();
2509 if ( sipCpp->isNull() )
2511 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multilinestring."_s.toUtf8().constData() );
2516 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() );
2521 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2522 sipRes = sipConvertFromNewType(
new QgsMultiPolylineXY( sipCpp->asMultiPolyline() ), qvector_type, Py_None );
2553 const Qgis::WkbType type = sipCpp->wkbType();
2554 if ( sipCpp->isNull() )
2556 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipolygon."_s.toUtf8().constData() );
2561 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() );
2566 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QVector<QgsPointXY>>>" );
2567 sipRes = sipConvertFromNewType(
new QgsMultiPolygonXY( sipCpp->asMultiPolygon() ), qvector_type, Py_None );
2575 QVector<QgsGeometry> asGeometryCollection()
const;
2601 bool deleteRing(
int ringNum,
int partNum = 0 );
2607 bool deletePart(
int partNum );
2617 bool convertToMultiType();
2634 bool convertToCurvedMultiType();
2645 bool convertToSingleType();
2656 bool convertGeometryCollectionToSubclass( Qgis::GeometryType geomType );
2682 Qgis::GeometryOperationResult avoidIntersectionsV2( const QList<QgsVectorLayer *> &avoidIntersectionsLayers, const QHash<QgsVectorLayer *, QSet<
QgsFeatureId> > &ignoreFeatures
SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<
QgsFeatureId> >() ) );
2704 QgsGeometry makeValid( Qgis::MakeValidMethod method = Qgis::MakeValidMethod::Linework,
bool keepCollapsed = false ) const
SIP_THROW( QgsNotSupportedException );
2715 Qgis::AngularDirection polygonOrientation() const;
2796 : mMessage( u
"none"_s )
2806 , mHasLocation( true ) {}
2811 QString what()
const;
2821 bool hasWhere()
const;
2824 SIP_PYOBJECT __repr__();
2826 QString str = u
"<QgsGeometry.Error: %1>"_s.arg( sipCpp->what() );
2827 sipRes = PyUnicode_FromString( str.toUtf8().data() );
2834 return other.mMessage == mMessage && other.mHasLocation == mHasLocation && other.mLocation == mLocation;
2840 bool mHasLocation =
false;
2880 static QgsGeometry polygonize(
const QVector<QgsGeometry> &geometries );
2895 bool requiresConversionToStraightSegments()
const;
2907 void draw( QPainter &p )
const;
2949 void filterVertices( const std::function<
bool( const
QgsPoint & ) > &filter )
SIP_SKIP;
2979 static
QgsGeometry fromQPolygonF( const QPolygonF &polygon );
3009 static bool compare(
const QgsPolylineXY &p1,
const QgsPolylineXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3019 static bool compare(
const QgsPolygonXY &p1,
const QgsPolygonXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3051 static bool compare( PyObject *obj1, PyObject *obj2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3059 if ( PyList_Check( a0 ) && PyList_Check( a1 ) && PyList_GET_SIZE( a0 ) && PyList_GET_SIZE( a1 ) )
3061 PyObject *o0 = PyList_GetItem( a0, 0 );
3062 PyObject *o1 = PyList_GetItem( a1, 0 );
3066 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 ) )
3070 p0 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3071 p1 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a1, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3076 sipReleaseType( p0, sipType_QVector_0100QgsPointXY, state0 );
3077 sipReleaseType( p1, sipType_QVector_0100QgsPointXY, state1 );
3079 else if ( PyList_Check( o0 ) && PyList_Check( o1 ) && PyList_GET_SIZE( o0 ) && PyList_GET_SIZE( o1 ) )
3081 PyObject *oo0 = PyList_GetItem( o0, 0 );
3082 PyObject *oo1 = PyList_GetItem( o1, 0 );
3086 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 ) )
3090 p0 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3091 p1 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3096 sipReleaseType( p0, sipType_QVector_0600QVector_0100QgsPointXY, state0 );
3097 sipReleaseType( p1, sipType_QVector_0600QVector_0100QgsPointXY, state1 );
3099 else if ( PyList_Check( oo0 ) && PyList_Check( oo1 ) && PyList_GET_SIZE( oo0 ) && PyList_GET_SIZE( oo1 ) )
3101 PyObject *ooo0 = PyList_GetItem( oo0, 0 );
3102 PyObject *ooo1 = PyList_GetItem( oo1, 0 );
3106 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 ) )
3110 p0 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3111 p1 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3116 sipReleaseType( p0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state0 );
3117 sipReleaseType( p1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state1 );
3144 QgsGeometry smooth(
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1.0,
double maxAngle = 180.0 )
const;
3192 static void convertPointList(
const QVector<QgsPointXY> &input,
QgsPointSequence &output );
3199 static void convertPointList(
const QgsPointSequence &input, QVector<QgsPointXY> &output );
3202 operator QVariant()
const
3204 return QVariant::fromValue( *
this );
3217 Q_ENUM( ChamferFilletOperationType )
3236 QgsGeometry fillet(
int vertexIndex,
double radius,
int segments = 8 )
const;
3271 QgsGeometry chamfer(
int vertexIndex,
double distance1,
double distance2 = -1.0 ) const;
3298 mutable QString mLastError;
3315 QgsGeometry convertToPoint(
bool destMultipart ) const;
3317 QgsGeometry convertToLine(
bool destMultipart ) const;
3319 QgsGeometry convertToPolygon(
bool destMultipart ) const;
3332 std::unique_ptr<
QgsLineString > smoothLine( const
QgsLineString &line,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3345 std::unique_ptr<
QgsPolygon > smoothPolygon( const
QgsPolygon &polygon,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3347 QgsGeometry doChamferFillet( ChamferFilletOperationType op,
int vertexIndex,
double distance1,
double distance2,
int segments ) const;