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;
1839 QgsGeometry extendLine(
double startDistance,
double endDistance,
double startDeflection = 0,
double endDeflection = 0 ) const;
1846 QgsGeometry simplify(
double tolerance, QgsFeedback* feedback =
nullptr ) const;
1856 QgsGeometry densifyByCount(
int extraNodesPerSegment ) const;
1871 QgsGeometry densifyByDistance(
double distance ) const;
1888 QgsGeometry convertToCurves(
double distanceTolerance = 1e-8,
double angleTolerance = 1e-8 ) const;
1903 QgsGeometry centroid() const;
1918 QgsGeometry pointOnSurface() const;
1931 QgsGeometry poleOfInaccessibility(
double precision,
double *distanceToBoundary
SIP_OUT =
nullptr ) const;
1956 QgsGeometry largestEmptyCircle(
double tolerance, const QgsGeometry &boundary = QgsGeometry() ) const
SIP_THROW( QgsNotSupportedException );
1972 QgsGeometry minimumWidth() const
SIP_THROW( QgsNotSupportedException );
1995 double minimumClearance() const
SIP_THROW( QgsNotSupportedException );
2008 QgsGeometry minimumClearanceLine() const
SIP_THROW( QgsNotSupportedException );
2018 QgsGeometry convexHull() const;
2035 QgsGeometry concaveHull(
double targetPercent,
bool allowHoles = false, QgsFeedback * feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2072 QgsGeometry concaveHullOfPolygons(
double lengthRatio,
bool allowHoles = false,
bool isTight = false, QgsFeedback *feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2088 QgsGeometry voronoiDiagram( const QgsGeometry &extent = QgsGeometry(),
double tolerance = 0.0,
bool edgesOnly = false ) const;
2100 QgsGeometry delaunayTriangulation(
double tolerance = 0.0,
bool edgesOnly = false ) const;
2114 QgsGeometry constrainedDelaunayTriangulation() const
SIP_THROW( QgsNotSupportedException );
2133 Qgis::CoverageValidityResult validateCoverage(
double gapWidth, QgsGeometry *invalidEdges
SIP_OUT =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2155 QgsGeometry simplifyCoverageVW(
double tolerance,
bool preserveBoundary ) const
SIP_THROW( QgsNotSupportedException );
2168 QgsGeometry unionCoverage() const;
2187 QgsGeometry cleanCoverage( const QgsCoverageCleanParameters ¶meters, QgsFeedback *feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2199 QgsGeometry node() const;
2215 QgsGeometry sharedPaths( const QgsGeometry &other ) const;
2239 QgsGeometry subdivide(
int maxNodes = 256, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2255 QgsGeometry interpolate(
double distance ) const;
2267 double lineLocatePoint( const QgsGeometry &point ) const;
2277 double interpolateAngle(
double distance ) const;
2292 QgsGeometry intersection( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2302 QgsGeometry clipped( const QgsRectangle &rectangle, QgsFeedback* feedback =
nullptr );
2320 QgsGeometry combine( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2332 QgsGeometry mergeLines( const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2347 QgsGeometry difference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2362 QgsGeometry symDifference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2365 QgsGeometry extrude(
double x,
double y );
2428 PyErr_SetString( PyExc_ValueError, u
"Cannot generate points inside a null geometry."_s.toUtf8().constData() );
2433 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() );
2438 const sipTypeDef *qvector_type = sipFindType(
"QVector<QgsPointXY>" );
2439 sipRes = sipConvertFromNewType(
new QVector< QgsPointXY >( sipCpp->randomPointsInPolygon( a0, a1 ) ), qvector_type, Py_None );
2470 Q_INVOKABLE QString asWkt(
int precision = 17 )
const;
2474 SIP_PYOBJECT __repr__();
2477 if ( sipCpp->isNull() )
2478 str = u
"<QgsGeometry: null>"_s;
2481 QString wkt = sipCpp->asWkt();
2482 if ( wkt.length() > 1000 )
2483 wkt = wkt.left( 1000 ) + u
"..."_s;
2484 str = u
"<QgsGeometry: %1>"_s.arg( wkt );
2486 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
2495 QString asJson(
int precision = 17 )
const;
2547 QVector< QgsGeometry > coerceToType(
Qgis::WkbType type,
double defaultZ = 0,
double defaultM = 0,
bool avoidDuplicates =
true )
const;
2560 QgsGeometry convertToType(
Qgis::GeometryType destType,
bool destMultipart =
false )
const;
2574 QgsPointXY asPoint()
const;
2588 SIP_PYOBJECT asPoint() const
SIP_TYPEHINT( QgsPointXY );
2590 if ( sipCpp->isNull() )
2592 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a point."_s.toUtf8().constData() );
2597 const QgsAbstractGeometry *geom = sipCpp->constGet();
2600 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() );
2605 sipRes = sipConvertFromNewType(
new QgsPointXY( sipCpp->asPoint() ), sipType_QgsPointXY, Py_None );
2639 const Qgis::WkbType type = sipCpp->wkbType();
2640 if ( sipCpp->isNull() )
2642 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polyline."_s.toUtf8().constData() );
2647 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() );
2652 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2653 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asPolyline() ), qvector_type, Py_None );
2686 const Qgis::WkbType type = sipCpp->wkbType();
2687 if ( sipCpp->isNull() )
2689 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polygon."_s.toUtf8().constData() );
2694 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() );
2699 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2700 sipRes = sipConvertFromNewType(
new QgsPolygonXY( sipCpp->asPolygon() ), qvector_type, Py_None );
2731 const Qgis::WkbType type = sipCpp->wkbType();
2732 if ( sipCpp->isNull() )
2734 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipoint."_s.toUtf8().constData() );
2739 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() );
2744 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2745 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asMultiPoint() ), qvector_type, Py_None );
2778 const Qgis::WkbType type = sipCpp->wkbType();
2779 if ( sipCpp->isNull() )
2781 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multilinestring."_s.toUtf8().constData() );
2786 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() );
2791 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2792 sipRes = sipConvertFromNewType(
new QgsMultiPolylineXY( sipCpp->asMultiPolyline() ), qvector_type, Py_None );
2825 const Qgis::WkbType type = sipCpp->wkbType();
2826 if ( sipCpp->isNull() )
2828 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipolygon."_s.toUtf8().constData() );
2833 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() );
2838 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QVector<QgsPointXY>>>" );
2839 sipRes = sipConvertFromNewType(
new QgsMultiPolygonXY( sipCpp->asMultiPolygon() ), qvector_type, Py_None );
2848 QVector<QgsGeometry> asGeometryCollection()
const;
2874 bool deleteRing(
int ringNum,
int partNum = 0 );
2880 bool deletePart(
int partNum );
2890 bool convertToMultiType();
2907 bool convertToCurvedMultiType();
2918 bool convertToSingleType();
2929 bool convertGeometryCollectionToSubclass( Qgis::GeometryType geomType );
2955 Qgis::GeometryOperationResult avoidIntersectionsV2( const QList<QgsVectorLayer *> &avoidIntersectionsLayers, const QHash<QgsVectorLayer *, QSet<
QgsFeatureId> > &ignoreFeatures
SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<
QgsFeatureId> >() ) );
2978 QgsGeometry makeValid( Qgis::MakeValidMethod method = Qgis::MakeValidMethod::Linework,
bool keepCollapsed = false, QgsFeedback* feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2989 Qgis::AngularDirection polygonOrientation() const;
3070 : mMessage( u
"none"_s )
3080 , mHasLocation( true ) {}
3085 QString what()
const;
3095 bool hasWhere()
const;
3099 SIP_PYOBJECT __repr__();
3101 QString str = u
"<QgsGeometry.Error: %1>"_s.arg( sipCpp->what() );
3102 sipRes = PyUnicode_FromString( str.toUtf8().data() );
3110 return other.mMessage == mMessage && other.mHasLocation == mHasLocation && other.mLocation == mLocation;
3116 bool mHasLocation =
false;
3158 static QgsGeometry polygonize(
const QVector<QgsGeometry> &geometries );
3173 bool requiresConversionToStraightSegments()
const;
3185 void draw( QPainter &p )
const;
3227 void filterVertices( const std::function<
bool( const
QgsPoint & ) > &filter )
SIP_SKIP;
3257 static
QgsGeometry fromQPolygonF( const QPolygonF &polygon );
3287 static bool compare(
const QgsPolylineXY &p1,
const QgsPolylineXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3297 static bool compare(
const QgsPolygonXY &p1,
const QgsPolygonXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3330 static bool compare( PyObject *obj1, PyObject *obj2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3338 if ( PyList_Check( a0 ) && PyList_Check( a1 ) && PyList_GET_SIZE( a0 ) && PyList_GET_SIZE( a1 ) )
3340 PyObject *o0 = PyList_GetItem( a0, 0 );
3341 PyObject *o1 = PyList_GetItem( a1, 0 );
3345 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 ) )
3349 p0 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3350 p1 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a1, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3355 sipReleaseType( p0, sipType_QVector_0100QgsPointXY, state0 );
3356 sipReleaseType( p1, sipType_QVector_0100QgsPointXY, state1 );
3358 else if ( PyList_Check( o0 ) && PyList_Check( o1 ) && PyList_GET_SIZE( o0 ) && PyList_GET_SIZE( o1 ) )
3360 PyObject *oo0 = PyList_GetItem( o0, 0 );
3361 PyObject *oo1 = PyList_GetItem( o1, 0 );
3365 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 ) )
3369 p0 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3370 p1 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3375 sipReleaseType( p0, sipType_QVector_0600QVector_0100QgsPointXY, state0 );
3376 sipReleaseType( p1, sipType_QVector_0600QVector_0100QgsPointXY, state1 );
3378 else if ( PyList_Check( oo0 ) && PyList_Check( oo1 ) && PyList_GET_SIZE( oo0 ) && PyList_GET_SIZE( oo1 ) )
3380 PyObject *ooo0 = PyList_GetItem( oo0, 0 );
3381 PyObject *ooo1 = PyList_GetItem( oo1, 0 );
3385 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 ) )
3389 p0 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3390 p1 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3395 sipReleaseType( p0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state0 );
3396 sipReleaseType( p1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state1 );
3424 QgsGeometry smooth(
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1.0,
double maxAngle = 180.0 )
const;
3472 static void convertPointList(
const QVector<QgsPointXY> &input,
QgsPointSequence &output );
3479 static void convertPointList(
const QgsPointSequence &input, QVector<QgsPointXY> &output );
3482 operator QVariant()
const
3484 return QVariant::fromValue( *
this );
3497 Q_ENUM( ChamferFilletOperationType )
3516 QgsGeometry fillet(
int vertexIndex,
double radius,
int segments = 8 )
const;
3551 QgsGeometry chamfer(
int vertexIndex,
double distance1,
double distance2 = -1.0 ) const;
3578 mutable QString mLastError;
3595 QgsGeometry convertToPoint(
bool destMultipart ) const;
3597 QgsGeometry convertToLine(
bool destMultipart ) const;
3599 QgsGeometry convertToPolygon(
bool destMultipart ) const;
3612 std::unique_ptr<
QgsLineString > smoothLine( const
QgsLineString &line,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3625 std::unique_ptr<
QgsPolygon > smoothPolygon( const
QgsPolygon &polygon,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3627 QgsGeometry doChamferFillet( ChamferFilletOperationType op,
int vertexIndex,
double distance1,
double distance2,
int segments ) const;