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 );
1143 Qgis::GeometryOperationResult
transform( const QTransform &t,
double zTranslate = 0.0,
double zScale = 1.0,
double mTranslate = 0.0,
double mScale = 1.0 );
1221 if ( PyList_Check( a0 ) && PyList_GET_SIZE( a0 ) )
1223 PyObject *p0 = PyList_GetItem( a0, 0 );
1224 if ( sipCanConvertToType( p0, sipType_QgsPointXY, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPointXY, SIP_NOT_NONE ) )
1226 QVector<QgsGeometry> newGeometries;
1227 QVector<QgsPointXY> topologyTestPoints;
1229 QVector<QgsPointXY> *splitLine =
reinterpret_cast<QVector<QgsPointXY> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1234 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1235 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1236 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPointXY, Py_None );
1238 sipRes = PyTuple_New( 3 );
1239 PyTuple_SET_ITEM( sipRes, 0, o0 );
1240 PyTuple_SET_ITEM( sipRes, 1, o1 );
1241 PyTuple_SET_ITEM( sipRes, 2, o2 );
1243 sipReleaseType( splitLine, sipType_QVector_0100QgsPointXY, state );
1246 else if ( sipCanConvertToType( p0, sipType_QgsPoint, SIP_NOT_NONE ) && sipCanConvertToType( a0, sipType_QVector_0100QgsPoint, SIP_NOT_NONE ) )
1248 QVector<QgsGeometry> newGeometries;
1249 QVector<QgsPoint> topologyTestPoints;
1251 QVector<QgsPoint> *splitLine =
reinterpret_cast<QVector<QgsPoint> *
>( sipConvertToType( a0, sipType_QVector_0100QgsPoint, 0, SIP_NOT_NONE, &state, &sipIsErr ) );
1256 PyObject *o0 = sipConvertFromEnum(
static_cast<int>( result ), sipType_Qgis_GeometryOperationResult );
1257 PyObject *o1 = sipConvertFromType( &newGeometries, sipType_QVector_0100QgsGeometry, Py_None );
1258 PyObject *o2 = sipConvertFromType( &topologyTestPoints, sipType_QVector_0100QgsPoint, Py_None );
1260 sipRes = PyTuple_New( 3 );
1261 PyTuple_SET_ITEM( sipRes, 0, o0 );
1262 PyTuple_SET_ITEM( sipRes, 1, o1 );
1263 PyTuple_SET_ITEM( sipRes, 2, o2 );
1265 sipReleaseType( splitLine, sipType_QVector_0100QgsPoint, state );
1270 PyErr_SetString( PyExc_TypeError, u
"Could not convert first argument to a list of QgsPoint or QgsPointXY."_s.toUtf8().constData() );
1276 PyErr_SetString( PyExc_TypeError, u
"First argument is not a list of points or is empty."_s.toUtf8().constData() );
1308 int makeDifferenceInPlace(
const QgsGeometry &other, QgsFeedback* feedback =
nullptr )
SIP_SKIP;
1317 QgsGeometry makeDifference( const QgsGeometry &other, QgsFeedback* feedback =
nullptr ) const;
1323 QgsRectangle boundingBox() const;
1330 QgsBox3D boundingBox3D() const;
1344 QgsGeometry orientedMinimumBoundingBox(
double &area
SIP_OUT,
double &angle
SIP_OUT,
double &width
SIP_OUT,
double &height
SIP_OUT ) const;
1355 QgsGeometry orientedMinimumBoundingBox() const
SIP_SKIP;
1364 QgsGeometry minimalEnclosingCircle( QgsPointXY ¢er
SIP_OUT,
double &radius
SIP_OUT,
unsigned int segments = 36 ) const;
1370 QgsGeometry minimalEnclosingCircle(
unsigned int segments = 36 ) const
SIP_SKIP;
1379 QgsGeometry orthogonalize(
double tolerance = 1.0E-8,
int maxIterations = 1000,
double angleThreshold = 15.0 ) const;
1393 QgsGeometry triangularWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1413 QgsGeometry triangularWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1427 QgsGeometry squareWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1447 QgsGeometry squareWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1461 QgsGeometry roundWaves(
double wavelength,
double amplitude,
bool strictWavelength = false ) const;
1481 QgsGeometry roundWavesRandomized(
double minimumWavelength,
double maximumWavelength,
double minimumAmplitude,
double maximumAmplitude,
unsigned long seed = 0 ) const;
1496 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;
1509 QgsGeometry snappedToGrid(
double hSpacing,
double vSpacing,
double dSpacing = 0,
double mSpacing = 0 ) const;
1530 bool removeDuplicateNodes(
double epsilon = 4 * std::numeric_limits<
double>::epsilon(),
bool useZValues = false );
1541 Q_INVOKABLE
bool intersects( const QgsRectangle &rectangle ) const;
1557 Q_INVOKABLE
bool intersects( const QgsGeometry &geometry ) const;
1567 Q_INVOKABLE
bool boundingBoxIntersects( const QgsRectangle &rectangle ) const;
1577 Q_INVOKABLE
bool boundingBoxIntersects( const QgsGeometry &geometry ) const;
1582 bool contains( const QgsPointXY *p ) const;
1589 Q_INVOKABLE
bool contains(
double x,
double y ) const;
1600 Q_INVOKABLE
bool contains( const QgsGeometry &geometry ) const;
1611 Q_INVOKABLE
bool disjoint( const QgsGeometry &geometry ) const;
1622 Q_INVOKABLE
bool touches( const QgsGeometry &geometry ) const;
1633 Q_INVOKABLE
bool overlaps( const QgsGeometry &geometry ) const;
1644 Q_INVOKABLE
bool within( const QgsGeometry &geometry ) const;
1655 Q_INVOKABLE
bool crosses( const QgsGeometry &geometry ) const;
1666 QgsGeometry buffer(
double distance,
int segments, QgsFeedback* feedback =
nullptr ) const;
1680 QgsGeometry buffer(
double distance,
int segments, Qgis::EndCapStyle endCapStyle, Qgis::JoinStyle joinStyle,
double miterLimit, QgsFeedback* feedback =
nullptr ) const;
1689 QgsGeometry offsetCurve(
double distance,
int segments, Qgis::JoinStyle joinStyle,
double miterLimit ) const;
1705 QgsGeometry singleSidedBuffer(
double distance,
int segments, Qgis::BufferSide side, Qgis::JoinStyle joinStyle = Qgis::JoinStyle::Round,
double miterLimit = 2.0 ) const;
1724 QgsGeometry taperedBuffer(
double startWidth,
double endWidth,
int segments ) const;
1740 QgsGeometry variableWidthBufferByM(
int segments ) const;
1747 QgsGeometry extendLine(
double startDistance,
double endDistance ) const;
1754 QgsGeometry simplify(
double tolerance, QgsFeedback* feedback =
nullptr ) const;
1764 QgsGeometry densifyByCount(
int extraNodesPerSegment ) const;
1779 QgsGeometry densifyByDistance(
double distance ) const;
1796 QgsGeometry convertToCurves(
double distanceTolerance = 1e-8,
double angleTolerance = 1e-8 ) const;
1811 QgsGeometry centroid() const;
1826 QgsGeometry pointOnSurface() const;
1839 QgsGeometry poleOfInaccessibility(
double precision,
double *distanceToBoundary
SIP_OUT =
nullptr ) const;
1864 QgsGeometry largestEmptyCircle(
double tolerance, const QgsGeometry &boundary = QgsGeometry() ) const
SIP_THROW( QgsNotSupportedException );
1880 QgsGeometry minimumWidth() const
SIP_THROW( QgsNotSupportedException );
1903 double minimumClearance() const
SIP_THROW( QgsNotSupportedException );
1916 QgsGeometry minimumClearanceLine() const
SIP_THROW( QgsNotSupportedException );
1926 QgsGeometry convexHull() const;
1943 QgsGeometry concaveHull(
double targetPercent,
bool allowHoles = false, QgsFeedback * feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
1980 QgsGeometry concaveHullOfPolygons(
double lengthRatio,
bool allowHoles = false,
bool isTight = false, QgsFeedback *feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
1996 QgsGeometry voronoiDiagram( const QgsGeometry &extent = QgsGeometry(),
double tolerance = 0.0,
bool edgesOnly = false ) const;
2008 QgsGeometry delaunayTriangulation(
double tolerance = 0.0,
bool edgesOnly = false ) const;
2022 QgsGeometry constrainedDelaunayTriangulation() const
SIP_THROW( QgsNotSupportedException );
2041 Qgis::CoverageValidityResult validateCoverage(
double gapWidth, QgsGeometry *invalidEdges
SIP_OUT =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2063 QgsGeometry simplifyCoverageVW(
double tolerance,
bool preserveBoundary ) const
SIP_THROW( QgsNotSupportedException );
2076 QgsGeometry unionCoverage() const;
2088 QgsGeometry node() const;
2104 QgsGeometry sharedPaths( const QgsGeometry &other ) const;
2128 QgsGeometry subdivide(
int maxNodes = 256, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2144 QgsGeometry interpolate(
double distance ) const;
2156 double lineLocatePoint( const QgsGeometry &point ) const;
2166 double interpolateAngle(
double distance ) const;
2181 QgsGeometry intersection( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2191 QgsGeometry clipped( const QgsRectangle &rectangle, QgsFeedback* feedback =
nullptr );
2209 QgsGeometry combine( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2221 QgsGeometry mergeLines( const QgsGeometryParameters ¶meters = QgsGeometryParameters() ) const;
2236 QgsGeometry difference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2251 QgsGeometry symDifference( const QgsGeometry &geometry, const QgsGeometryParameters ¶meters = QgsGeometryParameters(), QgsFeedback* feedback =
nullptr ) const;
2254 QgsGeometry extrude(
double x,
double y );
2317 PyErr_SetString( PyExc_ValueError, u
"Cannot generate points inside a null geometry."_s.toUtf8().constData() );
2322 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() );
2327 const sipTypeDef *qvector_type = sipFindType(
"QVector<QgsPointXY>" );
2328 sipRes = sipConvertFromNewType(
new QVector< QgsPointXY >( sipCpp->randomPointsInPolygon( a0, a1 ) ), qvector_type, Py_None );
2359 Q_INVOKABLE QString asWkt(
int precision = 17 )
const;
2363 SIP_PYOBJECT __repr__();
2366 if ( sipCpp->isNull() )
2367 str = u
"<QgsGeometry: null>"_s;
2370 QString wkt = sipCpp->asWkt();
2371 if ( wkt.length() > 1000 )
2372 wkt = wkt.left( 1000 ) + u
"..."_s;
2373 str = u
"<QgsGeometry: %1>"_s.arg( wkt );
2375 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
2383 QString asJson(
int precision = 17 )
const;
2390 virtual json asJsonObject(
int precision = 17 ) const
SIP_SKIP;
2428 QVector< QgsGeometry > coerceToType( Qgis::WkbType type,
double defaultZ = 0,
double defaultM = 0,
bool avoidDuplicates = true ) const;
2441 QgsGeometry convertToType( Qgis::GeometryType destType,
bool destMultipart = false ) const;
2455 QgsPointXY asPoint()
const;
2469 SIP_PYOBJECT asPoint() const
SIP_TYPEHINT( QgsPointXY );
2471 if ( sipCpp->isNull() )
2473 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a point."_s.toUtf8().constData() );
2478 const QgsAbstractGeometry *geom = sipCpp->constGet();
2481 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() );
2486 sipRes = sipConvertFromNewType(
new QgsPointXY( sipCpp->asPoint() ), sipType_QgsPointXY, Py_None );
2520 const Qgis::WkbType type = sipCpp->wkbType();
2521 if ( sipCpp->isNull() )
2523 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polyline."_s.toUtf8().constData() );
2528 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() );
2533 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2534 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asPolyline() ), qvector_type, Py_None );
2567 const Qgis::WkbType type = sipCpp->wkbType();
2568 if ( sipCpp->isNull() )
2570 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a polygon."_s.toUtf8().constData() );
2575 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() );
2580 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2581 sipRes = sipConvertFromNewType(
new QgsPolygonXY( sipCpp->asPolygon() ), qvector_type, Py_None );
2612 const Qgis::WkbType type = sipCpp->wkbType();
2613 if ( sipCpp->isNull() )
2615 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipoint."_s.toUtf8().constData() );
2620 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() );
2625 const sipTypeDef *qvector_type = sipFindType(
"QVector< QgsPointXY >" );
2626 sipRes = sipConvertFromNewType(
new QgsPolylineXY( sipCpp->asMultiPoint() ), qvector_type, Py_None );
2659 const Qgis::WkbType type = sipCpp->wkbType();
2660 if ( sipCpp->isNull() )
2662 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multilinestring."_s.toUtf8().constData() );
2667 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() );
2672 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QgsPointXY>>" );
2673 sipRes = sipConvertFromNewType(
new QgsMultiPolylineXY( sipCpp->asMultiPolyline() ), qvector_type, Py_None );
2706 const Qgis::WkbType type = sipCpp->wkbType();
2707 if ( sipCpp->isNull() )
2709 PyErr_SetString( PyExc_ValueError, u
"Null geometry cannot be converted to a multipolygon."_s.toUtf8().constData() );
2714 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() );
2719 const sipTypeDef *qvector_type = sipFindType(
"QVector<QVector<QVector<QgsPointXY>>>" );
2720 sipRes = sipConvertFromNewType(
new QgsMultiPolygonXY( sipCpp->asMultiPolygon() ), qvector_type, Py_None );
2729 QVector<QgsGeometry> asGeometryCollection()
const;
2755 bool deleteRing(
int ringNum,
int partNum = 0 );
2761 bool deletePart(
int partNum );
2771 bool convertToMultiType();
2788 bool convertToCurvedMultiType();
2799 bool convertToSingleType();
2810 bool convertGeometryCollectionToSubclass( Qgis::GeometryType geomType );
2836 Qgis::GeometryOperationResult avoidIntersectionsV2( const QList<QgsVectorLayer *> &avoidIntersectionsLayers, const QHash<QgsVectorLayer *, QSet<
QgsFeatureId> > &ignoreFeatures
SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<
QgsFeatureId> >() ) );
2859 QgsGeometry makeValid( Qgis::MakeValidMethod method = Qgis::MakeValidMethod::Linework,
bool keepCollapsed = false, QgsFeedback* feedback =
nullptr ) const
SIP_THROW( QgsNotSupportedException );
2870 Qgis::AngularDirection polygonOrientation() const;
2951 : mMessage( u
"none"_s )
2961 , mHasLocation( true ) {}
2966 QString what()
const;
2976 bool hasWhere()
const;
2980 SIP_PYOBJECT __repr__();
2982 QString str = u
"<QgsGeometry.Error: %1>"_s.arg( sipCpp->what() );
2983 sipRes = PyUnicode_FromString( str.toUtf8().data() );
2991 return other.mMessage == mMessage && other.mHasLocation == mHasLocation && other.mLocation == mLocation;
2997 bool mHasLocation =
false;
3039 static QgsGeometry polygonize(
const QVector<QgsGeometry> &geometries );
3054 bool requiresConversionToStraightSegments()
const;
3066 void draw( QPainter &p )
const;
3108 void filterVertices( const std::function<
bool( const
QgsPoint & ) > &filter )
SIP_SKIP;
3138 static
QgsGeometry fromQPolygonF( const QPolygonF &polygon );
3168 static bool compare(
const QgsPolylineXY &p1,
const QgsPolylineXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3178 static bool compare(
const QgsPolygonXY &p1,
const QgsPolygonXY &p2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3211 static bool compare( PyObject *obj1, PyObject *obj2,
double epsilon = 4 * std::numeric_limits<double>::epsilon() );
3219 if ( PyList_Check( a0 ) && PyList_Check( a1 ) && PyList_GET_SIZE( a0 ) && PyList_GET_SIZE( a1 ) )
3221 PyObject *o0 = PyList_GetItem( a0, 0 );
3222 PyObject *o1 = PyList_GetItem( a1, 0 );
3226 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 ) )
3230 p0 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a0, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3231 p1 =
reinterpret_cast<QgsPolylineXY *
>( sipConvertToType( a1, sipType_QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3236 sipReleaseType( p0, sipType_QVector_0100QgsPointXY, state0 );
3237 sipReleaseType( p1, sipType_QVector_0100QgsPointXY, state1 );
3239 else if ( PyList_Check( o0 ) && PyList_Check( o1 ) && PyList_GET_SIZE( o0 ) && PyList_GET_SIZE( o1 ) )
3241 PyObject *oo0 = PyList_GetItem( o0, 0 );
3242 PyObject *oo1 = PyList_GetItem( o1, 0 );
3246 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 ) )
3250 p0 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3251 p1 =
reinterpret_cast<QgsPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3256 sipReleaseType( p0, sipType_QVector_0600QVector_0100QgsPointXY, state0 );
3257 sipReleaseType( p1, sipType_QVector_0600QVector_0100QgsPointXY, state1 );
3259 else if ( PyList_Check( oo0 ) && PyList_Check( oo1 ) && PyList_GET_SIZE( oo0 ) && PyList_GET_SIZE( oo1 ) )
3261 PyObject *ooo0 = PyList_GetItem( oo0, 0 );
3262 PyObject *ooo1 = PyList_GetItem( oo1, 0 );
3266 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 ) )
3270 p0 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state0, &sipIsErr ) );
3271 p1 =
reinterpret_cast<QgsMultiPolygonXY *
>( sipConvertToType( a1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, 0, SIP_NOT_NONE, &state1, &sipIsErr ) );
3276 sipReleaseType( p0, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state0 );
3277 sipReleaseType( p1, sipType_QVector_0600QVector_0600QVector_0100QgsPointXY, state1 );
3305 QgsGeometry smooth(
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1.0,
double maxAngle = 180.0 )
const;
3353 static void convertPointList(
const QVector<QgsPointXY> &input,
QgsPointSequence &output );
3360 static void convertPointList(
const QgsPointSequence &input, QVector<QgsPointXY> &output );
3363 operator QVariant()
const
3365 return QVariant::fromValue( *
this );
3378 Q_ENUM( ChamferFilletOperationType )
3397 QgsGeometry fillet(
int vertexIndex,
double radius,
int segments = 8 )
const;
3432 QgsGeometry chamfer(
int vertexIndex,
double distance1,
double distance2 = -1.0 ) const;
3459 mutable QString mLastError;
3476 QgsGeometry convertToPoint(
bool destMultipart ) const;
3478 QgsGeometry convertToLine(
bool destMultipart ) const;
3480 QgsGeometry convertToPolygon(
bool destMultipart ) const;
3493 std::unique_ptr<
QgsLineString > smoothLine( const
QgsLineString &line,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3506 std::unique_ptr<
QgsPolygon > smoothPolygon( const
QgsPolygon &polygon,
unsigned int iterations = 1,
double offset = 0.25,
double minimumDistance = -1,
double maxAngle = 180.0 ) const;
3508 QgsGeometry doChamferFillet( ChamferFilletOperationType op,
int vertexIndex,
double distance1,
double distance2,
int segments ) const;