<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 25, 2017, at 4:14 PM, Paul Schrum <<a href="mailto:paul.schrum@gmail.com" class="">paul.schrum@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">I need to read metadata from a successfully run PipelineExecutor instance.  I think I am doing this correctly, but I haven't been able to find any example code which does what I need to do.<br class=""><br class=""></div><div class="">Can someone advise me on this?<br class=""><br class=""></div><div class="">Here is my code.  The line I believe is not behaving the way I expect is 665, which I confirm by printing its validty at line 670, which prints 0, which means Not Valid.<br class=""></div><div class=""><br class=""><span style="font-family:monospace,monospace" class="">649    std::string pipeline_<br class="">650            pipelineJson::basicVectorMapReaderWriter(infile,outmap);<br class=""><br class=""></span></div><span style="font-family:monospace,monospace" class="">            // I can confirm the executor is valid and runs correctly<br class=""></span><div class=""><div class=""><span style="font-family:monospace,monospace" class="">653    auto plExecutor = new pdal::PipelineExecutor(pipeline_json);<br class=""><br class="">660    uint64_t pointCount = plExecutor->execute();<br class=""><br class="">663    pdal::MetadataNode root = plExecutor->getMetadata();<br class="">664    //auto root = plExecutor->getMetadata();<br class="">665    auto srsNode = root.findChild("srs");<br class="">666    <br class="">667    <br class="">668    auto val = srsNode.valid();<br class="">669    <br class="">670    cout << val << endl;<br class="">671    cout << "test" << endl;<br class=""></span><br class=""></div><div class="">Another note which may be helpful: when I change 668 to be<br class=""></div><div class=""><span style="font-family:monospace,monospace" class="">668    auto val = root.valid();</span><br class=""><br class=""></div><div class="">the validity prints 1, which indicates that it is valid.</div></div></div></div></blockquote><br class=""></div><div>print your node and see if there's anything there</div><div><br class=""></div><div>std::cout << root << std::endl;</div><div><br class=""></div><div>It's quite possible the srs node is empty.</div><div><br class=""></div><div>Howard</div><br class=""></body></html>