Skip to content

Commit 4db671e

Browse files
committed
Fix sip bindings for QgsPoint
1 parent 7e48719 commit 4db671e

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

python/core/geometry/qgspoint.sip

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ class QgsPoint: QgsAbstractGeometry
2323
public:
2424

2525
QgsPoint( double x = 0.0, double y = 0.0, SIP_PYOBJECT z = Py_None, SIP_PYOBJECT m = Py_None ) [( double x = 0.0, double y = 0.0, double z = 0.0, double m = 0.0 )];
26-
% Docstring
27-
Construct a point with the provided initial coordinate values.
26+
%Docstring
27+
Construct a point with the provided initial coordinate values.
2828

29-
If only z and m are not specified, the type will be a 2D point.
30-
If any or both of the others are specified, the Z and M values will be added accordingly.
29+
If only z and m are not specified, the type will be a 2D point.
30+
If any or both of the others are specified, the Z and M values will be added accordingly.
3131
%End
3232
%MethodCode
3333
double z;

src/core/geometry/qgspoint.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,10 @@ class CORE_EXPORT QgsPoint: public QgsAbstractGeometry
5050
* If only z and m are not specified, the type will be a 2D point.
5151
* If any or both of the others are specified, the Z and M values will be added accordingly.
5252
*/
53+
#ifndef SIP_RUN
5354
QgsPoint( double x = 0.0, double y = 0.0, double z = std::numeric_limits<double>::quiet_NaN(), double m = std::numeric_limits<double>::quiet_NaN() ) SIP_SKIP;
54-
#ifdef SIP_RUN
55+
#else
5556
QgsPoint( double x = 0.0, double y = 0.0, SIP_PYOBJECT z = Py_None, SIP_PYOBJECT m = Py_None ) [( double x = 0.0, double y = 0.0, double z = 0.0, double m = 0.0 )];
56-
% Docstring
57-
Construct a point with the provided initial coordinate values.
58-
59-
If only z and m are not specified, the type will be a 2D point.
60-
If any or both of the others are specified, the Z and M values will be added accordingly.
61-
% End
6257
% MethodCode
6358
double z;
6459
double m;

0 commit comments

Comments
 (0)