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

Function optionsWrite

plugins/pgpointcloud/test/PgpointcloudTest.cpp:186–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184{
185
186void optionsWrite(const Options& writerOps)
187{
188 StageFactory f;
189 Stage* reader(f.createStage("readers.las"));
190
191 const std::string file(Support::datapath("las/1.2-with-color.las"));
192 Options options;
193 options.add("filename", file);
194 reader->setOptions(options);
195
196 Stage* writer(f.createStage("writers.pgpointcloud"));
197 writer->setOptions(writerOps);
198 writer->setInput(*reader);
199
200 PointTable table;
201 writer->prepare(table);
202
203 PointViewSet written = writer->execute(table);
204
205 point_count_t count(0);
206 for(auto i = written.begin(); i != written.end(); ++i)
207 count += (*i)->size();
208 EXPECT_EQ(written.size(), 1U);
209 EXPECT_EQ(count, 1065U);
210}
211
212} // unnamed namespace
213

Callers 1

TEST_FFunction · 0.85

Calls 9

datapathFunction · 0.85
createStageMethod · 0.80
setOptionsMethod · 0.80
addMethod · 0.45
prepareMethod · 0.45
executeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected