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

Function testURLs

test/unit/io/CopcRemoteReaderTest.cpp:66–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66void testURLs(const std::string& url, const BOX2D& bounds)
67{
68
69 CopcReader reader;
70 {
71 Options options;
72 options.add("bounds", bounds);
73 options.add("filename", url);
74 options.add("resolution", 1000);
75
76 reader.setOptions(options);
77 }
78
79 pdal::QuickInfo qi(reader.preview());
80 EXPECT_EQ(61201u, qi.m_pointCount);
81
82 pdal::BOX3D bounds3d = qi.m_bounds;
83 EXPECT_EQ(pdal::Bounds(bounds).to2d(), pdal::Bounds(bounds3d).to2d());
84
85}
86
87
88TEST(CopcRemoteReaderTest, vsi)

Callers 1

TESTFunction · 0.85

Calls 5

BoundsFunction · 0.85
setOptionsMethod · 0.80
to2dMethod · 0.80
addMethod · 0.45
previewMethod · 0.45

Tested by

no test coverage detected