| 64 | |
| 65 | |
| 66 | void 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 | |
| 88 | TEST(CopcRemoteReaderTest, vsi) |