28 releases
0.11.7 | Oct 22, 2024 |
---|---|
0.11.5 | Aug 27, 2024 |
0.11.2 | Jun 2, 2024 |
0.10.5 | Mar 18, 2024 |
0.4.0 | Mar 26, 2023 |
#267 in Geospatial
1,395 downloads per month
Used in e57-to-las
245KB
5.5K
SLoC
E57 Rust Library
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.
Changelog
Read the CHANGELOG.md file for a list of all released versions and their corresponding changes.
Known Limitations
- Does not support point grouping
- Does ignore 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
~175KB