[pdal] PDAL and PCL

Andrew Bell andrew.bell.ia at gmail.com
Wed Aug 16 04:14:23 PDT 2017


Yes. Take a look at the code in plugins/pcl/filters/PCLBlock.cpp and
plugins/pcl/PCLConversions.hpp

On Wed, Aug 16, 2017 at 5:34 AM, Es Kay <fransinn at msn.com> wrote:

> I had no dll files in my lib folder. So I copied them from the bin to the
> lib folder and now it works.
> Thanks for that.
>
>
> 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.
>
>
> Best regards
>
> fransinn
>
>
> ------------------------------
> *Von:* Andrew Bell <andrew.bell.ia at gmail.com>
> *Gesendet:* Dienstag, 08. August 2017 15:30:13
> *An:* Es Kay
> *Cc:* pdal at lists.osgeo.org
> *Betreff:* Re: [pdal] PDAL and PCL
>
> 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.
>
> On Tue, Aug 8, 2017 at 9:48 AM, Es Kay <fransinn at msn.com> wrote:
>
>> Thanks Andrew!
>>
>>
>> Indeed, createStage() returns a NULL-pointer.
>>
>> The output of pdal --debug is:
>>
>>
>> (PDAL Debug) Loading plugins from directory .
>> (PDAL Debug) Loading plugins from directory C:/Scratch/Libraries/pdal/lib
>>    - kernels.delta
>>    - kernels.diff
>>    - kernels.ground
>>    - kernels.hausdorff
>>    - kernels.info
>>    - kernels.merge
>>    - kernels.pipeline
>>    - kernels.random
>>    - kernels.sort
>>    - kernels.split
>>    - kernels.tindex
>>    - kernels.translate
>>
>> and the listed directory contains following lib-files:
>>
>>
>> libpdal_plugin_filter_greedyprojection.lib
>> libpdal_plugin_filter_gridprojection.lib
>> libpdal_plugin_filter_hexbin.lib
>> libpdal_plugin_filter_icp.lib
>> libpdal_plugin_filter_movingleastsquares.lib
>> libpdal_plugin_filter_pclblock.lib
>> libpdal_plugin_filter_poisson.lib
>> libpdal_plugin_filter_voxelgrid.lib
>> libpdal_plugin_kernel_density.lib
>> libpdal_plugin_kernel_pcl.lib
>> libpdal_plugin_kernel_smooth.lib
>> libpdal_plugin_reader_greyhound.lib
>> libpdal_plugin_reader_nitf.lib
>> libpdal_plugin_reader_oci.lib
>> libpdal_plugin_reader_pcd.lib
>> libpdal_plugin_reader_pgpointcloud.lib
>> libpdal_plugin_reader_sqlite.lib
>> libpdal_plugin_writer_nitf.lib
>> libpdal_plugin_writer_oci.lib
>> libpdal_plugin_writer_pcd.lib
>> libpdal_plugin_writer_pgpointcloud.lib
>> libpdal_plugin_writer_sqlite.lib
>> pdal_arbiter.lib
>> pdal_boost.lib
>> pdal_jsoncpp.lib
>> pdal_util.lib
>> pdalcpp.lib
>>
>> 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.
>>
>>
>>
>> ------------------------------
>> *Von:* Andrew Bell <andrew.bell.ia at gmail.com>
>> *Gesendet:* Dienstag, 08. August 2017 12:47:05
>> *An:* Es Kay
>> *Cc:* pdal at lists.osgeo.org
>> *Betreff:* Re: [pdal] PDAL and PCL
>>
>> On Mon, Aug 7, 2017 at 11:37 AM, Es Kay <fransinn at msn.com> wrote:
>>
>>> Hi guys,
>>>
>>> Stage *writer = factory.createStage("writers.pcd");
>>>
>>>
>>> I get a bad alloc when setting the input (writer->setInput(reader);)
>>> std::_Vector_alloc<std::_Vec_base_types<pdal::Stage *
>>> __ptr64,std::allocator<pdal::Stage * __ptr64> > >::_Mylast(...) hat
>>> 0x78 zurückgegeben
>>>
>>>
>>> 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).
>>>
>>
>> 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")
>>
>> --
>> Andrew Bell
>> andrew.bell.ia at gmail.com
>>
>
>
>
> --
> Andrew Bell
> andrew.bell.ia at gmail.com
>



-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pdal/attachments/20170816/552339a5/attachment.html>


More information about the pdal mailing list