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

Function fileHasSrs

test/unit/apps/pc2pcTest.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111static bool fileHasSrs(const std::string& name)
112{
113 PointTable table;
114
115 Options ops;
116 ops.add("filename", name);
117 std::shared_ptr<LasReader> reader(new LasReader);
118 reader->setOptions(ops);
119 reader->prepare(table);
120 reader->execute(table);
121 return !reader->getSpatialReference().empty();
122}
123
124
125TEST(pc2pcTest, pc2pc_test_switches)

Callers 1

TESTFunction · 0.85

Calls 6

setOptionsMethod · 0.80
getSpatialReferenceMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected