Skip to content

Commit 5c3a720

Browse files
lbartolettim-kuhn
authored andcommitted
fix qgsgeometry sip
1 parent 629f46d commit 5c3a720

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

python/core/geometry/qgsgeometry.sip

-14
Original file line numberDiff line numberDiff line change
@@ -577,13 +577,6 @@ Returns true if WKB of the geometry is of WKBMulti* type
577577
:rtype: QgsGeometry
578578
%End
579579

580-
QgsGeometry orientedMinimumBoundingBox( ) const;
581-
%Docstring
582-
Returns the oriented minimum bounding box for the geometry, which is the smallest (by area)
583-
rotated rectangle which fully encompasses the geometry.
584-
.. versionadded:: 3.0
585-
:rtype: QgsGeometry
586-
%End
587580

588581
QgsGeometry minimalEnclosingCircle( QgsPointXY &center /Out/, double &radius /Out/, unsigned int segments = 36 ) const;
589582
%Docstring
@@ -595,13 +588,6 @@ Returns true if WKB of the geometry is of WKBMulti* type
595588
:rtype: QgsGeometry
596589
%End
597590

598-
QgsGeometry minimalEnclosingCircle( unsigned int segments = 36 ) const;
599-
%Docstring
600-
Returns the minimal enclosing circle for the geometry.
601-
.. seealso:: QgsEllipse.toPolygon()
602-
.. versionadded:: 3.0
603-
:rtype: QgsGeometry
604-
%End
605591

606592
QgsGeometry orthogonalize( double tolerance = 1.0E-8, int maxIterations = 1000, double angleThreshold = 15.0 ) const;
607593
%Docstring

src/core/geometry/qgsgeometry.h

+6
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,15 @@ class CORE_EXPORT QgsGeometry
599599
*/
600600
QgsGeometry orientedMinimumBoundingBox( double &area SIP_OUT, double &angle SIP_OUT, double &width SIP_OUT, double &height SIP_OUT ) const;
601601

602+
#ifndef SIP_RUN
603+
602604
/**
603605
* Returns the oriented minimum bounding box for the geometry, which is the smallest (by area)
604606
* rotated rectangle which fully encompasses the geometry.
605607
* \since QGIS 3.0
606608
*/
607609
QgsGeometry orientedMinimumBoundingBox( ) const;
610+
#endif
608611

609612
/**
610613
* Returns the minimal enclosing circle for the geometry.
@@ -615,12 +618,15 @@ class CORE_EXPORT QgsGeometry
615618
*/
616619
QgsGeometry minimalEnclosingCircle( QgsPointXY &center SIP_OUT, double &radius SIP_OUT, unsigned int segments = 36 ) const;
617620

621+
#ifndef SIP_RUN
622+
618623
/**
619624
* Returns the minimal enclosing circle for the geometry.
620625
* \param segments Number of segments used to segment geometry. \see QgsEllipse::toPolygon()
621626
* \since QGIS 3.0
622627
*/
623628
QgsGeometry minimalEnclosingCircle( unsigned int segments = 36 ) const;
629+
#endif
624630

625631
/**
626632
* Attempts to orthogonalize a line or polygon geometry by shifting vertices to make the geometries

0 commit comments

Comments
 (0)