diff --git a/python/PyQt6/core/auto_additions/qgsgeometry.py b/python/PyQt6/core/auto_additions/qgsgeometry.py index 022745384afd..cc6aaafd0f9e 100644 --- a/python/PyQt6/core/auto_additions/qgsgeometry.py +++ b/python/PyQt6/core/auto_additions/qgsgeometry.py @@ -12,6 +12,7 @@ QgsGeometry.fromBox3D = staticmethod(QgsGeometry.fromBox3D) QgsGeometry.collectGeometry = staticmethod(QgsGeometry.collectGeometry) QgsGeometry.createWedgeBuffer = staticmethod(QgsGeometry.createWedgeBuffer) +QgsGeometry.createWedgeBufferFromAngles = staticmethod(QgsGeometry.createWedgeBufferFromAngles) QgsGeometry.unaryUnion = staticmethod(QgsGeometry.unaryUnion) QgsGeometry.polygonize = staticmethod(QgsGeometry.polygonize) QgsGeometry.fromQPointF = staticmethod(QgsGeometry.fromQPointF) diff --git a/python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in b/python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in index e524d105f2f2..46b1a689916b 100644 --- a/python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in +++ b/python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in @@ -273,7 +273,7 @@ Creates a new multipart geometry from a list of QgsGeometry objects %End static QgsGeometry createWedgeBuffer( const QgsPoint ¢er, double azimuth, double angularWidth, - double outerRadius, double innerRadius = 0 ); + double outerRadius, double innerRadius = 0, const QgsCoordinateReferenceSystem &crs = QgsCoordinateReferenceSystem() ); %Docstring Creates a wedge shaped buffer from a ``center`` point. @@ -284,12 +284,32 @@ wedge will extend to half of the ``angularWidth`` either side of the ``azimuth`` The outer radius of the buffer is specified via ``outerRadius``, and optionally an ``innerRadius`` can also be specified. +If the ``crs`` is given and is geographic, the wedge is projected along the ellipsoïd. + The returned geometry will be a CurvePolygon geometry containing circular strings. It may need to be segmentized to convert to a standard Polygon geometry. .. versionadded:: 3.2 %End + static QgsGeometry createWedgeBufferFromAngles( const QgsPoint ¢er, double startAngle, double endAngle, + double outerRadius, double innerRadius = 0, const QgsCoordinateReferenceSystem &crs = QgsCoordinateReferenceSystem() ); +%Docstring +Creates a wedge shaped buffer from a ``center`` point. + +The wedges goes from the ``startAngle`` to ``endAngle`` in degrees. + +The outer radius of the buffer is specified via ``outerRadius``, and optionally an +``innerRadius`` can also be specified. + +If the ``crs`` is given and is geographic, the wedge is projected along the ellipsoïd. + +The returned geometry will be a CurvePolygon geometry containing circular strings. It may +need to be segmentized to convert to a standard Polygon geometry. + +.. versionadded:: 3.40 +%End + void fromWkb( const QByteArray &wkb ); %Docstring diff --git a/python/core/auto_additions/qgsgeometry.py b/python/core/auto_additions/qgsgeometry.py index 022745384afd..cc6aaafd0f9e 100644 --- a/python/core/auto_additions/qgsgeometry.py +++ b/python/core/auto_additions/qgsgeometry.py @@ -12,6 +12,7 @@ QgsGeometry.fromBox3D = staticmethod(QgsGeometry.fromBox3D) QgsGeometry.collectGeometry = staticmethod(QgsGeometry.collectGeometry) QgsGeometry.createWedgeBuffer = staticmethod(QgsGeometry.createWedgeBuffer) +QgsGeometry.createWedgeBufferFromAngles = staticmethod(QgsGeometry.createWedgeBufferFromAngles) QgsGeometry.unaryUnion = staticmethod(QgsGeometry.unaryUnion) QgsGeometry.polygonize = staticmethod(QgsGeometry.polygonize) QgsGeometry.fromQPointF = staticmethod(QgsGeometry.fromQPointF) diff --git a/python/core/auto_generated/geometry/qgsgeometry.sip.in b/python/core/auto_generated/geometry/qgsgeometry.sip.in index e524d105f2f2..46b1a689916b 100644 --- a/python/core/auto_generated/geometry/qgsgeometry.sip.in +++ b/python/core/auto_generated/geometry/qgsgeometry.sip.in @@ -273,7 +273,7 @@ Creates a new multipart geometry from a list of QgsGeometry objects %End static QgsGeometry createWedgeBuffer( const QgsPoint ¢er, double azimuth, double angularWidth, - double outerRadius, double innerRadius = 0 ); + double outerRadius, double innerRadius = 0, const QgsCoordinateReferenceSystem &crs = QgsCoordinateReferenceSystem() ); %Docstring Creates a wedge shaped buffer from a ``center`` point. @@ -284,12 +284,32 @@ wedge will extend to half of the ``angularWidth`` either side of the ``azimuth`` The outer radius of the buffer is specified via ``outerRadius``, and optionally an ``innerRadius`` can also be specified. +If the ``crs`` is given and is geographic, the wedge is projected along the ellipsoïd. + The returned geometry will be a CurvePolygon geometry containing circular strings. It may need to be segmentized to convert to a standard Polygon geometry. .. versionadded:: 3.2 %End + static QgsGeometry createWedgeBufferFromAngles( const QgsPoint ¢er, double startAngle, double endAngle, + double outerRadius, double innerRadius = 0, const QgsCoordinateReferenceSystem &crs = QgsCoordinateReferenceSystem() ); +%Docstring +Creates a wedge shaped buffer from a ``center`` point. + +The wedges goes from the ``startAngle`` to ``endAngle`` in degrees. + +The outer radius of the buffer is specified via ``outerRadius``, and optionally an +``innerRadius`` can also be specified. + +If the ``crs`` is given and is geographic, the wedge is projected along the ellipsoïd. + +The returned geometry will be a CurvePolygon geometry containing circular strings. It may +need to be segmentized to convert to a standard Polygon geometry. + +.. versionadded:: 3.40 +%End + void fromWkb( const QByteArray &wkb ); %Docstring