File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
python/core/auto_generated/geometry Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1497,6 +1497,12 @@ The coordinates at which the error is located and should be visualized.
1497
1497
True if the location available from :py:func:`where` is valid.
1498
1498
%End
1499
1499
1500
+ SIP_PYOBJECT __repr__();
1501
+ %MethodCode
1502
+ QString str = QStringLiteral( "<QgsGeometry.Error: %1>" ).arg( sipCpp->what() );
1503
+ sipRes = PyUnicode_FromString( str.toUtf8().data() );
1504
+ %End
1505
+
1500
1506
};
1501
1507
1502
1508
enum ValidationMethod
Original file line number Diff line number Diff line change @@ -1449,6 +1449,14 @@ class CORE_EXPORT QgsGeometry
1449
1449
*/
1450
1450
bool hasWhere () const ;
1451
1451
1452
+ #ifdef SIP_RUN
1453
+ SIP_PYOBJECT __repr__ ();
1454
+ % MethodCode
1455
+ QString str = QStringLiteral( " <QgsGeometry.Error: %1>" ).arg( sipCpp->what () );
1456
+ sipRes = PyUnicode_FromString( str.toUtf8().data() );
1457
+ % End
1458
+ #endif
1459
+
1452
1460
private:
1453
1461
QString mMessage ;
1454
1462
QgsPointXY mLocation ;
You can’t perform that action at this time.
0 commit comments