[pdal] Writers.copc changes global encoding

jukka.rahkonen at latuviitta.fi jukka.rahkonen at latuviitta.fi
Mon Mar 23 12:41:28 PDT 2026


Hi,

I had my first trials with PDAL and COPC but something seems to go wrong 
with global encoding.
My PDAL version is pdal 2.10.0 (git-version: Release). Lasinfo about my 
source data shows

lasinfo (260311) report for 'M4131D2_1.las'
reporting all LAS header entries:
   file signature:             'LASF'
   file source ID:             0
   global_encoding:            17
   project ID GUID data 1-4:   00000000-0000-0000-0000-000000000000
   version major.minor:        1.4
   system identifier:          'LAStools (c) by rapidlasso GmbH'
   generating software:        'las2las64 (version 231227)'

My pipeline is simply

[
"M4131D2_1.las",
     {
         "type":"writers.copc",
         "filename":"M4131D2_1_pdal.copc.laz"
     }
]

And lasinfo shows for me

lasinfo (260311) report for 'M4131D2_1_pdal.copc.laz'
reporting all LAS header entries:
   file signature:             'LASF'
   file source ID:             0
   global_encoding:            16
   project ID GUID data 1-4:   00000000-0000-0000-0000-000000000000
   version major.minor:        1.4
   system identifier:          'PDAL'
   generating software:        'PDAL 2.10.0 (Releas)'

Because global_encoding has changed from 17 into 16, check with 
lasvalidate fails:

  <fail>
         <variable>global encoding</variable>
         <note>unset bit 0 suggests GPS week time but GPS time ranges 
from 433432315.217674 to 433434074.507472</note>
  </fail>

The error disappears if I add "forward":"all" into the pipeline but 
shouldn't the global_encoding value remain the same even without?

-Jukka Rahkonen-


More information about the pdal mailing list