<div dir="ltr">This was a bug that I believe has been fixed. Either use the release version (1.3) or update to the latest contents of the master branch.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 8, 2016 at 9:42 AM, Mike Skaug <span dir="ltr"><<a href="mailto:mike.skaug@nsidc.org" target="_blank">mike.skaug@nsidc.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm working on a project where we are using pdal to ingest lidar data into a pgpointcloud enabled PostgreSQL database and then reading the data out into another format. At least that's the idea.<br>
<br>
We set up a simple pipeline to write the data into the database:<br>
{<br>
"pipeline":[<br>
"/data/ILATM1B.002/2013.03.20/<wbr>ILATM1B_20130320_141441.ATM4BT<wbr>4.h5",<br>
{<br>
"type": "filters.chipper",<br>
"capacity": 500<br>
},<br>
{<br>
"type":"writers.pgpointcloud",<br>
"connection":"host='valkyrie-d<wbr>b' dbname='valkyrie' user='valkyrie' password='valkyrie'",<br>
"table":"patches"<br>
}<br>
]<br>
}<br>
<br>
This reads a single file, chips it and writes it into the database. This works as expected.<br>
<br>
However, this pipeline taken almost verbatim from the example: <a href="http://www.pdal.io/stages/readers.pgpointcloud.html" rel="noreferrer" target="_blank">http://www.pdal.io/stages/read<wbr>ers.pgpointcloud.html</a>, which is intended to read the data out of the database, fails:<br>
<br>
{<br>
"pipeline":[<br>
{<br>
"type":"readers.pgpointcloud",<br>
"connection":"host='valkyrie-d<wbr>b' dbname='valkyrie' user='valkyrie' password='valkyrie'",<br>
"table":"patches",<br>
"column":"pa",<br>
"where":"PC_Explode(PC_Interse<wbr>ction(pa, 'SRID=4326;POLYGON((-160.000 80.000, -20.000 80.00, -20.000 85.000, -160.000 85.000, -160.000 80.000))'::geometry))"<br>
},<br>
{<br>
"type":"writers.text",<br>
"filename":"output.txt"<br>
}<br>
]<br>
}<br>
<br>
The error is `PDAL: JSON pipeline: Can't find file ' ' to open with 'readers.pgpointcloud'.`<br>
<br>
This seems to suggest that pdal is looking for an input file? Or might I get this error if it is not connecting to the database? (I assume that the database connection is fine because it is using the same `connection` option as the successful "writers.pgpointcloud" given above.)<br>
<br>
Thanks for any suggestions.<br>
--Mike<br>
______________________________<wbr>_________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/pdal</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>