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

Function TEST

test/unit/io/PcdWriterTest.cpp:139–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139TEST(PcdWriterTest, pcd2pcd)
140{
141 std::string outfile(Support::temppath("utm17.pcd"));
142 std::string infile(Support::datapath("pcd/utm17_space.pcd"));
143
144 FileUtils::deleteFile(outfile);
145
146 PcdReader r;
147 Options ro;
148
149 ro.add("filename", infile);
150 r.setOptions(ro);
151
152 PcdWriter w;
153 Options wo;
154
155 wo.add("filename", outfile);
156 wo.add("order", "X,Y,Z");
157 wo.add("precision", 2);
158 w.setOptions(wo);
159 w.setInput(r);
160
161 PointTable t;
162
163 w.prepare(t);
164 w.execute(t);
165
166 comparePcdPcd(infile, outfile);
167}
168
169TEST(PcdWriterTest, las2pcd)
170{

Callers

nothing calls this directly

Calls 13

temppathFunction · 0.85
datapathFunction · 0.85
deleteFileFunction · 0.85
comparePcdPcdFunction · 0.85
compareLasPcdFunction · 0.85
setOptionsMethod · 0.80
registerDimsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
setFieldMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected