Skip to content

Commit

Permalink
sipify
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 26, 2024
1 parent 7b5cdd2 commit aebfbc9
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
1 change: 1 addition & 0 deletions python/PyQt6/core/auto_additions/qgsgeometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
22 changes: 21 additions & 1 deletion python/PyQt6/core/auto_generated/geometry/qgsgeometry.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Creates a new multipart geometry from a list of QgsGeometry objects
%End

static QgsGeometry createWedgeBuffer( const QgsPoint &center, 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.

Expand All @@ -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 &center, 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
Expand Down
1 change: 1 addition & 0 deletions python/core/auto_additions/qgsgeometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
22 changes: 21 additions & 1 deletion python/core/auto_generated/geometry/qgsgeometry.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Creates a new multipart geometry from a list of QgsGeometry objects
%End

static QgsGeometry createWedgeBuffer( const QgsPoint &center, 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.

Expand All @@ -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 &center, 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
Expand Down

0 comments on commit aebfbc9

Please sign in to comment.