[pdal] pgpointcloud selector filter and max_capacity

Oscar Martinez Rubi o.martinezrubi at tudelft.nl
Wed Feb 4 05:37:43 PST 2015


Hi,

About the capacity I found out that i need to specify the capacity in 
both writter and chipper.

Still do not know how to select only x,y,z?

I was also trying to use scale_x,y,z but it crashes when inserting the 
patch. Did somebody managed to do this?

My XML looked like this:

<?xml version="1.0" encoding="utf-8"?>
<Pipeline version="1.0">
     <Writer type="writers.pgpointcloud">
         <Option name="connection">
              dbname='pf20' user='oscar'
         </Option>
         <Option name="table">patches</Option>
         <Option name="compression">dimensional</Option>
         <Option name="capacity">3000</Option>
         <Option name="srid">28992</Option>
         <Option name="scale_x">0.01</Option>
         <Option name="scale_y">0.01</Option>
         <Option name="scale_z">0.01</Option>
         <Filter type="filters.chipper">
             <Option name="capacity">3000</Option>
             <Reader type="readers.las">
                 <Option 
name="filename">/home/oscar/ahn_minibench.laz</Option>
                 <Option name="spatialreference">EPSG:28992</Option>
             </Reader>
         </Filter>
     </Writer>
</Pipeline>

Thanks,

O.



On 04-02-15 10:37, Oscar Martinez Rubi wrote:
> Hi,
>
> After 1.5 years using an old PDAL installation I convinced myself to 
> try the latest one.
>
> The first issue I encountered is that since a while ago, PDAL uses 
> c++11 features, and the gcc that comes with CentOS 6 was not happy 
> with that, so I had to install a newer gcc from source (4.8) in order 
> to make it compile. Also I had to use boost 1.55 (1.57 was also giving 
> some problems)
>
> I use PDAL to load in postgres,so I use the pgpointcloud plugin. In 
> the latest PDAL I miss a couple of things that I can not find anymore:
>
> 1 - The selector filter. I only want to load X, Y and Z. How can I do 
> that in current PDAL?
> 2 - There seems to be a hardcoded maximum of 400 points per patch in 
> the pgpointcloud writer. I know that is the recommended patch size but 
> for massive point clouds I use larger number which use to be possible 
> with older PDALs but not anymore.
>
> Thanks!
>
> Regards,
>
> Oscar
> _______________________________________________
> pdal mailing list
> pdal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/pdal



More information about the pdal mailing list