<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 4, 2017 at 7:45 AM, Andrew Flatman <span dir="ltr"><<a href="mailto:anfla@sdfe.dk" target="_blank">anfla@sdfe.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="DA">
<div class="gmail-m_1905647970910988499WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)">Hi guys,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)">Both good ideas, my problem is if I set it to:
</span><span lang="EN-US" style="color:rgb(31,73,125)"> "dimensions": "band-1=Z, band-2=Classification"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)">I get: PDAL: filters.ferry: Can't ferry dimension 'band-2'. Dimension doesn't exist.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)">If I set it to: "dimensions": "band-1=Z, band-1=Classification"<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)">Then no elevations are passed to the LAS file, only classes.</span></p></div></div></blockquote><div><br></div><div>This is in my mind a bug in filters.ferry. There's no reason for it not to create multiple desitnation dimensions from a source dimension, or to create one from nothing.</div><div><br></div><div>I'll fix this shortly.</div><div><br></div><div>P.S. - Although it's kludgy, you can create a dimension by reading in a text file in addition to your tiff file. Just create a text file that has nothing in it but a header line. You can stick whatever dimensions you want in there. In your case, the file can just contain the text "Classification". So your pipeline would look like:</div><div><br></div><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)">{<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> "pipeline":[<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> "test.txt",</span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> {<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> "type": "readers.gdal",<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> "filename":"in.tif"<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> },<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="color:rgb(31,73,125);font-size:12.8px"> {</span><br></p><span class="gmail-im" style="font-size:12.8px"><p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)"> "type": "filters.assign",<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)"> "assignment" : "Classification[:]=2"<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="color:rgb(31,73,125)"> },<u></u><u></u></span></p></span><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> {<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> "type": "writers.las",<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> "filename": "out.las"<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span lang="EN-US" style="color:rgb(31,73,125)"> </span><span style="color:rgb(31,73,125)">}<u></u><u></u></span></p><p class="MsoNormal" style="font-size:12.8px"><span style="color:rgb(31,73,125)"> ]<u></u><u></u></span></p><div><span style="color:rgb(31,73,125);font-size:12.8px">}</span> <br></div><div><br></div></div>-- <br><div class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div></div>