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

Function TEST

test/unit/io/i3sReaderTest.cpp:17–40  ·  view source on GitHub ↗

test full autzen lidar i3s with bounds that hold the entire data also tests that default depth pulls full resolution of data

Source from the content-addressed store, hash-verified

15//test full autzen lidar i3s with bounds that hold the entire data
16//also tests that default depth pulls full resolution of data
17TEST(i3sReaderTest, options_test)
18{
19 StageFactory f;
20 //create args
21 Options i3s_options;
22 i3s_options.add("filename", "i3s://https://tiles.arcgis.com/tiles/8cv2FuXuWSfF0nbL/arcgis/rest/services/AUTZEN_LiDAR/SceneServer");
23 i3s_options.add("threads", 4);
24 i3s_options.add("dimensions", "RGB, intenSITY");
25
26 Stage& reader = *f.createStage("readers.i3s");
27 reader.setOptions(i3s_options);
28
29 PointTable table;
30 reader.prepare(table);
31
32 PointViewSet viewSet = reader.execute(table);
33 PointViewPtr view = *viewSet.begin();
34 EXPECT_EQ(view->size(), 10653336u);
35 ASSERT_TRUE(table.layout()->hasDim(Dimension::Id::Red));
36 ASSERT_TRUE(table.layout()->hasDim(Dimension::Id::Intensity));
37 ASSERT_FALSE(table.layout()->hasDim(Dimension::Id::NumberOfReturns));
38
39
40}
41
42
43TEST(i3sReaderTest, density_test)

Callers

nothing calls this directly

Calls 8

createStageMethod · 0.80
setOptionsMethod · 0.80
hasDimMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected