1
1
/* **************************************************************************
2
2
testqgsmaptoolreshape.cpp
3
3
--------------------------------
4
- Date : 2017-121
4
+ Date : 2017-12-1
5
5
Copyright : (C) 2017 by Paul Blottiere
6
6
Email : paul.blottiere@oslandia.com
7
7
***************************************************************************
@@ -111,10 +111,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
111
111
tool0.reshape ( vl.get () );
112
112
113
113
f0 = vl->getFeature ( 1 );
114
- QCOMPARE ( f0.geometry ().asJson (), QStringLiteral ( " { \" type \" : \" LineString\" , \" coordinates \" : [ [0, 0], [1, 1], [1, 2], [2, 1]]} " ) );
114
+ QCOMPARE ( f0.geometry ().asWkt (), QStringLiteral ( " LineString (0 0, 1 1, 1 2, 2 1) " ) );
115
115
116
116
f1 = vl->getFeature ( 2 );
117
- QCOMPARE ( f1.geometry ().asJson (), QStringLiteral ( " { \" type \" : \" LineString\" , \" coordinates \" : [ [2, 1], [3, 2], [3, 3], [2, 2]]} " ) );
117
+ QCOMPARE ( f1.geometry ().asWkt (), QStringLiteral ( " LineString (2 1, 3 2, 3 3, 2 2) " ) );
118
118
119
119
vl->rollBack ();
120
120
@@ -131,10 +131,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
131
131
tool1.reshape ( vl.get () );
132
132
133
133
f0 = vl->getFeature ( 1 );
134
- QCOMPARE ( f0.geometry ().asJson (), QStringLiteral ( " { \" type \" : \" LineString\" , \" coordinates \" : [ [0, 0], [1, 1], [1, 2]]} " ) );
134
+ QCOMPARE ( f0.geometry ().asWkt (), QStringLiteral ( " LineString (0 0, 1 1, 1 2) " ) );
135
135
136
136
f1 = vl->getFeature ( 2 );
137
- QCOMPARE ( f1.geometry ().asJson (), QStringLiteral ( " { \" type \" : \" LineString\" , \" coordinates \" : [ [1, 2], [2, 1], [3, 2], [3, 3], [2, 2]]} " ) );
137
+ QCOMPARE ( f1.geometry ().asWkt (), QStringLiteral ( " LineString (1 2, 2 1, 3 2, 3 3, 2 2) " ) );
138
138
139
139
vl->rollBack ();
140
140
}
0 commit comments