pub struct E57Reader<T: Read + Seek> { /* private fields */ }Expand description
Main interface for reading E57 files.
Implementations§
source§impl<T: Read + Seek> E57Reader<T>
impl<T: Read + Seek> E57Reader<T>
sourcepub fn format_name(&self) -> &str
pub fn format_name(&self) -> &str
Returns format name stored in the XML section.
sourcepub fn library_version(&self) -> Option<&str>
pub fn library_version(&self) -> Option<&str>
Returns the library version string of the root XML section.
sourcepub fn extensions(&self) -> Vec<Extension>
pub fn extensions(&self) -> Vec<Extension>
Returns a list of all extensions defined in this file.
sourcepub fn pointclouds(&self) -> Vec<PointCloud>
pub fn pointclouds(&self) -> Vec<PointCloud>
Returns a list of all point cloud descriptors in the file.
sourcepub fn pointcloud_simple(
&mut self,
pc: &PointCloud,
) -> Result<PointCloudReaderSimple<'_, T>>
pub fn pointcloud_simple( &mut self, pc: &PointCloud, ) -> Result<PointCloudReaderSimple<'_, T>>
Returns an iterator for reading point cloud data. The data provided by this interface is already normalized for convenience. There is also a raw iterator for advanced use-cases that require direct access.
sourcepub fn pointcloud_raw(
&mut self,
pc: &PointCloud,
) -> Result<PointCloudReaderRaw<'_, T>>
pub fn pointcloud_raw( &mut self, pc: &PointCloud, ) -> Result<PointCloudReaderRaw<'_, T>>
Returns an iterator for reading raw low level point cloud data. This provides access to the original values stored in the E57 file. This interface is only recommended for advanced use-cases. In most scenarios the simple iterator is the better choice.
sourcepub fn blob(&mut self, blob: &Blob, writer: &mut dyn Write) -> Result<u64>
pub fn blob(&mut self, blob: &Blob, writer: &mut dyn Write) -> Result<u64>
Reads the content of a blob and copies it into the supplied writer. Returns the number of written bytes.
sourcepub fn creation(&self) -> Option<DateTime>
pub fn creation(&self) -> Option<DateTime>
Returns the optional creation date and time of the file.
sourcepub fn coordinate_metadata(&self) -> Option<&str>
pub fn coordinate_metadata(&self) -> Option<&str>
Returns the optional coordinate system metadata of the file.
This should contain a Coordinate Reference System that is specified by a string in a well-known text format for a spatial reference system, as defined by the Coordinate Transformation Service specification developed by the Open Geospatial Consortium. See also: https://www.ogc.org/standard/wkt-crs/
sourcepub fn validate_crc(reader: T) -> Result<u64>
pub fn validate_crc(reader: T) -> Result<u64>
Iterate over an reader to check an E57 file for CRC errors.
This standalone function does only the minimal parsing required to get the E57 page size and without any other checks or validation. After that it will CRC-validate the whole file. It will not read or check any other file header and XML data! This method returns the page size of the E57 file.
sourcepub fn raw_xml(reader: T) -> Result<Vec<u8>>
pub fn raw_xml(reader: T) -> Result<Vec<u8>>
Returns the raw unparsed binary XML data of the E57 file as bytes.
This standalone function does only the minimal parsing required to get the XML section without any other checks or any other validation than basic CRC ckecking for the XML section itself.