#point-cloud #lidar #geospatial #data-points #scanner #read-write #laserscanning

e57

A pure Rust library for reading and writing E57 files with point clouds and related image data

23 releases (10 breaking)

new 0.11.1 Apr 22, 2024
0.10.5 Mar 18, 2024
0.10.3 Dec 6, 2023
0.10.2 Nov 8, 2023
0.4.0 Mar 26, 2023

#231 in Geospatial

Download history 48/week @ 2024-01-07 45/week @ 2024-01-14 1/week @ 2024-02-04 39/week @ 2024-02-11 207/week @ 2024-02-18 136/week @ 2024-02-25 108/week @ 2024-03-03 117/week @ 2024-03-10 145/week @ 2024-03-17 46/week @ 2024-03-24 107/week @ 2024-03-31 158/week @ 2024-04-07 116/week @ 2024-04-14

434 downloads per month
Used in e57-to-las

MIT license

230KB
5K SLoC

E57 Rust Library

Build Status Crates.io Documentation No Unsafe License: MIT Dependencies

A pure Rust library for reading and writing E57 files. No unsafe code, no bloaty dependencies.

Check out the tools folder for some code examples that show how to use the library.

E57 File Format

The E57 file format is used for storing point clouds and related image data. Its a neutral file format not tied to any specific vendor or device type and therefore often used as exchange format between different applications and organizations. Typically its used for data generated by terrestrial and handheld laser scanners. It can also handle data generated by airborn laser scanners, but for that use case the LAS/LAZ file format is more commonly used.

Known Limitations

  • Does not support Point Grouping
  • Does not support Index Packets
  • Does not support point attributes of type String

Please report incompatible files!

If you found an E57 file that can be read with other software but produces an error with this crate, please let me know and create an issue on Github. The same applies for E57 files that were created by this library and are not correctly read by this or any other software. I want this library to work with as many files and applications as possible!

Ideally, you can provide a link to the file itself. If that is not possible, please include the full error message and the name of the software that produced the file. If possible, please also include the XML section of the file.

Motivation

The E57 file format is well established for exchanging data produced by terrestrial lasers scanners. However, there are not many implementations that can read and write this file format. Most applications use the original C++ reference implementation (see http://www.libe57.org/) or the well maintained fork from Andy Maloney (see https://github.com/asmaloney/libE57Format).

I thought it would be nice to have a pure Rust solution without any unsafe code. In my opinion Rust is an excellent choice for parsers of untrusted data, especially if you plan to use the code in something like a cloud backend.

If you want to handle E57 files inside a Rust project this crate will also avoid all the issues that come with integrating C++ code.

Code Coverage

The Visual Studio Code tasks included in this repository contain some tasks for code coverage measurement. To be able to run them, you need to install grcov with the command cargo install grcov and the LLVM tools by running rustup component add llvm-tools.

Dependencies

~170KB