<div dir="ltr"><div class="gmail_quote" style="font-size:12.8px"><span class="gmail-im">On Wed, Oct 4, 2017 at 6:54 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_-4706116492779742750m_-3762619512429593186WordSection1"><p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I am reading a DEM from a tiff file and writing it as las. My problem is that I cannot set the class. I have tried adding the dimension Classification in the filter.ferry part:<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">    {<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">        "type": "filters.ferry",<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">        "dimensions": "band-1=Z, 2=Classification"<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">    },<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Which gives the error: PDAL: filters.ferry: Can't ferry dimension '2'. Dimension doesn't exist.</span></p></div></div></blockquote><div><br></div></span><div>The bands are named "band-1", "band-2", "band-3" and so on.  "band-2=Classification" should get you what you want. The assignment below should then work.</div><span class="gmail-im"><div><br></div><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_-4706116492779742750m_-3762619512429593186WordSection1"><p class="MsoNormal"><span lang="EN-US"> </span>I have also tried assigning the classification using the filter.assign:</p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">    {<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">          "type":"filters.assign",<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">          "assignment" : "Classification[:]=2"<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">    },</span></p></div></div></blockquote><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_-4706116492779742750m_-3762619512429593186WordSection1"><p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Which gives the error:  PDAL: filters.assign: Invalid dimension name in 'values' option: 'Classification'.</span></p></div></div></blockquote><div><br></div></span><div>You can't assign to a dimension that doesn't exist.</div></div><div class="gmail-yj6qo gmail-ajU" style="margin:2px 0px 0px;font-size:12.8px"><div id="gmail-:1rp" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style="opacity: 0.3;"></div></div><div class="gmail_extra">-- <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></div>