Function pasture_io::las::point_layout_from_las_point_format[][src]

pub fn point_layout_from_las_point_format(
    format: &Format
) -> Result<PointLayout>

Returns the default PointLayout for the given LAS point format. This layout mirrors the binary layout of the point records in the LAS format, as defined by the LAS specification. The notable exception are the X, Y, and Z fields, which are combined into a single POSITION_3D attribute with f64 datatype, instead of three separate fields with i32 datatype. The reason for this is usability: Positions more often than not are treated as a single semantic unit instead of individual components. The shift from i32 to f64 is the result of how LAS stores positions internally (normalized to integer values within the bounding box of the file). The true positions are reconstructed from the internal representation automatically as f64 values.

Errors

Returns an error if format is an invalid LAS point format