| 107 | namespace { |
| 108 | |
| 109 | void commonTestData() |
| 110 | { |
| 111 | QTest::addColumn<OcdGeorefFields>("ocd_string_fields"); |
| 112 | QTest::addColumn<GeorefCoreData>("georef_result"); |
| 113 | QTest::addColumn<unsigned>("n_warnings"); // number of warnings expected |
| 114 | |
| 115 | QTest::newRow("Sibelius Monumentti - Finland, TM35FIN, ETRS89/ETRS-TM35FIN") |
| 116 | << OcdGeorefFields { 10.7, 15000, 384268, 6673512, 6005, 1 } |
| 117 | << GeorefCoreData { 15000, 8.89, 10.7, { 384268, 6673512 }, QStringLiteral("EPSG"), { QStringLiteral("3067") } } |
| 118 | << 0U; |
| 119 | QTest::newRow("CERN - Switzerland, CH1903") |
| 120 | << OcdGeorefFields { 2.72000000, 15000, 495133, 129609, 14001, 1 } |
| 121 | << GeorefCoreData { 15000, 1.72, 2.72, { 495133, 129609 }, QStringLiteral("EPSG"), { QStringLiteral("21781") } } |
| 122 | << 0U; |
| 123 | QTest::newRow("Launch Pad 39A - USA, Florida, WGS 84/UTM zone 17") |
| 124 | << OcdGeorefFields { -7.06000000, 15000, 538705, 3164567, 2017, 1 } |
| 125 | << GeorefCoreData { 15000, -6.87, -7.06, { 538705, 3164567 }, QStringLiteral("UTM"), { QStringLiteral("17") } } |
| 126 | << 0U; |
| 127 | QTest::newRow("Brandenburger Tor - Germany, DHDN/3-degree Gauss-Kruger zone 4") |
| 128 | << OcdGeorefFields { 2.84, 15000, 4571442, 5807888, 8004, 1 } |
| 129 | << GeorefCoreData { 15000, 3.67, 2.84, { 4571442, 5807888 }, QStringLiteral("Gauss-Krueger, datum: Potsdam"), { QStringLiteral("4") } } |
| 130 | << 0U; |
| 131 | QTest::newRow("Brandenburger Tor - Germany, WGS 84/UTM zone 33N") |
| 132 | << OcdGeorefFields { 5.22000000, 15000, 367205, 5807281, 2033, 1 } |
| 133 | << GeorefCoreData { 15000, 3.67, 5.22, { 367205, 5807281 }, QStringLiteral("UTM"), { QStringLiteral("33") } } |
| 134 | << 0U; |
| 135 | QTest::newRow("Nasca airport - Peru, WGS 84/UTM zone 18S") |
| 136 | << OcdGeorefFields { -2.70000000, 15000, 504606, 8358028, -2018, 1 } |
| 137 | << GeorefCoreData { 15000, -2.71, -2.70, { 504606, 8358028 }, QStringLiteral("UTM"), { QStringLiteral("18 S") } } |
| 138 | << 0U; |
| 139 | QTest::newRow("Wellington airport - New Zealand, WGS 84/UTM zone 60S") |
| 140 | << OcdGeorefFields { 21.14000000, 15000, 316493, 5423682, -2060, 1 } |
| 141 | << GeorefCoreData { 15000, 22.59, 21.14, { 316493, 5423682 }, QStringLiteral("UTM"), { QStringLiteral("60 S") } } |
| 142 | << 0U; |
| 143 | } |
| 144 | |
| 145 | } // anonymous namespace |
| 146 |
no outgoing calls
no test coverage detected