| 104 | } |
| 105 | |
| 106 | TEST(EptReaderTest, inspect) |
| 107 | { |
| 108 | Options options; |
| 109 | options.add("filename", eptLaszipPath); |
| 110 | |
| 111 | EptReader reader; |
| 112 | reader.setOptions(options); |
| 113 | |
| 114 | const QuickInfo qi(reader.preview()); |
| 115 | |
| 116 | EXPECT_TRUE(qi.valid()); |
| 117 | EXPECT_EQ(qi.m_bounds, expBoundsConforming); |
| 118 | EXPECT_EQ(qi.m_pointCount, expNumPoints); |
| 119 | std::vector<std::string> dimNamesA(expDimNames); |
| 120 | std::vector<std::string> dimNamesB(qi.m_dimNames); |
| 121 | std::sort(dimNamesA.begin(), dimNamesA.end()); |
| 122 | std::sort(dimNamesB.begin(), dimNamesB.end()); |
| 123 | EXPECT_TRUE(std::equal(dimNamesA.cbegin(), dimNamesA.cend(), |
| 124 | dimNamesB.cbegin())); |
| 125 | |
| 126 | std::string wkt = qi.m_srs.getWKT(); |
| 127 | // Sometimes we get back "metre" when we're execting "meter". |
| 128 | while (true) |
| 129 | { |
| 130 | auto pos = wkt.find("metre"); |
| 131 | if (pos == std::string::npos) |
| 132 | break; |
| 133 | wkt.replace(pos, 5, "meter"); |
| 134 | } |
| 135 | EXPECT_EQ(wkt, expSrsWkt); |
| 136 | } |
| 137 | |
| 138 | TEST(EptReaderTest, fullReadLaszip) |
| 139 | { |
nothing calls this directly
no test coverage detected