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

Method ingest

pdal/FileSpec.cpp:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151Utils::StatusWithReason FileSpec::ingest(const std::string& pathOrJson)
152{
153 NL::json json;
154 if (Utils::isJSON(pathOrJson))
155 {
156 auto status = Utils::parseJson(pathOrJson, json);
157 if (!status)
158 return status;
159 }
160 // assuming input is a filename
161 else
162 json = NL::json(pathOrJson);
163
164 return m_p->parse(json);
165}
166
167void FileSpec::Private::setFilePath(const std::string& u8path)
168{

Callers 4

TESTFunction · 0.80
parsePipelineFunction · 0.80

Calls 4

isJSONFunction · 0.85
parseJsonFunction · 0.85
jsonClass · 0.85
parseMethod · 0.45

Tested by

no test coverage detected