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