File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ class TestQgsCoordinateReferenceSystem: public QObject
60
60
void geographicFlag ();
61
61
void mapUnits ();
62
62
void setValidationHint ();
63
+ void axisInverted ();
63
64
private:
64
65
void debugPrint ( QgsCoordinateReferenceSystem &theCrs );
65
66
// these used by createFromESRIWkt()
@@ -410,6 +411,22 @@ void TestQgsCoordinateReferenceSystem::setValidationHint()
410
411
debugPrint ( myCrs );
411
412
}
412
413
414
+ void TestQgsCoordinateReferenceSystem::axisInverted ()
415
+ {
416
+ // this is used by WMS 1.3 to determine whether to switch axes or not
417
+
418
+ QgsCoordinateReferenceSystem crs;
419
+ crs.createFromOgcWmsCrs ( " EPSG:4326" ); // WGS 84 with inverted axes
420
+ QVERIFY ( crs.axisInverted () );
421
+
422
+ crs.createFromOgcWmsCrs ( " CRS:84" ); // WGS 84 without inverted axes
423
+ QVERIFY ( !crs.axisInverted () );
424
+
425
+ crs.createFromOgcWmsCrs ( " EPSG:32633" ); // "WGS 84 / UTM zone 33N" - projected CRS without invertex axes
426
+ QVERIFY ( !crs.axisInverted () );
427
+ }
428
+
429
+
413
430
void TestQgsCoordinateReferenceSystem::debugPrint (
414
431
QgsCoordinateReferenceSystem &theCrs )
415
432
{
You can’t perform that action at this time.
0 commit comments