<div dir="ltr"><div>Hello Howard,</div><div><br></div><div>I apologize for the stupid question. <br></div><div><br></div><div>How is the scale value dependent on the resolution of the coordinates. Isn't the data type for coordinates double?</div><div>I see in the help file "written value = (nominal value - offset) / scale". so does this mean the written value is changed from double to integer when it is being written to file?</div><div>Also, Is it limited to PDAL or LAS files in general.</div><div><br></div><div>Warm Regards,</div><div>Thejus</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 9, 2019 at 7:41 AM Howard Butler <<a href="mailto:howard@hobu.co">howard@hobu.co</a>> wrote:<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 style="overflow-wrap: break-word;"><br><div><br><blockquote type="cite"><div>On May 9, 2019, at 7:25 AM, thejus kambi <<a href="mailto:thejus.kambi@gmail.com" target="_blank">thejus.kambi@gmail.com</a>> wrote:</div><br class="gmail-m_5195245003830178527Apple-interchange-newline"><div><div dir="ltr"><div>Hello,</div><div><br></div><div>Is there a way to modify the resolution of coordinates stored in the LAS/LAZ files. I find currently the file stores upto 2 decimal places. Is there a way to increase or decrease it?</div><div><br></div></div></div></blockquote><br></div><div>Thejus,</div><div><br></div><div>You control these with the writers.las.scale_{x|y|z} options of writers.las <a href="https://pdal.io/stages/writers.las.html" target="_blank">https://pdal.io/stages/writers.las.html</a> Additionally, if you are working exclusively with LAS data, you might also issue the --writers.las.forward=all option to carry forward all metadata, including scale/offset from a single file transformation.</div><div><br></div><div><blockquote type="cite"><div>pdal translate in.las out.las --writers.las.scale_x=0.001 --writers.las.scale_y=0.001 --writers.las.scale_z=0.001 --writers.las.offset_x=auto --writers.las.offset_y=auto --writers.las.offset_z=auto</div></blockquote><div><div><br></div></div></div><div><blockquote type="cite">pdal translate in.las out.las --writers.las.forward=all</blockquote><br></div><div>There are a couple of reasons why we do not default these options to always being set:</div><div><br></div><div>* What are we to do if the translation includes multiple files at once?</div><div>* Ambiguities that result from changing the LAS version</div><div>* What are we to do in situations where multiple LAS files are being written?</div><div><br></div><div>It is a surprise, but users have to be explicit about their LAS metadata settings with PDAL. Once they are, they should be able to achieve most everything they need.</div><div><br></div><div>Additionally, I wrote a tutorial of these issues on the website at <a href="https://pdal.io/tutorial/las.html" target="_blank">https://pdal.io/tutorial/las.html</a></div><div><br></div><div>Hope this helps,</div><div><br></div><div>Howard</div><div><br></div><br></div></blockquote></div>