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

Method run

filters/ShellFilter.cpp:80–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80PointViewSet ShellFilter::run(PointViewPtr view)
81{
82 log()->get(LogLevel::Debug) << "running command : '" << m_command << "'"<< std::endl;
83
84 int status = Utils::run_shell_command(m_command.c_str(), m_command_output);
85 if (status)
86 {
87 std::stringstream msg;
88 msg << "Command '" << m_command << "' failed to execute";
89 msg << " with output '" << m_command_output <<"'";
90 throw pdal::pdal_error(msg.str());
91
92 }
93
94 log()->get(LogLevel::Debug) << "command output: '" << m_command_output << "'"<< std::endl;
95 log()->get(LogLevel::Debug) << "status: '" << status<< "'"<< std::endl;
96
97 PointViewSet views;
98 views.insert(view);
99 return views;
100}
101
102
103

Callers

nothing calls this directly

Calls 4

strMethod · 0.80
logFunction · 0.50
getMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected