@@ -1428,9 +1428,9 @@ void TestQgsGeometry::lineStringV2()
1428
1428
QCOMPARE ( elemToString ( exportLineFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
1429
1429
1430
1430
// asGML3
1431
- QString expectedGML3 ( " <Curve xmlns=\" gml\" ><segments xmlns= \" gml \" ><LineStringSegment xmlns= \" gml \" >< posList xmlns=\" gml\" srsDimension=\" 2\" >31 32 41 42 51 52</posList></LineStringSegment></segments></Curve >" );
1431
+ QString expectedGML3 ( " <LineString xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension=\" 2\" >31 32 41 42 51 52</posList></LineString >" );
1432
1432
QCOMPARE ( elemToString ( exportLine.asGML3 ( doc ) ), expectedGML3 );
1433
- QString expectedGML3prec3 ( " <Curve xmlns=\" gml\" ><segments xmlns= \" gml \" ><LineStringSegment xmlns= \" gml \" >< posList xmlns=\" gml\" srsDimension=\" 2\" >0.333 0.667 1.333 1.667 2.333 2.667</posList></LineStringSegment></segments></Curve >" );
1433
+ QString expectedGML3prec3 ( " <LineString xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension=\" 2\" >0.333 0.667 1.333 1.667 2.333 2.667</posList></LineString >" );
1434
1434
QCOMPARE ( elemToString ( exportLineFloat.asGML3 ( doc, 3 ) ), expectedGML3prec3 );
1435
1435
1436
1436
// asJSON
@@ -2934,11 +2934,11 @@ void TestQgsGeometry::polygonV2()
2934
2934
QCOMPARE ( elemToString ( exportPolygonFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
2935
2935
2936
2936
// as GML3
2937
- QString expectedGML3 ( " <Polygon xmlns=\" gml\" ><exterior xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><coordinates xmlns=\" gml\" >0, 0 0, 10 10, 10 10, 0 0, 0</coordinates ></LinearRing></exterior>" );
2938
- expectedGML3 += QString ( " <interior xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><coordinates xmlns=\" gml\" >1, 1 1, 9 9, 9 9, 1 1, 1</coordinates ></LinearRing></interior></Polygon>" );
2937
+ QString expectedGML3 ( " <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>" );
2938
+ expectedGML3 += QString ( " <interior xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension= \" 2 \" >1 1 1 9 9 9 9 1 1 1</posList ></LinearRing></interior></Polygon>" );
2939
2939
QCOMPARE ( elemToString ( exportPolygon.asGML3 ( doc ) ), expectedGML3 );
2940
- QString expectedGML3prec3 ( " <Polygon xmlns=\" gml\" ><exterior 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></exterior>" );
2941
- expectedGML3prec3 += QString ( " <interior 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></interior></Polygon>" );
2940
+ QString expectedGML3prec3 ( " <Polygon xmlns=\" gml\" ><exterior xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension= \" 2 \" >1.111 1.111 1.111 11.111 11.111 11.111 11.111 1.111 1.111 1.111</posList ></LinearRing></exterior>" );
2941
+ expectedGML3prec3 += QString ( " <interior xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension= \" 2 \" >0.667 0.667 0.667 1.333 1.333 1.333 1.333 0.667 0.667 0.667</posList ></LinearRing></interior></Polygon>" );
2942
2942
QCOMPARE ( elemToString ( exportPolygonFloat.asGML3 ( doc, 3 ) ), expectedGML3prec3 );
2943
2943
2944
2944
// removing the fourth to last vertex removes the whole ring
0 commit comments