本文整理汇总了C++中PipelineManager::execute方法的典型用法代码示例。如果您正苦于以下问题:C++ PipelineManager::execute方法的具体用法?C++ PipelineManager::execute怎么用?C++ PipelineManager::execute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PipelineManager
的用法示例。
在下文中一共展示了PipelineManager::execute方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
TEST(MergeTest, test4)
{
using namespace pdal;
PipelineManager mgr;
mgr.readPipeline(Support::configuredpath("filters/merge.json"));
mgr.execute();
PointViewSet viewSet = mgr.views();
EXPECT_EQ(1u, viewSet.size());
PointViewPtr view = *viewSet.begin();
EXPECT_EQ(2130u, view->size());
}
示例2: specReader
TEST(MergeTest, test2)
{
using namespace pdal;
PipelineManager mgr;
PipelineReader specReader(mgr);
specReader.readPipeline(Support::configuredpath("filters/merge2.xml"));
mgr.execute();
PointViewSet viewSet = mgr.views();
EXPECT_EQ(viewSet.size(), 1u);
PointViewPtr view = *viewSet.begin();
EXPECT_EQ(view->size(), 2130u);
}
示例3:
TEST_F(PythonFilterTest, pipelineJSON)
{
PipelineManager manager;
manager.readPipeline(
Support::configuredpath("plang/programmable-update-y-dims.json"));
manager.execute();
PointViewSet viewSet = manager.views();
EXPECT_EQ(viewSet.size(), 1u);
PointViewPtr view = *viewSet.begin();
for (PointId idx = 0; idx < 10; ++idx)
{
int32_t y = view->getFieldAs<int32_t>(Dimension::Id::Y, idx);
EXPECT_EQ(y, 314);
}
}
示例4: reader
TEST(SortFilterTest, pipeline)
{
PipelineManager mgr;
PipelineReader reader(mgr);
reader.readPipeline(Support::configuredpath("filters/sort.xml"));
mgr.execute();
PointBufferSet pbSet = mgr.buffers();
EXPECT_EQ(pbSet.size(), 1u);
PointBufferPtr buf = *pbSet.begin();
for (PointId i = 1; i < buf->size(); ++i)
{
double d1 = buf->getFieldAs<double>(Dimension::Id::X, i - 1);
double d2 = buf->getFieldAs<double>(Dimension::Id::X, i);
EXPECT_TRUE(d1 <= d2);
}
}
示例5:
// Make sure we handle repeated options properly
TEST(json, issue_1941)
{
PipelineManager manager;
std::string file;
file = Support::configuredpath("pipeline/range_multi_limits.json");
manager.readPipeline(file);
EXPECT_EQ(manager.execute(), (point_count_t)5);
const PointViewSet& s = manager.views();
EXPECT_EQ(s.size(), 1U);
PointViewPtr view = *s.begin();
EXPECT_EQ(view->getFieldAs<int>(Dimension::Id::X, 0), 3);
EXPECT_EQ(view->getFieldAs<int>(Dimension::Id::X, 1), 4);
EXPECT_EQ(view->getFieldAs<int>(Dimension::Id::X, 2), 5);
EXPECT_EQ(view->getFieldAs<int>(Dimension::Id::X, 3), 8);
EXPECT_EQ(view->getFieldAs<int>(Dimension::Id::X, 4), 9);
PipelineManager manager2;
file = Support::configuredpath("pipeline/range_bad_limits.json");
EXPECT_THROW(manager2.readPipeline(file), pdal_error);
}