gadomski / las-rs

Read and write ASPRS las files, Rust edition.
MIT License
73 stars 32 forks source link

Allow zero GPS Time values #74

Closed gadomski closed 6 months ago

gadomski commented 6 months ago
          > Any thoughts on how to best handle files like this?

Well, if you're not using the `gps_time` field, it doesn't seem like a critical problem. In fact, the LAS 1.4 doc says that:

> For Aggregate Model Systems, the GPS Time should be set to zero unless assigned from a compo-
nent measurement.

(Aggregate Model Systems are, e.g., photogrammetrically-derived point clouds).

So I think this library should allow zero values through and _not_ set them to `None`, which _should_ resolve the header/point format mismatch.

Originally posted by @gadomski in https://github.com/gadomski/las-rs/issues/73#issuecomment-2041458243