408 void fromWkb(
const QByteArray &wkb );
529 bool isGeosValid(
Qgis::GeometryValidityFlags flags =
Qgis::GeometryValidityFlags() ) const;
898 bool insertVertex(
double x,
double y,
int beforeVertex );
930 bool moveVertex(
double x,
double y,
int atVertex );
1128 Qgis::GeometryOperationResult
transform( const QTransform &t,
double zTranslate = 0.0,
double zScale = 1.0,
double mTranslate = 0.0,
double mScale = 1.0 );
1206 if ( PyList_Check( a0 ) && PyList_GET_SIZE( a0 ) )
1208 PyObject *p0 = PyList_GetItem( a0, 0 );
1209 if ( sipCanConvertToType( p0, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPointXY, SIP_NOT_NONE ) )
1211 QVector<QgsGeometry> newGeometries;
1212 QVector<QgsPointXY> topologyTestPoints;
1214 QVector<QgsPointXY> *splitLine =
reinterpret_cast<QVector<QgsPointXY> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1219 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1220 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1221 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPointXY, Py_None );
1223 sipRes = PyTuple_New( 3 );
1224 PyTuple_SET_ITEM( sipRes, 0, o0 );
1225 PyTuple_SET_ITEM( sipRes, 1, o1 );
1226 PyTuple_SET_ITEM( sipRes, 2, o2 );
1228 sipReleaseType( splitLine, sipType_QVector_0100QgsPointXY, state );
1231 else if ( sipCanConvertToType( p0, sipType_QgsPoint, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPoint, SIP_NOT_NONE ) )
1233 QVector<QgsGeometry> newGeometries;
1234 QVector<QgsPoint> topologyTestPoints;
1236 QVector<QgsPoint> *splitLine =
reinterpret_cast<QVector<QgsPoint> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPoint, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1241 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1242 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1243 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPoint, Py_None );
1245 sipRes = PyTuple_New( 3 );
1246 PyTuple_SET_ITEM( sipRes, 0, o0 );
1247 PyTuple_SET_ITEM( sipRes, 1, o1 );
1248 PyTuple_SET_ITEM( sipRes, 2, o2 );
1250 sipReleaseType( splitLine, sipType_QVector_0100QgsPoint, state );
1255 PyErr_SetString( PyExc_TypeError, u
"Could not convert first argument to a list of QgsPoint or QgsPointXY."_s.toUtf8().constData() );
1261 PyErr_SetString( PyExc_TypeError, u
"First argument is not a list of points or is empty."_s.toUtf8().constData() );
1293 int makeDifferenceInPlace(
const QgsGeometry &other, QgsFeedback* feedback =
nullptr )
SIP_SKIP;
1302 QgsGeometry makeDifference( const QgsGeometry &other, QgsFeedback* feedback =
nullptr ) const;
1308 QgsRectangle boundingBox() const;
1315 QgsBox3D boundingBox3D() const;
1329 QgsGeometry orientedMinimumBoundingBox(
double &area
SIP_OUT,
double &angle
SIP_OUT,
double &width
SIP_OUT,
double &height
SIP_OUT ) const;
1340 QgsGeometry orientedMinimumBoundingBox() const
SIP_SKIP;
1349 QgsGeometry minimalEnclosingCircle( QgsPointXY ¢er
SIP_OUT,
double &radius
SIP_OUT,
unsigned int segments = 36 ) const;
1355 QgsGeometry minimalEnclosingCircle(
unsigned int segments = 36 ) const
SIP_SKIP;
1364 QgsGeometry orthogonalize(
double tolerance = 1.0E-8,
int maxIterations = 1000,
double angleThreshold = 15.0 ) const;
1378 QgsGeometry triangularWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1398 QgsGeometry triangularWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1412 QgsGeometry squareWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1432 QgsGeometry squareWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1446 QgsGeometry roundWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1466 QgsGeometry roundWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1481 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;
1494 QgsGeometry snappedToGrid(
double hSpacing,
double vSpacing,
double dSpacing = 0,
double mSpacing = 0 ) const;
1515 bool removeDuplicateNodes(
double epsilon = 4 * std::numeric_limits<
double>::epsilon(),
bool useZValues = false );
1526 bool intersects( const QgsRectangle &rectangle ) const;
1542 bool intersects( const QgsGeometry &geometry ) const;
1552 bool boundingBoxIntersects( const QgsRectangle &rectangle ) const;
1562 bool boundingBoxIntersects( const QgsGeometry &geometry ) const;
1567 bool contains( const QgsPointXY *p ) const;
1574 bool contains(
double x,
double y ) const;
1585 bool contains( const QgsGeometry &geometry ) const;
1596 bool disjoint( const QgsGeometry &geometry ) const;
1607 bool touches( const QgsGeometry &geometry ) const;
1618 bool overlaps( const QgsGeometry &geometry ) const;
1629 bool within( const QgsGeometry &geometry ) const;
1640 bool crosses( const QgsGeometry &geometry ) const;
1651 QgsGeometry buffer(
double distance,
int segments, QgsFeedback* feedback =
nullptr ) const;
1665 QgsGeometry buffer(
double distance,
int segments, Qgis::EndCapStyle endCapStyle, Qgis::JoinStyle joinStyle,
double miterLimit, QgsFeedback* feedback =
nullptr ) const;
1674 QgsGeometry offsetCurve(
double distance,
int segments, Qgis::JoinStyle joinStyle,
double miterLimit ) const;
1690 QgsGeometry singleSidedBuffer(
double distance,
int segments, Qgis::BufferSide side, Qgis::JoinStyle joinStyle = Qgis::JoinStyle::Round,
double miterLimit = 2.0 ) const;
1709 QgsGeometry taperedBuffer(
double startWidth,
double endWidth,
int segments ) const;
1725 QgsGeometry variableWidthBufferByM(
int segments ) const;
1732 QgsGeometry extendLine(
double startDistance,
double endDistance ) const;
1739 QgsGeometry simplify(
double tolerance, QgsFeedback* feedback =
nullptr ) const;
1749 QgsGeometry densifyByCount(
int extraNodesPerSegment ) const;
1764 QgsGeometry densifyByDistance(
double distance ) const;
1781 QgsGeometry convertToCurves(
double distanceTolerance = 1e-8,
double angleTolerance = 1e-8 ) const;
1796 QgsGeometry centroid() const;
1811 QgsGeometry pointOnSurface() const;
1824 QgsGeometry poleOfInaccessibility(
double precision,
double *distanceToBoundary
SIP_OUT =
nullptr ) const;
1849 QgsGeometry largestEmptyCircle(
double tolerance, const QgsGeometry &boundary = QgsGeometry() ) const
SIP_THROW( QgsNotSupportedException );
1865 QgsGeometry minimumWidth() const
SIP_THROW( QgsNotSupportedException );
1888 double minimumClearance() const
SIP_THROW( QgsNotSupportedException );
1901 QgsGeometry minimumClearanceLine() const
SIP_THROW( QgsNotSupportedException );
1911 QgsGeometry convexHull() const;
1928 QgsGeometry concaveHull(
double targetPercent,
bool allowHoles = false, QgsFeedback * feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
1965 QgsGeometry concaveHullOfPolygons(
double lengthRatio,
bool allowHoles = false,
bool isTight = false, QgsFeedback *feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
1981 QgsGeometry voronoiDiagram( const QgsGeometry &extent = QgsGeometry(),
double tolerance = 0.0,
bool edgesOnly = false ) const;
1993 QgsGeometry delaunayTriangulation(
double tolerance = 0.0,
bool edgesOnly = false ) const;
2007 QgsGeometry constrainedDelaunayTriangulation() const
SIP_THROW( QgsNotSupportedException );
2026 Qgis::CoverageValidityResult validateCoverage(
double gapWidth, QgsGeometry *invalidEdges
SIP_OUT =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2048 QgsGeometry simplifyCoverageVW(
double tolerance,
bool preserveBoundary ) const
SIP_THROW( QgsNotSupportedException );
2061 QgsGeometry unionCoverage() const;
2073 QgsGeometry node() const;
2089 QgsGeometry sharedPaths( const QgsGeometry &other ) const;
2113 QgsGeometry subdivide(
int maxNodes = 256, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2129 QgsGeometry interpolate(
double distance ) const;
2141 double lineLocatePoint( const QgsGeometry &point ) const;
2151 double interpolateAngle(
double distance ) const;
2166 QgsGeometry intersection( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2176 QgsGeometry clipped( const QgsRectangle &rectangle, QgsFeedback* feedback =
nullptr );
2194 QgsGeometry combine( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2206 QgsGeometry mergeLines( const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2221 QgsGeometry difference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2236 QgsGeometry symDifference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2239 QgsGeometry extrude(
double x,
double y );
2302 PyErr_SetString( PyExc_ValueError, u
"Cannot generate points inside a null geometry."_s.toUtf8().constData() );
2307 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() );
2312 const sipTypeDef *qvector_type = sipFindType(
"QVector<QgsPointXY>" );
2313 sipRes = sipConvertFromNewType(
new QVector< QgsPointXY >( sipCpp->randomPointsInPolygon( a0, a1 ) ), qvector_type, Py_None );
2344 Q_INVOKABLE QString asWkt(
int precision = 17 )
const;
2348 SIP_PYOBJECT __repr__();
2351 if ( sipCpp->isNull() )
2352 str = u
"<QgsGeometry: null>"_s;
2355 QString wkt = sipCpp->asWkt();
2356 if ( wkt.length() > 1000 )
2357 wkt = wkt.left( 1000 ) + u
"..."_s;
2358 str = u
"<QgsGeometry: %1>"_s.arg( wkt );
2360 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
2368 QString asJson(
int precision = 17 )
const;
2375 virtual json asJsonObject(
int precision = 17 ) const
SIP_SKIP;
2413 QVector< QgsGeometry > coerceToType( Qgis::WkbType type,
double defaultZ = 0,
double defaultM = 0,
bool avoidDuplicates = true ) const;
2426 QgsGeometry convertToType( Qgis::GeometryType destType,
bool destMultipart = false ) const;
2440 QgsPointXY asPoint()
const;
2454 SIP_PYOBJECT asPoint() const
SIP_TYPEHINT( QgsPointXY );
2456 if ( sipCpp->isNull() )
2458 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a point."_s.toUtf8().constData() );
2463 const QgsAbstractGeometry *geom = sipCpp->constGet();
2466 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() );
2471 sipRes = sipConvertFromNewType(
new QgsPointXY( sipCpp->asPoint() ), sipType_QgsPointXY, Py_None );
2505 const Qgis::WkbType type = sipCpp->wkbType();
2506 if ( sipCpp->isNull() )
2508 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polyline."_s.toUtf8().constData() );
2513 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() );
2518 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2519 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asPolyline() ), qvector_type, Py_None );
2552 const Qgis::WkbType type = sipCpp->wkbType();
2553 if ( sipCpp->isNull() )
2555 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polygon."_s.toUtf8().constData() );
2560 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() );
2565 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2566 sipRes = sipConvertFromNewType(
new QgsPolygonXY( sipCpp->asPolygon() ), qvector_type, Py_None );
2597 const Qgis::WkbType type = sipCpp->wkbType();
2598 if ( sipCpp->isNull() )
2600 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipoint."_s.toUtf8().constData() );
2605 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() );
2610 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2611 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asMultiPoint() ), qvector_type, Py_None );
2644 const Qgis::WkbType type = sipCpp->wkbType();
2645 if ( sipCpp->isNull() )
2647 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multilinestring."_s.toUtf8().constData() );
2652 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() );
2657 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2658 sipRes = sipConvertFromNewType(
new QgsMultiPolylineXY( sipCpp->asMultiPolyline() ), qvector_type, Py_None );
2691 const Qgis::WkbType type = sipCpp->wkbType();
2692 if ( sipCpp->isNull() )
2694 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipolygon."_s.toUtf8().constData() );
2699 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() );
2704 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QVector<QgsPointXY>>>" );
2705 sipRes = sipConvertFromNewType(
new QgsMultiPolygonXY( sipCpp->asMultiPolygon() ), qvector_type, Py_None );
2714 QVector<QgsGeometry> asGeometryCollection()
const;
2740 bool deleteRing(
int ringNum,
int partNum = 0 );
2746 bool deletePart(
int partNum );
2756 bool convertToMultiType();
2773 bool convertToCurvedMultiType();
2784 bool convertToSingleType();
2795 bool convertGeometryCollectionToSubclass( Qgis::GeometryType geomType );
2821 Qgis::GeometryOperationResult avoidIntersectionsV2( const QList<QgsVectorLayer *> &avoidIntersectionsLayers, const QHash<QgsVectorLayer *, QSet<
QgsFeatureId> > &ignoreFeatures
SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<
QgsFeatureId> >() ) );
2844 QgsGeometry makeValid( Qgis::MakeValidMethod method = Qgis::MakeValidMethod::Linework,
bool keepCollapsed = false, QgsFeedback* feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2855 Qgis::AngularDirection polygonOrientation() const;
2936 : mMessage( u
"none"_s )
2946 , mHasLocation( true ) {}
2951 QString what()
const;
2961 bool hasWhere()
const;
2965 SIP_PYOBJECT __repr__();
2967 QString str = u
"<QgsGeometry.Error: %1>"_s.arg( sipCpp->what() );
2968 sipRes = PyUnicode_FromString( str.toUtf8().data() );
2976 return other.mMessage == mMessage && other.mHasLocation == mHasLocation && other.mLocation == mLocation;
2982 bool mHasLocation =
false;
3024 static QgsGeometry polygonize(
const QVector<QgsGeometry> &geometries );
3039 bool requiresConversionToStraightSegments()
const;
3051 void draw( QPainter &p )
const;
3093 void filterVertices( const std::function<
bool( const
QgsPoint & ) > &filter )
SIP_SKIP;
3123 static
QgsGeometry fromQPolygonF( const QPolygonF &polygon );
3153 static bool compare(
const QgsPolylineXY &p1,
const QgsPolylineXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3163 static bool compare(
const QgsPolygonXY &p1,
const QgsPolygonXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3196 static bool compare( PyObject *obj1, PyObject *obj2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3204 if ( PyList_Check( a0 ) && PyList_Check( a1 ) && PyList_GET_SIZE( a0 ) && PyList_GET_SIZE( a1 ) )
3206 PyObject *o0 = PyList_GetItem( a0, 0 );
3207 PyObject *o1 = PyList_GetItem( a1, 0 );
3211 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 ) )
3215 p0 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3216 p1 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a1, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3221 sipReleaseType( p0, sipType_QVector_0100QgsPointXY, state0 );
3222 sipReleaseType( p1, sipType_QVector_0100QgsPointXY, state1 );
3224 else if ( PyList_Check( o0 ) && PyList_Check( o1 ) && PyList_GET_SIZE( o0 ) && PyList_GET_SIZE( o1 ) )
3226 PyObject *oo0 = PyList_GetItem( o0, 0 );
3227 PyObject *oo1 = PyList_GetItem( o1, 0 );
3231 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 ) )
3235 p0 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3236 p1 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3241 sipReleaseType( p0, sipType_QVector_0600QVector_0100QgsPointXY, state0 );
3242 sipReleaseType( p1, sipType_QVector_0600QVector_0100QgsPointXY, state1 );
3244 else if ( PyList_Check( oo0 ) && PyList_Check( oo1 ) && PyList_GET_SIZE( oo0 ) && PyList_GET_SIZE( oo1 ) )
3246 PyObject *ooo0 = PyList_GetItem( oo0, 0 );
3247 PyObject *ooo1 = PyList_GetItem( oo1, 0 );
3251 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 ) )
3255 p0 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3256 p1 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3261 sipReleaseType( p0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state0 );
3262 sipReleaseType( p1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state1 );
3290 QgsGeometry smooth(
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1.0,
double maxAngle = 180.0 )
const;
3338 static void convertPointList(
const QVector<QgsPointXY> &input,
QgsPointSequence &output );
3345 static void convertPointList(
const QgsPointSequence &input, QVector<QgsPointXY> &output );
3348 operator QVariant()
const
3350 return QVariant::fromValue( *
this );
3363 Q_ENUM( ChamferFilletOperationType )
3382 QgsGeometry fillet(
int vertexIndex,
double radius,
int segments = 8 )
const;
3417 QgsGeometry chamfer(
int vertexIndex,
double distance1,
double distance2 = -1.0 ) const;
3444 mutable QString mLastError;
3461 QgsGeometry convertToPoint(
bool destMultipart ) const;
3463 QgsGeometry convertToLine(
bool destMultipart ) const;
3465 QgsGeometry convertToPolygon(
bool destMultipart ) const;
3478 std::unique_ptr<
QgsLineString > smoothLine( const
QgsLineString &line,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3491 std::unique_ptr<
QgsPolygon > smoothPolygon( const
QgsPolygon &polygon,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3493 QgsGeometry doChamferFillet( ChamferFilletOperationType op,
int vertexIndex,
double distance1,
double distance2,
int segments ) const;