<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.pl-c1
        {mso-style-name:pl-c1;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I have noticed a slight inconsistency between the docs and the functionality of las.writer and now wondering which one is wrong.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">On <a href="http://www.pdal.io/stages/writers.las.html">http://www.pdal.io/stages/writers.las.html</a> it says that the default value of the option minor_version is 3, but in reality when you do a ‘pdal translate’ without specifying any
 options you get a las/laz file with format version 1.2. The source code confirms this in line 69 of io\las\LasWriter.cpp:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-indent:36.0pt">m_minorVersion.setDefault(2);<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:Consolas;color:#333333;background:white"><o:p> </o:p></span></p>
<p class="MsoNormal">It’s a minor detail, just wondering if the docs or the code needs to be changed. Was it the intention to write las-files with minor_version=3? I’ll do a pull request with a fix once I know if the docs or the code is correct. Personally
 I think that the default minor_version should be 3, as it says in the docs.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#004080">Kristian Evers</span></b><span style="font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#004080">
<br>
Geophysicist</span><span style="font-size:8.0pt"> </span><span style="font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#004080"><br>
Geographical references</span><span style="font-size:8.0pt"> <u><span style="color:blue"><br>
</span></u></span><span lang="DA" style="font-size:8.0pt;font-family:"Tahoma","sans-serif""><a href="mailto:kreve@gst.dk"><span lang="EN-US" style="color:blue">kreve@gst.dk</span></a></span><span style="font-size:8.0pt;font-family:"Tahoma","sans-serif";color:#004080"><br>
<br>
Danish Ministry of Energy, Utilities and Climate<br>
Agency for Data Supply and Efficiency</span><span style="font-size:8.0pt;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>