Module pasture_io::las

source ·

Modules

  • Contains constants for possible named fields in a LASMetadata structure

Structs

Enums

Constants

Functions

  • Returns true if the given attribute is a known LAS point attribute. This function only checks the name of the known attributes and ignores the datatype, so a POSITION_3D attribute with datatype Vec3f32 is still considered to be a known LAS attribute (as pasture is able to perform type conversion).
  • Converts a las-rs Bounds type into a pasture-core bounding box (AABB<f64>)
  • Returns the best matching LAS point format for the given PointLayout. This method tries to match as many attributes as possible in the given PointLayout to attributes that are supported by the LAS format (v1.4) natively. Attributes that do not have a corresponding LAS attribute are ignored. If no matching attributes are found, LAS point format 0 is returned, as it is the most basic format.
  • Returns the offset to the first extra byte in the given LAS point format. Returns None if the format has no extra bytes
  • Converts a pasture-core bounding box (AABB<f64>) into a las-rs Bounds type
  • Tries to determine whether the given path represents a compressed LAZ file or an uncompressed LAS file
  • Returns a matching PointLayout for the given LASMetadata. This function is similar to point_layout_from_format, but also supports extra bytes if the given LASMetadata contains an Extra Bytes VLR. If it does not, but the point format in the LASMetadata indicates that extra bytes are present, the extra bytes will be included in the PointLayout as raw bytes
  • Returns the default PointLayout for the given LAS point format. If exact_binary_representation is true, the layout mirrors the binary layout of the point records in the LAS format, as defined by the LAS specification. This means:
  • Writes the given BitAttributes in LAS format to the given writer