@@ -107,14 +107,14 @@ void TestQgsOgcUtils::testGeometryToGML()
107
107
QVERIFY ( !elemPoint.isNull () );
108
108
109
109
doc.appendChild ( elemPoint );
110
- QCOMPARE ( doc.toString ( -1 ), QString ( " <gml:Point><gml:coordinates cs =\" , \" ts =\" \" >111,222</gml:coordinates></gml:Point>" ) );
110
+ QCOMPARE ( doc.toString ( -1 ), QString ( " <gml:Point><gml:coordinates ts =\" \" cs =\" , \" >111,222</gml:coordinates></gml:Point>" ) );
111
111
doc.removeChild ( elemPoint );
112
112
113
113
QDomElement elemLine = QgsOgcUtils::geometryToGML ( &geomLine, doc );
114
114
QVERIFY ( !elemLine.isNull () );
115
115
116
116
doc.appendChild ( elemLine );
117
- QCOMPARE ( doc.toString ( -1 ), QString ( " <gml:LineString><gml:coordinates cs =\" , \" ts =\" \" >111,222 222,222</gml:coordinates></gml:LineString>" ) );
117
+ QCOMPARE ( doc.toString ( -1 ), QString ( " <gml:LineString><gml:coordinates ts =\" \" cs =\" , \" >111,222 222,222</gml:coordinates></gml:LineString>" ) );
118
118
doc.removeChild ( elemLine );
119
119
120
120
// Test GML3
@@ -359,23 +359,23 @@ void TestQgsOgcUtils::testExpressionToOgcFilter_data()
359
359
" <ogc:Filter xmlns:ogc=\" http://www.opengis.net/ogc\" xmlns:gml=\" http://www.opengis.net/gml\" >"
360
360
" <ogc:BBOX>"
361
361
" <ogc:PropertyName>geometry</ogc:PropertyName>"
362
- " <gml:Box><gml:coordinates cs =\" , \" ts =\" \" >5,6 5,6</gml:coordinates></gml:Box>"
362
+ " <gml:Box><gml:coordinates ts =\" \" cs =\" , \" >5,6 5,6</gml:coordinates></gml:Box>"
363
363
" </ogc:BBOX>"
364
364
" </ogc:Filter>" );
365
365
366
366
QTest::newRow ( " intersects + wkt" ) << QString ( " intersects($geometry, geomFromWKT('POINT (5 6)'))" ) << QString (
367
367
" <ogc:Filter xmlns:ogc=\" http://www.opengis.net/ogc\" xmlns:gml=\" http://www.opengis.net/gml\" >"
368
368
" <ogc:Intersects>"
369
369
" <ogc:PropertyName>geometry</ogc:PropertyName>"
370
- " <gml:Point><gml:coordinates cs =\" , \" ts =\" \" >5,6</gml:coordinates></gml:Point>"
370
+ " <gml:Point><gml:coordinates ts =\" \" cs =\" , \" >5,6</gml:coordinates></gml:Point>"
371
371
" </ogc:Intersects>"
372
372
" </ogc:Filter>" );
373
373
374
374
QTest::newRow ( " contains + gml" ) << QString ( " contains($geometry, geomFromGML('<Point><coordinates cs=\" ,\" ts=\" \" >5,6</coordinates></Point>'))" ) << QString (
375
375
" <ogc:Filter xmlns:ogc=\" http://www.opengis.net/ogc\" xmlns:gml=\" http://www.opengis.net/gml\" >"
376
376
" <ogc:Contains>"
377
377
" <ogc:PropertyName>geometry</ogc:PropertyName>"
378
- " <Point><coordinates cs =\" , \" ts =\" \" >5,6</coordinates></Point>"
378
+ " <Point><coordinates ts =\" \" cs =\" , \" >5,6</coordinates></Point>"
379
379
" </ogc:Contains>"
380
380
" </ogc:Filter>" );
381
381
}
@@ -726,7 +726,7 @@ void TestQgsOgcUtils::testSQLStatementToOgcFilter_data()
726
726
" <ogc:Filter xmlns:ogc=\" http://www.opengis.net/ogc\" xmlns:gml=\" http://www.opengis.net/gml\" >"
727
727
" <ogc:Intersects>"
728
728
" <ogc:PropertyName>geom</ogc:PropertyName>"
729
- " <gml:Point><gml:coordinates cs =\" , \" ts =\" \" >5,6</gml:coordinates></gml:Point>"
729
+ " <gml:Point><gml:coordinates ts =\" \" cs =\" , \" >5,6</gml:coordinates></gml:Point>"
730
730
" </ogc:Intersects>"
731
731
" </ogc:Filter>" );
732
732
@@ -735,7 +735,7 @@ void TestQgsOgcUtils::testSQLStatementToOgcFilter_data()
735
735
" <ogc:Filter xmlns:ogc=\" http://www.opengis.net/ogc\" xmlns:gml=\" http://www.opengis.net/gml\" >"
736
736
" <ogc:Contains>"
737
737
" <ogc:PropertyName>geom</ogc:PropertyName>"
738
- " <gml:Point xmlns:gml=\" http://www.opengis.net/gml\" ><gml:coordinates xmlns:gml=\" http://www.opengis.net/gml\" cs =\" , \" ts =\" \" >5,6</gml:coordinates></gml:Point>"
738
+ " <gml:Point xmlns:gml=\" http://www.opengis.net/gml\" ><gml:coordinates xmlns:gml=\" http://www.opengis.net/gml\" ts =\" \" cs =\" , \" >5,6</gml:coordinates></gml:Point>"
739
739
" </ogc:Contains>"
740
740
" </ogc:Filter>" );
741
741
0 commit comments