Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix typo, failing test
- Loading branch information
|
@@ -58,7 +58,7 @@ Returns a copy of the multi curve, where each component curve has had its line d |
|
|
|
|
|
SIP_PYOBJECT __repr__(); |
|
|
%MethodCode |
|
|
QString str = QStringLiteral( "<QgsMulitCurve: %1>" ).arg( sipCpp->asWkt() ); |
|
|
QString str = QStringLiteral( "<QgsMultiCurve: %1>" ).arg( sipCpp->asWkt() ); |
|
|
sipRes = PyUnicode_FromString( str.toUtf8().data() ); |
|
|
%End |
|
|
|
|
|
|
@@ -76,7 +76,7 @@ class CORE_EXPORT QgsMultiCurve: public QgsGeometryCollection |
|
|
#ifdef SIP_RUN |
|
|
SIP_PYOBJECT __repr__(); |
|
|
% MethodCode |
|
|
QString str = QStringLiteral( "<QgsMulitCurve: %1>" ).arg( sipCpp->asWkt() ); |
|
|
QString str = QStringLiteral( "<QgsMultiCurve: %1>" ).arg( sipCpp->asWkt() ); |
|
|
sipRes = PyUnicode_FromString( str.toUtf8().data() ); |
|
|
% End |
|
|
#endif |
|
|
|
@@ -70,7 +70,7 @@ def testQgsMulticurveRepr(self): |
|
|
mc.addGeometry(cs) |
|
|
cs2 = QgsCircularString(QgsPoint(4, 20), QgsPoint(5, 22), QgsPoint(6, 24)) |
|
|
mc.addGeometry(cs2) |
|
|
self.assertEqual(mc.__repr__(), '<QgsMulitCurve: MultiCurve (CircularString (1 10, 2 11, 3 12),CircularString (4 20, 5 22, 6 24))>') |
|
|
self.assertEqual(mc.__repr__(), '<QgsMultiCurve: MultiCurve (CircularString (1 10, 2 11, 3 12),CircularString (4 20, 5 22, 6 24))>') |
|
|
|
|
|
def testQgsMultilineStringRepr(self): |
|
|
ml = QgsGeometry.fromMultiPolylineXY( |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.