Skip to content

Commit b47f03d

Browse files
committedOct 4, 2016
Fix testqgsogcutils
1 parent 0b68363 commit b47f03d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎tests/src/core/testqgsogcutils.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ void TestQgsOgcUtils::testGeometryToGML()
107107
QVERIFY( !elemPoint.isNull() );
108108

109109
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>" ) );
111111
doc.removeChild( elemPoint );
112112

113113
QDomElement elemLine = QgsOgcUtils::geometryToGML( &geomLine, doc );
114114
QVERIFY( !elemLine.isNull() );
115115

116116
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>" ) );
118118
doc.removeChild( elemLine );
119119

120120
// Test GML3
@@ -359,23 +359,23 @@ void TestQgsOgcUtils::testExpressionToOgcFilter_data()
359359
"<ogc:Filter xmlns:ogc=\"http://www.opengis.net/ogc\" xmlns:gml=\"http://www.opengis.net/gml\">"
360360
"<ogc:BBOX>"
361361
"<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>"
363363
"</ogc:BBOX>"
364364
"</ogc:Filter>" );
365365

366366
QTest::newRow( "intersects + wkt" ) << QString( "intersects($geometry, geomFromWKT('POINT (5 6)'))" ) << QString(
367367
"<ogc:Filter xmlns:ogc=\"http://www.opengis.net/ogc\" xmlns:gml=\"http://www.opengis.net/gml\">"
368368
"<ogc:Intersects>"
369369
"<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>"
371371
"</ogc:Intersects>"
372372
"</ogc:Filter>" );
373373

374374
QTest::newRow( "contains + gml" ) << QString( "contains($geometry, geomFromGML('<Point><coordinates cs=\",\" ts=\" \">5,6</coordinates></Point>'))" ) << QString(
375375
"<ogc:Filter xmlns:ogc=\"http://www.opengis.net/ogc\" xmlns:gml=\"http://www.opengis.net/gml\">"
376376
"<ogc:Contains>"
377377
"<ogc:PropertyName>geometry</ogc:PropertyName>"
378-
"<Point><coordinates cs=\",\" ts=\" \">5,6</coordinates></Point>"
378+
"<Point><coordinates ts=\" \" cs=\",\">5,6</coordinates></Point>"
379379
"</ogc:Contains>"
380380
"</ogc:Filter>" );
381381
}
@@ -726,7 +726,7 @@ void TestQgsOgcUtils::testSQLStatementToOgcFilter_data()
726726
"<ogc:Filter xmlns:ogc=\"http://www.opengis.net/ogc\" xmlns:gml=\"http://www.opengis.net/gml\">"
727727
"<ogc:Intersects>"
728728
"<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>"
730730
"</ogc:Intersects>"
731731
"</ogc:Filter>" );
732732

@@ -735,7 +735,7 @@ void TestQgsOgcUtils::testSQLStatementToOgcFilter_data()
735735
"<ogc:Filter xmlns:ogc=\"http://www.opengis.net/ogc\" xmlns:gml=\"http://www.opengis.net/gml\">"
736736
"<ogc:Contains>"
737737
"<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>"
739739
"</ogc:Contains>"
740740
"</ogc:Filter>" );
741741

0 commit comments

Comments
 (0)
Please sign in to comment.