<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" 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>   - kernels.info</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_greedyprojection.lib</div>
<div>libpdal_plugin_filter_gridprojection.lib</div>
<div>libpdal_plugin_filter_hexbin.lib</div>
<div>libpdal_plugin_filter_icp.lib</div>
<div>libpdal_plugin_filter_movingleastsquares.lib</div>
<div>libpdal_plugin_filter_pclblock.lib</div>
<div>libpdal_plugin_filter_poisson.lib</div>
<div>libpdal_plugin_filter_voxelgrid.lib</div>
<div>libpdal_plugin_kernel_density.lib</div>
<div>libpdal_plugin_kernel_pcl.lib</div>
<div>libpdal_plugin_kernel_smooth.lib</div>
<div>libpdal_plugin_reader_greyhound.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_pgpointcloud.lib</div>
<div>libpdal_plugin_reader_sqlite.lib</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_pgpointcloud.lib</div>
<div>libpdal_plugin_writer_sqlite.lib</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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Andrew Bell <andrew.bell.ia@gmail.com><br>
<b>Gesendet:</b> Dienstag, 08. August 2017 12:47:05<br>
<b>An:</b> Es Kay<br>
<b>Cc:</b> pdal@lists.osgeo.org<br>
<b>Betreff:</b> Re: [pdal] PDAL and PCL</font>
<div> </div>
</div>
<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="gmail-m_8826042176997270652divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>Hi guys,</p>
<p><span style="font-family:"Courier New",monospace;font-size:12pt">Stage *writer = factory.createStage("writers.</span><wbr style="font-family:"Courier New",monospace;font-size:12pt"><span style="font-family:"Courier New",monospace;font-size:12pt">pcd");</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_<wbr>base_types<pdal::Stage * __ptr64,std::allocator<pdal::<wbr>Stage * __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>
<div><span style="font-family:Calibri,Helvetica,sans-serif;color:rgb(0,0,0);font-size:12pt"><br>
</span></div>
<div>-- <br>
</div>
</div>
<div class="gmail_signature">Andrew Bell<br>
<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>
</div>
</div>
</body>
</html>