<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 2, 2021 at 6:16 PM Scott Crawford <<a href="mailto:scrawford@gno-sys.com">scrawford@gno-sys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-CA" style="overflow-wrap: break-word;">
<div class="gmail-m_210020524286034255WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">A</span></p>
<p class="MsoNormal"><span lang="EN-US">First question, the example has the comment “Set second argument to 'true' to let factory take ownership of stage and facilitate clean up.” But the command that follows doesn’t allow a second argument, is this just an
error in the example or leftover from an old version of pdal, or did I miss something?</span></p></div></div></blockquote><div><br></div><div>Not sure what you're looking at. You're welcome to submit a PR if things are wrong.</div><div><br></div><div>A StageFactory owns the stages created with it. Normally you just keep the factory around until the end and it will take the stage with it when it is destroyed.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-CA" style="overflow-wrap: break-word;"><div class="gmail-m_210020524286034255WordSection1"><p class="MsoNormal"><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Second question, the example uses a StageFactory to create a “writers.las” stage. I’ve also found that I could just use a LasWriter instead. Any reason to prefer one style over the other?</span></p></div></div></blockquote><div><br></div><div>Either way is fine. If you use the StageFactory to create a stage by name, you don't need the header file for the stage. This can be useful in some cases.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-CA" style="overflow-wrap: break-word;"><div class="gmail-m_210020524286034255WordSection1"><p class="MsoNormal"><span lang="EN-US"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there any way to stream the writing?</span></p></div></div></blockquote><div><br></div><div>Some stages support streaming and this is noted in the documentation for each stage. You can control how many points are processed at once when using streaming by setting the size of the FixedPointTable (or similar). There are many examples in the tests and the code itself.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-CA" style="overflow-wrap: break-word;"><div class="gmail-m_210020524286034255WordSection1"><p class="MsoNormal"><span lang="EN-US"> Or is that only possible when working with a pipeline?
I’ve seen classes like FixedPointTable used elsewhere, but there’s no documentation on this class or how to make use of it. And I see the BufferReader used to read the Point Table is not streamable, but it is the only option or are there other ways to pull
from the point table in a streaming fashion?</span></p></div></div></blockquote><div><br></div><div>The BufferReader is only useful for non-streaming (standard) mode. Without knowing more about exactly what you're trying to do, it's hard to provide any recommendations.</div><div><br></div><div>--<br></div></div><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div></div>