@@ -617,9 +617,9 @@ void TestQgsGeometry::point()
617
617
QgsPoint exportPointFloat ( 1 / 3.0 , 2 / 3.0 );
618
618
QDomDocument doc ( QStringLiteral ( " gml" ) );
619
619
QString expectedGML2 ( QStringLiteral ( " <Point xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >1,2</coordinates></Point>" ) );
620
- QCOMPARE ( elemToString ( exportPoint.asGML2 ( doc ) ), expectedGML2 );
620
+ QGSCOMPAREGML ( elemToString ( exportPoint.asGML2 ( doc ) ), expectedGML2 );
621
621
QString expectedGML2prec3 ( QStringLiteral ( " <Point xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >0.333,0.667</coordinates></Point>" ) );
622
- QCOMPARE ( elemToString ( exportPointFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
622
+ QGSCOMPAREGML ( elemToString ( exportPointFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
623
623
624
624
// asGML3
625
625
QString expectedGML3 ( QStringLiteral ( " <Point xmlns=\" gml\" ><pos xmlns=\" gml\" srsDimension=\" 2\" >1 2</pos></Point>" ) );
@@ -1739,9 +1739,9 @@ void TestQgsGeometry::lineString()
1739
1739
<< QgsPoint ( 2 + 1 / 3.0 , 2 + 2 / 3.0 ) );
1740
1740
QDomDocument doc ( QStringLiteral ( " gml" ) );
1741
1741
QString expectedGML2 ( QStringLiteral ( " <LineString xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >31,32 41,42 51,52</coordinates></LineString>" ) );
1742
- QCOMPARE ( elemToString ( exportLine.asGML2 ( doc ) ), expectedGML2 );
1742
+ QGSCOMPAREGML ( elemToString ( exportLine.asGML2 ( doc ) ), expectedGML2 );
1743
1743
QString expectedGML2prec3 ( QStringLiteral ( " <LineString xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >0.333,0.667 1.333,1.667 2.333,2.667</coordinates></LineString>" ) );
1744
- QCOMPARE ( elemToString ( exportLineFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
1744
+ QGSCOMPAREGML ( elemToString ( exportLineFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
1745
1745
1746
1746
// asGML3
1747
1747
QString expectedGML3 ( QStringLiteral ( " <LineString xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension=\" 2\" >31 32 41 42 51 52</posList></LineString>" ) );
@@ -3203,7 +3203,7 @@ void TestQgsGeometry::polygon()
3203
3203
3204
3204
// as GML2
3205
3205
QString expectedSimpleGML2 ( QStringLiteral ( " <Polygon xmlns=\" gml\" ><outerBoundaryIs xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >0,0 0,10 10,10 10,0 0,0</coordinates></LinearRing></outerBoundaryIs></Polygon>" ) );
3206
- QCOMPARE ( elemToString ( exportPolygon.asGML2 ( doc ) ), expectedSimpleGML2 );
3206
+ QGSCOMPAREGML ( elemToString ( exportPolygon.asGML2 ( doc ) ), expectedSimpleGML2 );
3207
3207
3208
3208
// as GML3
3209
3209
QString expectedSimpleGML3 ( QStringLiteral ( " <Polygon xmlns=\" gml\" ><exterior xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension=\" 2\" >0 0 0 10 10 10 10 0 0 0</posList></LinearRing></exterior></Polygon>" ) );
@@ -3240,10 +3240,10 @@ void TestQgsGeometry::polygon()
3240
3240
// as GML2
3241
3241
QString expectedGML2 ( QStringLiteral ( " <Polygon xmlns=\" gml\" ><outerBoundaryIs xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >0,0 0,10 10,10 10,0 0,0</coordinates></LinearRing></outerBoundaryIs>" ) );
3242
3242
expectedGML2 += QStringLiteral ( " <innerBoundaryIs xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >1,1 1,9 9,9 9,1 1,1</coordinates></LinearRing></innerBoundaryIs></Polygon>" );
3243
- QCOMPARE ( elemToString ( exportPolygon.asGML2 ( doc ) ), expectedGML2 );
3243
+ QGSCOMPAREGML ( elemToString ( exportPolygon.asGML2 ( doc ) ), expectedGML2 );
3244
3244
QString expectedGML2prec3 ( QStringLiteral ( " <Polygon xmlns=\" gml\" ><outerBoundaryIs xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >1.111,1.111 1.111,11.111 11.111,11.111 11.111,1.111 1.111,1.111</coordinates></LinearRing></outerBoundaryIs>" ) );
3245
3245
expectedGML2prec3 += QStringLiteral ( " <innerBoundaryIs xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><coordinates xmlns=\" gml\" cs=\" ,\" ts=\" \" >0.667,0.667 0.667,1.333 1.333,1.333 1.333,0.667 0.667,0.667</coordinates></LinearRing></innerBoundaryIs></Polygon>" );
3246
- QCOMPARE ( elemToString ( exportPolygonFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
3246
+ QGSCOMPAREGML ( elemToString ( exportPolygonFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
3247
3247
3248
3248
// as GML3
3249
3249
QString expectedGML3 ( QStringLiteral ( " <Polygon xmlns=\" gml\" ><exterior xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension=\" 2\" >0 0 0 10 10 10 10 0 0 0</posList></LinearRing></exterior>" ) );
0 commit comments