| 42 | { |
| 43 | |
| 44 | TEST(ScanTest,testScanCtr) |
| 45 | { |
| 46 | e57::ImageFile imf(Support::datapath("e57/A4.e57"), "r"); |
| 47 | |
| 48 | const e57::ustring normalsExtension( |
| 49 | "http://www.libe57.org/E57_NOR_surface_normals.txt"); |
| 50 | e57::ustring _normalsExtension; |
| 51 | |
| 52 | // the extension may already be registered |
| 53 | if (!imf.extensionsLookupPrefix("nor", _normalsExtension)) |
| 54 | imf.extensionsAdd("nor", normalsExtension); |
| 55 | |
| 56 | e57::VectorNode data3D(imf.root().get("/data3D")); |
| 57 | auto scan = new e57::Scan((e57::StructureNode)data3D.get(0)); |
| 58 | ASSERT_EQ(scan->getNumPoints(), (pdal::point_count_t)4); |
| 59 | imf.close(); |
| 60 | } |
| 61 | |
| 62 | TEST(ScanTest,getDimension) |
| 63 | { |
nothing calls this directly
no test coverage detected