<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><br>WITH filtered_patch AS ( -- filter patch so they only contain points with relevant class<br>SELECT <strong>PC_FilterEquals(your_patch_column, 'Class', your_class_value)as f_patch<br></strong></div><div class="gmail_default" style="font-family:monospace,monospace"><strong>FROM your_patch_table<br>)<br></strong></div><div class="gmail_default" style="font-family:monospace,monospace"><strong>SELECT point<br></strong></div><div class="gmail_default" style="font-family:monospace,monospace"><strong>FROM </strong>filtered_patch, pc_explode(f_patch) AS point<br>...<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">Cheers,<br></div><div class="gmail_default" style="font-family:monospace,monospace">Rémi-C<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-25 4:33 GMT+02:00 Adam Steer <span dir="ltr"><<a href="mailto:Adam.Steer@anu.edu.au" target="_blank">Adam.Steer@anu.edu.au</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rémi<br>
<span class=""><br>
><br>
> Are you sure you use pc_patch(your set of points) before inserting anything?<br>
> It does not look to be the cas ein your sql example.<br>
<br>
</span>For my manual example, no. This would explain the wrong wkb size!<br>
<br>
However, in the PDAL pipeline I just followed what examples I can find and assume PDAL handles conversion to patches.<br>
<br>
As mentioned, If I don’t pre set a PCID, I can ingest data. The invented schema has all the (16) data fields in my .LAS files, but you need to read the schema to figure out where everything gets put.<br>
<br>
I wonder, if I pre-determine the PCID in the PDAL pipeline -  should I use the ‘SQL before’ option in PDAL’s pipeline to convert points to patches? I haven’t tried to test this yet.<br>
<br>
…now on to the next part! how to select points by classification from postgis-pointcloud. I better work on my SQL skills (among others)<br>
<br>
Thanks again<br>
<span class="HOEnZb"><font color="#888888">Adam<br>
<br>
<br>
</font></span></blockquote></div><br></div>