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

Function fileIsCompressed

test/unit/apps/pc2pcTest.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98static bool fileIsCompressed(const std::string& name)
99{
100 PointTable table;
101
102 Options ops;
103 ops.add("filename", name);
104 std::shared_ptr<LasReader> reader(new LasReader);
105 reader->setOptions(ops);
106 reader->prepare(table);
107 return reader->header().compressed();
108}
109
110
111static bool fileHasSrs(const std::string& name)

Callers 1

TESTFunction · 0.85

Calls 4

setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
compressedMethod · 0.45

Tested by

no test coverage detected