gwlucastrig / Tinfour

Delaunay and Constrained Delaunay Triangulations in Java, providing high-performance utilities for modeling surfaces with support for Lidar LAS files, Digital Elevation Models (DEM), finite element analysis, path planning, natural neighbor interpolation, and other applications of Triangulated Irregular Networks (TIN)
Apache License 2.0
158 stars 34 forks source link

Add Lidar file access methods for Variable Length Records #49

Closed gwlucastrig closed 4 years ago

gwlucastrig commented 4 years ago

When it opens a Lidar file, the LasFileReader class reads the headers for variable length records (VLR). It provides an access method to get a list of those records, but no access methods to get their content.

Please extend the class to correct this (rather silly) omission.

Note: I propose to provide a method that will return an array of bytes giving the content of the VLR. Currently, there is no handling is in place for the LAS file specification's "extended variable length record" format (EVLR). Because the content for a EVLR can be so large (potentially multiple gigabytes), reading it straight into memory is probably not the best solution. Also, I have no sample files that contain EVLRs for testing purposes. So extended variable length records will not be included in this issue.

gwlucastrig commented 4 years ago

Access method added to LasFileReader. This issue is now closed.