<div dir="ltr">Yes. Take a look at the code in plugins/pcl/filters/PCLBlock.cpp and plugins/pcl/PCLConversions.hpp</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 16, 2017 at 5:34 AM, Es Kay <span dir="ltr"><<a href="mailto:fransinn@msn.com" target="_blank">fransinn@msn.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-2136310369554036106divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<div id="m_-2136310369554036106divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p>I had no dll files in my lib folder. So I copied them from the bin to the lib folder and now it works.<br>
Thanks for that.</p>
<p><br>
</p>
<p>Instead of converting a binary las to a pcd file, I was wondering if pdal provides any tools to convert a pdal point view to a pcl point cloud pointer directly inside the c++ application.</p>
<p><br>
</p>
<p>Best regards</p>
<p>fransinn</p>
<p></p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-2136310369554036106divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>><br>
<b>Gesendet:</b> Dienstag, 08. August 2017 15:30:13<br>
<b>An:</b> Es Kay<br>
<b>Cc:</b> <a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<b>Betreff:</b> Re: [pdal] PDAL and PCL</font>
<div> </div>
</div>
<div>
<div dir="ltr">Are there dll's in the directory C:/Scratch/Libraries/pdal/lib as well as the .lib's?  .libs aren't loadable.  The build process should create .dll files suitable for use as plugins.
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Aug 8, 2017 at 9:48 AM, Es Kay <span dir="ltr"><<a href="mailto:fransinn@msn.com" target="_blank">fransinn@msn.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div id="m_-2136310369554036106m_-2359771443725002692divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p>Thanks Andrew!</p>
<p><br>
</p>
<p>Indeed, createStage() returns a NULL-pointer.</p>
<p>The output of pdal --debug is:</p>
<p><br>
</p>
<p></p>
<div>(<span style="font-size:12pt">PDAL Debug) Loading plugins from directory .</span></div>
<div>(PDAL Debug) Loading plugins from directory C:/Scratch/Libraries/pdal/lib</div>
<div>   - kernels.delta</div>
<div>   - kernels.diff</div>
<div>   - kernels.ground</div>
<div>   - kernels.hausdorff</div>
<div>   - <a href="http://kernels.info" target="_blank">kernels.info</a></div>
<div>   - kernels.merge</div>
<div>   - kernels.pipeline</div>
<div>   - kernels.random</div>
<div>   - kernels.sort</div>
<div>   - kernels.split</div>
<div>   - kernels.tindex</div>
<div>   - kernels.translate</div>
<div><br>
</div>
and the listed directory contains following lib-files:
<p></p>
<p><br>
</p>
<div>libpdal_plugin_filter_greedypr<wbr>ojection.lib</div>
<div>libpdal_plugin_filter_gridproj<wbr>ection.lib</div>
<div>libpdal_plugin_filter_hexbin.l<wbr>ib</div>
<div>libpdal_plugin_filter_icp.lib</div>
<div>libpdal_plugin_filter_movingle<wbr>astsquares.lib</div>
<div>libpdal_plugin_filter_pclblock<wbr>.lib</div>
<div>libpdal_plugin_filter_poisson.<wbr>lib</div>
<div>libpdal_plugin_filter_voxelgri<wbr>d.lib</div>
<div>libpdal_plugin_kernel_density.<wbr>lib</div>
<div>libpdal_plugin_kernel_pcl.lib</div>
<div>libpdal_plugin_kernel_smooth.l<wbr>ib</div>
<div>libpdal_plugin_reader_greyhoun<wbr>d.lib</div>
<div>libpdal_plugin_reader_nitf.lib</div>
<div>libpdal_plugin_reader_oci.lib</div>
<div>libpdal_plugin_reader_pcd.lib</div>
<div>libpdal_plugin_reader_pgpointc<wbr>loud.lib</div>
<div>libpdal_plugin_reader_sqlite.l<wbr>ib</div>
<div>libpdal_plugin_writer_nitf.lib</div>
<div>libpdal_plugin_writer_oci.lib</div>
<div>libpdal_plugin_writer_pcd.lib</div>
<div>libpdal_plugin_writer_pgpointc<wbr>loud.lib</div>
<div>libpdal_plugin_writer_sqlite.l<wbr>ib</div>
<div>pdal_arbiter.lib</div>
<div>pdal_boost.lib</div>
<div>pdal_jsoncpp.lib</div>
<div>pdal_util.lib</div>
<div>pdalcpp.lib</div>
<br>
<p></p>
<p>So to me, it seems okay so far, right? Interestingly, pdal --drivers is missing some others as well, e.g. *.oci, *.pgpointcloud, *.poisson etc. However, it is listed when I navigate to the pdal bin folder.<br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-2136310369554036106m_-2359771443725002692divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>><br>
<b>Gesendet:</b> Dienstag, 08. August 2017 12:47:05<br>
<b>An:</b> Es Kay<br>
<b>Cc:</b> <a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<b>Betreff:</b> Re: [pdal] PDAL and PCL</font>
<div> </div>
</div>
<div>
<div class="m_-2136310369554036106h5">
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Aug 7, 2017 at 11:37 AM, Es Kay <span dir="ltr">
<<a href="mailto:fransinn@msn.com" target="_blank">fransinn@msn.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div id="m_-2136310369554036106m_-2359771443725002692gmail-m_8826042176997270652divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p>Hi guys,</p>
<p><span style="font-family:"Courier New",monospace;font-size:12pt">Stage *writer = factory.createStage("writers.</span><span style="font-family:"Courier New",monospace;font-size:12pt">p<wbr>cd");</span><br>
</p>
<p><span><br>
</span></p>
<p><span>I get a bad alloc when setting the input (writer-><span>setInput(reader);</span>)<br>
<span style="font-family:"Courier New",monospace">std::_Vector_alloc<std::_Vec_b<wbr>ase_types<pdal::Stage * __ptr64,std::allocator<pdal::S<wbr>tage * __ptr64> > >::_Mylast(...) hat 0x78 zurückgegeben</span><br>
</span></p>
<p><span><span style="font-family:"Courier New",monospace"><span style="font-family:Arial,Helvetica,sans-serif"></span><br>
</span></span></p>
<span style="font-family:Calibri,Helvetica,sans-serif">When I type in pdal --drivers, the pcd writers and readers do not appear, although dll-files exist in the bin-folder (the drivers appear when navigated to bin folder in powershell).</span></div>
</div>
</blockquote>
<div><br>
</div>
<div>If the drivers aren't shown with pdal --drivers, they can't be found by the plugin manager.  My assumption is that createStage() is returning 0.  You can run pdal --debug to show information about the plugin loading process and verify which directories
 are being searched for plugins.  You can also set the environment variable PDAL_DRIVER_PATH to override the default locations ( ".", "./lib", "../lib", "./bin", "../bin")</div><span class="HOEnZb"><font color="#888888">
<div><span style="font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);font-size:12pt"><br>
</span></div>
<div>-- <br>
</div>
</font></span></div><span class="HOEnZb"><font color="#888888">
<div class="m_-2136310369554036106m_-2359771443725002692gmail_signature">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="m_-2136310369554036106gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</font></span></div>
</div>
</div>
</div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>