test full autzen lidar i3s with bounds that hold the entire data also tests that default depth pulls full resolution of data
| 15 | //test full autzen lidar i3s with bounds that hold the entire data |
| 16 | //also tests that default depth pulls full resolution of data |
| 17 | TEST(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 | |
| 43 | TEST(i3sReaderTest, density_test) |
nothing calls this directly
no test coverage detected