497 void fromWkb(
const QByteArray &wkb );
618 bool isGeosValid(
Qgis::GeometryValidityFlags flags =
Qgis::GeometryValidityFlags() ) const;
987 bool insertVertex(
double x,
double y,
int beforeVertex );
1019 bool moveVertex(
double x,
double y,
int atVertex );
1232 Qgis::GeometryOperationResult
transform( const QTransform &t,
double zTranslate = 0.0,
double zScale = 1.0,
double mTranslate = 0.0,
double mScale = 1.0 );
1310 if ( PyList_Check( a0 ) && PyList_GET_SIZE( a0 ) )
1312 PyObject *p0 = PyList_GetItem( a0, 0 );
1313 if ( sipCanConvertToType( p0, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPointXY, SIP_NOT_NONE ) )
1315 QVector<QgsGeometry> newGeometries;
1316 QVector<QgsPointXY> topologyTestPoints;
1318 QVector<QgsPointXY> *splitLine =
reinterpret_cast<QVector<QgsPointXY> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1323 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1324 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1325 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPointXY, Py_None );
1327 sipRes = PyTuple_New( 3 );
1328 PyTuple_SET_ITEM( sipRes, 0, o0 );
1329 PyTuple_SET_ITEM( sipRes, 1, o1 );
1330 PyTuple_SET_ITEM( sipRes, 2, o2 );
1332 sipReleaseType( splitLine, sipType_QVector_0100QgsPointXY, state );
1335 else if ( sipCanConvertToType( p0, sipType_QgsPoint, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPoint, SIP_NOT_NONE ) )
1337 QVector<QgsGeometry> newGeometries;
1338 QVector<QgsPoint> topologyTestPoints;
1340 QVector<QgsPoint> *splitLine =
reinterpret_cast<QVector<QgsPoint> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPoint, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1345 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1346 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1347 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPoint, Py_None );
1349 sipRes = PyTuple_New( 3 );
1350 PyTuple_SET_ITEM( sipRes, 0, o0 );
1351 PyTuple_SET_ITEM( sipRes, 1, o1 );
1352 PyTuple_SET_ITEM( sipRes, 2, o2 );
1354 sipReleaseType( splitLine, sipType_QVector_0100QgsPoint, state );
1359 PyErr_SetString( PyExc_TypeError, u
"Could not convert first argument to a list of QgsPoint or QgsPointXY."_s.toUtf8().constData() );
1365 PyErr_SetString( PyExc_TypeError, u
"First argument is not a list of points or is empty."_s.toUtf8().constData() );
1397 int makeDifferenceInPlace(
const QgsGeometry &other, QgsFeedback* feedback =
nullptr )
SIP_SKIP;
1406 QgsGeometry makeDifference( const QgsGeometry &other, QgsFeedback* feedback =
nullptr ) const;
1412 QgsRectangle boundingBox() const;
1419 QgsBox3D boundingBox3D() const;
1433 QgsGeometry orientedMinimumBoundingBox(
double &area
SIP_OUT,
double &angle
SIP_OUT,
double &width
SIP_OUT,
double &height
SIP_OUT ) const;
1444 QgsGeometry orientedMinimumBoundingBox() const
SIP_SKIP;
1453 QgsGeometry minimalEnclosingCircle( QgsPointXY ¢er
SIP_OUT,
double &radius
SIP_OUT,
unsigned int segments = 36 ) const;
1459 QgsGeometry minimalEnclosingCircle(
unsigned int segments = 36 ) const
SIP_SKIP;
1468 QgsGeometry orthogonalize(
double tolerance = 1.0E-8,
int maxIterations = 1000,
double angleThreshold = 15.0 ) const;
1482 QgsGeometry triangularWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1502 QgsGeometry triangularWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1516 QgsGeometry squareWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1536 QgsGeometry squareWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1550 QgsGeometry roundWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1570 QgsGeometry roundWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1585 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;
1598 QgsGeometry snappedToGrid(
double hSpacing,
double vSpacing,
double dSpacing = 0,
double mSpacing = 0 ) const;
1619 bool removeDuplicateNodes(
double epsilon = 4 * std::numeric_limits<
double>::epsilon(),
bool useZValues = false );
1630 Q_INVOKABLE
bool intersects( const QgsRectangle &rectangle ) const;
1646 Q_INVOKABLE
bool intersects( const QgsGeometry &geometry ) const;
1656 Q_INVOKABLE
bool boundingBoxIntersects( const QgsRectangle &rectangle ) const;
1666 Q_INVOKABLE
bool boundingBoxIntersects( const QgsGeometry &geometry ) const;
1671 bool contains( const QgsPointXY *p ) const;
1678 Q_INVOKABLE
bool contains(
double x,
double y ) const;
1689 Q_INVOKABLE
bool contains( const QgsGeometry &geometry ) const;
1700 Q_INVOKABLE
bool disjoint( const QgsGeometry &geometry ) const;
1711 Q_INVOKABLE
bool touches( const QgsGeometry &geometry ) const;
1722 Q_INVOKABLE
bool overlaps( const QgsGeometry &geometry ) const;
1733 Q_INVOKABLE
bool within( const QgsGeometry &geometry ) const;
1744 Q_INVOKABLE
bool crosses( const QgsGeometry &geometry ) const;
1755 QgsGeometry buffer(
double distance,
int segments, QgsFeedback* feedback =
nullptr ) const;
1769 QgsGeometry buffer(
double distance,
int segments, Qgis::EndCapStyle endCapStyle, Qgis::JoinStyle joinStyle,
double miterLimit, QgsFeedback* feedback =
nullptr ) const;
1778 QgsGeometry offsetCurve(
double distance,
int segments, Qgis::JoinStyle joinStyle,
double miterLimit ) const;
1794 QgsGeometry singleSidedBuffer(
double distance,
int segments, Qgis::BufferSide side, Qgis::JoinStyle joinStyle = Qgis::JoinStyle::Round,
double miterLimit = 2.0 ) const;
1813 QgsGeometry taperedBuffer(
double startWidth,
double endWidth,
int segments ) const;
1829 QgsGeometry variableWidthBufferByM(
int segments ) const;
1836 QgsGeometry extendLine(
double startDistance,
double endDistance ) const;
1843 QgsGeometry simplify(
double tolerance, QgsFeedback* feedback =
nullptr ) const;
1853 QgsGeometry densifyByCount(
int extraNodesPerSegment ) const;
1868 QgsGeometry densifyByDistance(
double distance ) const;
1885 QgsGeometry convertToCurves(
double distanceTolerance = 1e-8,
double angleTolerance = 1e-8 ) const;
1900 QgsGeometry centroid() const;
1915 QgsGeometry pointOnSurface() const;
1928 QgsGeometry poleOfInaccessibility(
double precision,
double *distanceToBoundary
SIP_OUT =
nullptr ) const;
1953 QgsGeometry largestEmptyCircle(
double tolerance, const QgsGeometry &boundary = QgsGeometry() ) const
SIP_THROW( QgsNotSupportedException );
1969 QgsGeometry minimumWidth() const
SIP_THROW( QgsNotSupportedException );
1992 double minimumClearance() const
SIP_THROW( QgsNotSupportedException );
2005 QgsGeometry minimumClearanceLine() const
SIP_THROW( QgsNotSupportedException );
2015 QgsGeometry convexHull() const;
2032 QgsGeometry concaveHull(
double targetPercent,
bool allowHoles = false, QgsFeedback * feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2069 QgsGeometry concaveHullOfPolygons(
double lengthRatio,
bool allowHoles = false,
bool isTight = false, QgsFeedback *feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2085 QgsGeometry voronoiDiagram( const QgsGeometry &extent = QgsGeometry(),
double tolerance = 0.0,
bool edgesOnly = false ) const;
2097 QgsGeometry delaunayTriangulation(
double tolerance = 0.0,
bool edgesOnly = false ) const;
2111 QgsGeometry constrainedDelaunayTriangulation() const
SIP_THROW( QgsNotSupportedException );
2130 Qgis::CoverageValidityResult validateCoverage(
double gapWidth, QgsGeometry *invalidEdges
SIP_OUT =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2152 QgsGeometry simplifyCoverageVW(
double tolerance,
bool preserveBoundary ) const
SIP_THROW( QgsNotSupportedException );
2165 QgsGeometry unionCoverage() const;
2184 QgsGeometry cleanCoverage( const QgsCoverageCleanParameters ¶meters, QgsFeedback *feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2196 QgsGeometry node() const;
2212 QgsGeometry sharedPaths( const QgsGeometry &other ) const;
2236 QgsGeometry subdivide(
int maxNodes = 256, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2252 QgsGeometry interpolate(
double distance ) const;
2264 double lineLocatePoint( const QgsGeometry &point ) const;
2274 double interpolateAngle(
double distance ) const;
2289 QgsGeometry intersection( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2299 QgsGeometry clipped( const QgsRectangle &rectangle, QgsFeedback* feedback =
nullptr );
2317 QgsGeometry combine( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2329 QgsGeometry mergeLines( const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2344 QgsGeometry difference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2359 QgsGeometry symDifference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2362 QgsGeometry extrude(
double x,
double y );
2425 PyErr_SetString( PyExc_ValueError, u
"Cannot generate points inside a null geometry."_s.toUtf8().constData() );
2430 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() );
2435 const sipTypeDef *qvector_type = sipFindType(
"QVector<QgsPointXY>" );
2436 sipRes = sipConvertFromNewType(
new QVector< QgsPointXY >( sipCpp->randomPointsInPolygon( a0, a1 ) ), qvector_type, Py_None );
2467 Q_INVOKABLE QString asWkt(
int precision = 17 )
const;
2471 SIP_PYOBJECT __repr__();
2474 if ( sipCpp->isNull() )
2475 str = u
"<QgsGeometry: null>"_s;
2478 QString wkt = sipCpp->asWkt();
2479 if ( wkt.length() > 1000 )
2480 wkt = wkt.left( 1000 ) + u
"..."_s;
2481 str = u
"<QgsGeometry: %1>"_s.arg( wkt );
2483 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
2492 QString asJson(
int precision = 17 )
const;
2544 QVector< QgsGeometry > coerceToType(
Qgis::WkbType type,
double defaultZ = 0,
double defaultM = 0,
bool avoidDuplicates =
true )
const;
2557 QgsGeometry convertToType(
Qgis::GeometryType destType,
bool destMultipart =
false )
const;
2571 QgsPointXY asPoint()
const;
2585 SIP_PYOBJECT asPoint() const
SIP_TYPEHINT( QgsPointXY );
2587 if ( sipCpp->isNull() )
2589 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a point."_s.toUtf8().constData() );
2594 const QgsAbstractGeometry *geom = sipCpp->constGet();
2597 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() );
2602 sipRes = sipConvertFromNewType(
new QgsPointXY( sipCpp->asPoint() ), sipType_QgsPointXY, Py_None );
2636 const Qgis::WkbType type = sipCpp->wkbType();
2637 if ( sipCpp->isNull() )
2639 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polyline."_s.toUtf8().constData() );
2644 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() );
2649 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2650 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asPolyline() ), qvector_type, Py_None );
2683 const Qgis::WkbType type = sipCpp->wkbType();
2684 if ( sipCpp->isNull() )
2686 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polygon."_s.toUtf8().constData() );
2691 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() );
2696 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2697 sipRes = sipConvertFromNewType(
new QgsPolygonXY( sipCpp->asPolygon() ), qvector_type, Py_None );
2728 const Qgis::WkbType type = sipCpp->wkbType();
2729 if ( sipCpp->isNull() )
2731 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipoint."_s.toUtf8().constData() );
2736 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() );
2741 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2742 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asMultiPoint() ), qvector_type, Py_None );
2775 const Qgis::WkbType type = sipCpp->wkbType();
2776 if ( sipCpp->isNull() )
2778 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multilinestring."_s.toUtf8().constData() );
2783 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() );
2788 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2789 sipRes = sipConvertFromNewType(
new QgsMultiPolylineXY( sipCpp->asMultiPolyline() ), qvector_type, Py_None );
2822 const Qgis::WkbType type = sipCpp->wkbType();
2823 if ( sipCpp->isNull() )
2825 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipolygon."_s.toUtf8().constData() );
2830 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() );
2835 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QVector<QgsPointXY>>>" );
2836 sipRes = sipConvertFromNewType(
new QgsMultiPolygonXY( sipCpp->asMultiPolygon() ), qvector_type, Py_None );
2845 QVector<QgsGeometry> asGeometryCollection()
const;
2871 bool deleteRing(
int ringNum,
int partNum = 0 );
2877 bool deletePart(
int partNum );
2887 bool convertToMultiType();
2904 bool convertToCurvedMultiType();
2915 bool convertToSingleType();
2926 bool convertGeometryCollectionToSubclass( Qgis::GeometryType geomType );
2952 Qgis::GeometryOperationResult avoidIntersectionsV2( const QList<QgsVectorLayer *> &avoidIntersectionsLayers, const QHash<QgsVectorLayer *, QSet<
QgsFeatureId> > &ignoreFeatures
SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<
QgsFeatureId> >() ) );
2975 QgsGeometry makeValid( Qgis::MakeValidMethod method = Qgis::MakeValidMethod::Linework,
bool keepCollapsed = false, QgsFeedback* feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2986 Qgis::AngularDirection polygonOrientation() const;
3067 : mMessage( u
"none"_s )
3077 , mHasLocation( true ) {}
3082 QString what()
const;
3092 bool hasWhere()
const;
3096 SIP_PYOBJECT __repr__();
3098 QString str = u
"<QgsGeometry.Error: %1>"_s.arg( sipCpp->what() );
3099 sipRes = PyUnicode_FromString( str.toUtf8().data() );
3107 return other.mMessage == mMessage && other.mHasLocation == mHasLocation && other.mLocation == mLocation;
3113 bool mHasLocation =
false;
3155 static QgsGeometry polygonize(
const QVector<QgsGeometry> &geometries );
3170 bool requiresConversionToStraightSegments()
const;
3182 void draw( QPainter &p )
const;
3224 void filterVertices( const std::function<
bool( const
QgsPoint & ) > &filter )
SIP_SKIP;
3254 static
QgsGeometry fromQPolygonF( const QPolygonF &polygon );
3284 static bool compare(
const QgsPolylineXY &p1,
const QgsPolylineXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3294 static bool compare(
const QgsPolygonXY &p1,
const QgsPolygonXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3327 static bool compare( PyObject *obj1, PyObject *obj2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3335 if ( PyList_Check( a0 ) && PyList_Check( a1 ) && PyList_GET_SIZE( a0 ) && PyList_GET_SIZE( a1 ) )
3337 PyObject *o0 = PyList_GetItem( a0, 0 );
3338 PyObject *o1 = PyList_GetItem( a1, 0 );
3342 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 ) )
3346 p0 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3347 p1 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a1, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3352 sipReleaseType( p0, sipType_QVector_0100QgsPointXY, state0 );
3353 sipReleaseType( p1, sipType_QVector_0100QgsPointXY, state1 );
3355 else if ( PyList_Check( o0 ) && PyList_Check( o1 ) && PyList_GET_SIZE( o0 ) && PyList_GET_SIZE( o1 ) )
3357 PyObject *oo0 = PyList_GetItem( o0, 0 );
3358 PyObject *oo1 = PyList_GetItem( o1, 0 );
3362 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 ) )
3366 p0 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3367 p1 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3372 sipReleaseType( p0, sipType_QVector_0600QVector_0100QgsPointXY, state0 );
3373 sipReleaseType( p1, sipType_QVector_0600QVector_0100QgsPointXY, state1 );
3375 else if ( PyList_Check( oo0 ) && PyList_Check( oo1 ) && PyList_GET_SIZE( oo0 ) && PyList_GET_SIZE( oo1 ) )
3377 PyObject *ooo0 = PyList_GetItem( oo0, 0 );
3378 PyObject *ooo1 = PyList_GetItem( oo1, 0 );
3382 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 ) )
3386 p0 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3387 p1 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3392 sipReleaseType( p0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state0 );
3393 sipReleaseType( p1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state1 );
3421 QgsGeometry smooth(
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1.0,
double maxAngle = 180.0 )
const;
3469 static void convertPointList(
const QVector<QgsPointXY> &input,
QgsPointSequence &output );
3476 static void convertPointList(
const QgsPointSequence &input, QVector<QgsPointXY> &output );
3479 operator QVariant()
const
3481 return QVariant::fromValue( *
this );
3494 Q_ENUM( ChamferFilletOperationType )
3513 QgsGeometry fillet(
int vertexIndex,
double radius,
int segments = 8 )
const;
3548 QgsGeometry chamfer(
int vertexIndex,
double distance1,
double distance2 = -1.0 ) const;
3575 mutable QString mLastError;
3592 QgsGeometry convertToPoint(
bool destMultipart ) const;
3594 QgsGeometry convertToLine(
bool destMultipart ) const;
3596 QgsGeometry convertToPolygon(
bool destMultipart ) const;
3609 std::unique_ptr<
QgsLineString > smoothLine( const
QgsLineString &line,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3622 std::unique_ptr<
QgsPolygon > smoothPolygon( const
QgsPolygon &polygon,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3624 QgsGeometry doChamferFillet( ChamferFilletOperationType op,
int vertexIndex,
double distance1,
double distance2,
int segments ) const;