<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hey,<br></div><div class="gmail_default" style="font-family:monospace,monospace">this is a really great functionality !<br></div><div class="gmail_default" style="font-family:monospace,monospace">I wonder how much faster it is (you said about 10x, which is super cool).<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-05 10:26 GMT+02:00 Oscar Martinez Rubi <span dir="ltr"><<a href="mailto:o.rubi@esciencecenter.nl" target="_blank">o.rubi@esciencecenter.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We have added in liblas (master branch in github) two new tools that maybe useful for DB users:</p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span><u></u>las2pg: converts a LAS/LAZ into PostgreSQL binary dump format. It can be used for faster flat (1 point per row) data insertion in PostgreSQL. This is useful when you use flat tables for your point clouds (not recommended for large point
 clouds) of if you want to create pc_patches in a custom manner (other than what PDAL does). It is the alternative to making the insert with las2txt (essentially binary is faster than ASCII). Example of usage:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">psql -c "create table flat (x double precision, y double precision, z double precision, r integer, g integer, b integer, i integer)"<u></u><u></u></p>
<p class="MsoNormal">las2pg -i 1.2-with-color.laz --parse xyzRGBi --stdout | psql -c "copy flat from stdin with binary"<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p><u></u><span>-<span style="font:7.0pt "Times New Roman"">         
</span></span><u></u>las2col: similarly to las2pg, this tool converts a LAS/LAZ into binary columnar files to be imported in the column-store MonetDB (<a href="https://www.monetdb.org/" target="_blank">https://www.monetdb.org/</a>). Example of usage:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">las2col -i 1.2-with-color.laz -o out --parse XYZi<u></u><u></u></p>
<p class="MsoNormal">mclient <db_name> -s "create table flat (x decimal(8,2), y decimal(8,2), z decimal(8,2), i smallint)"<u></u><u></u></p>
<p class="MsoNormal">mclient <db_name> -s "COPY BINARY INTO flat FROM ('<full_parent_path>/out_col_x.dat','<full_parent_path>/out_col_y.dat','<full_parent_path>/out_col_z.dat','<full_parent_path>/out_col_i.dat')"<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If time permits, we will add similar writers in PDAL, so the same functionality is available through PDAL
<span style="font-family:"Segoe UI Emoji",sans-serif">😊</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Kind Regards,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">O.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">| 4th National eScience Symposium | Science in a Digital World |<br>
| 13 October 2016 | <a href="https://www.esciencecenter.nl/event/4th-national-escience-symposium" target="_blank">https://www.esciencecenter.nl/event/4th-national-escience-symposium</a> |
<br><span class="HOEnZb"><font color="#888888">
<br>
| Oscar Martinez Rubi | eScience Engineer | <a href="mailto:o.rubi@esciencecenter.nl" target="_blank">o.rubi@esciencecenter.nl</a> |<br>
| Netherlands eScience Center | <a href="http://www.esciencecenter.nl" target="_blank">http://www.esciencecenter.nl</a> | T +31 (0) 6-10363806 |</font></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><u></u> <u></u></span></p>
</div>
</div>

<br>_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pdal</a><br></blockquote></div><br></div>