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

Function testDimensions

plugins/draco/test/DracoWriterTest.cpp:191–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 }
190
191 void testDimensions(NL::json dimensions, bool pass)
192 {
193 std::string inFile = Support::datapath("las/1.2-with-color.las");
194 std::string outFile = Support::temppath("draco_test_dims.drc");
195 FileUtils::deleteFile(outFile);
196
197 //setup reader
198 Options readerOptions;
199 readerOptions.add("filename", inFile);
200 readerOptions.add("count", 1065);
201 LasReader reader;
202 reader.setOptions(readerOptions);
203
204 Options options;
205 options.add("filename", outFile);
206 options.add("dimensions", dimensions);
207
208 DracoWriter writer;
209 writer.setOptions(options);
210 writer.setInput(reader);
211
212 PointTable table;
213 writer.prepare(table);
214
215 writer.execute(table);
216 }
217
218 void testZeroFill() {
219 std::string inFile = Support::temppath("draco_test_dims.drc");

Callers 1

TEST_FFunction · 0.70

Calls 7

datapathFunction · 0.85
temppathFunction · 0.85
deleteFileFunction · 0.85
setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected