@@ -1550,9 +1550,9 @@ void TestQgsGeometry::lineString()
15501550 QCOMPARE ( elemToString ( exportLineFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
15511551
15521552 // asGML3
1553- QString expectedGML3 ( QStringLiteral ( " <Curve xmlns=\" gml\" ><segments xmlns= \" gml \" ><LineStringSegment xmlns= \" gml \" >< posList xmlns=\" gml\" srsDimension=\" 2\" >31 32 41 42 51 52</posList></LineStringSegment></segments></Curve >" ) );
1553+ QString expectedGML3 ( QStringLiteral ( " <LineString xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension=\" 2\" >31 32 41 42 51 52</posList></LineString >" ) );
15541554 QCOMPARE ( elemToString ( exportLine.asGML3 ( doc ) ), expectedGML3 );
1555- QString expectedGML3prec3 ( QStringLiteral ( " <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 >" ) );
1555+ QString expectedGML3prec3 ( QStringLiteral ( " <LineString xmlns=\" gml\" ><posList xmlns=\" gml\" srsDimension=\" 2\" >0.333 0.667 1.333 1.667 2.333 2.667</posList></LineString >" ) );
15561556 QCOMPARE ( elemToString ( exportLineFloat.asGML3 ( doc, 3 ) ), expectedGML3prec3 );
15571557
15581558 // asJSON
@@ -3037,11 +3037,12 @@ void TestQgsGeometry::polygon()
30373037 QCOMPARE ( elemToString ( exportPolygonFloat.asGML2 ( doc, 3 ) ), expectedGML2prec3 );
30383038
30393039 // as GML3
3040- QString expectedGML3 ( QStringLiteral ( " <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>" ) );
3041- expectedGML3 += QStringLiteral ( " <interior xmlns=\" gml\" ><LinearRing xmlns=\" gml\" ><coordinates xmlns=\" gml\" >1,1 1,9 9,9 9,1 1,1</coordinates></LinearRing></interior></Polygon>" );
3040+ 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>" ) );
3041+ expectedGML3 += QStringLiteral ( " <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>" );
3042+
30423043 QCOMPARE ( elemToString ( exportPolygon.asGML3 ( doc ) ), expectedGML3 );
3043- QString expectedGML3prec3 ( QStringLiteral ( " <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>" ) );
3044- expectedGML3prec3 += QStringLiteral ( " <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>" );
3044+ QString expectedGML3prec3 ( QStringLiteral ( " <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>" ) );
3045+ expectedGML3prec3 += QStringLiteral ( " <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>" );
30453046 QCOMPARE ( elemToString ( exportPolygonFloat.asGML3 ( doc, 3 ) ), expectedGML3prec3 );
30463047
30473048 // removing the fourth to last vertex removes the whole ring
0 commit comments