MCPcopy Create free account
hub / github.com/PDAL/PDAL / TEST

Function TEST

test/unit/io/EptReaderTest.cpp:106–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106TEST(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
138TEST(EptReaderTest, fullReadLaszip)
139{

Callers

nothing calls this directly

Calls 15

equalFunction · 0.85
readFileIntoStringFunction · 0.85
datapathFunction · 0.85
setOptionsMethod · 0.80
getWKTMethod · 0.80
executeStreamMethod · 0.80
streamTestFunction · 0.70
fromStringFunction · 0.50
BOX2DClass · 0.50
BOX3DClass · 0.50
addMethod · 0.45
previewMethod · 0.45

Tested by

no test coverage detected