Struct las::Builder

source ·
pub struct Builder {
Show 15 fields pub date: Option<Date<Utc>>, pub file_source_id: u16, pub generating_software: String, pub gps_time_type: GpsTimeType, pub guid: Uuid, pub has_synthetic_return_numbers: bool, pub padding: Vec<u8>, pub point_format: Format, pub point_padding: Vec<u8>, pub system_identifier: String, pub transforms: Vector<Transform>, pub version: Version, pub vlr_padding: Vec<u8>, pub vlrs: Vec<Vlr>, pub evlrs: Vec<Vlr>, /* private fields */
}
Expand description

Builds headers.

Fields§

§date: Option<Date<Utc>>

The date of file creation.

§file_source_id: u16

The file source id, sometimes the flight line.

§generating_software: String

The software that created this file.

§gps_time_type: GpsTimeType

The type of gps time, either week or standard.

§guid: Uuid

A globally unique identifier.

§has_synthetic_return_numbers: bool

Are the return numbers in this file syntheetic?

§padding: Vec<u8>

Bytes after the header but before the vlrs.

§point_format: Format

The format that the points will be written in.

§point_padding: Vec<u8>

The bytes after the points but before any evlrs.

Discouraged.

§system_identifier: String

The system that generated the points.

§transforms: Vector<Transform>

The scale and offset that will be used to convert coordinates to i16s to write in the file.

§version: Version

The las version.

§vlr_padding: Vec<u8>

The bytes after the vlrs but before the points.

§vlrs: Vec<Vlr>

The variable length records.

§evlrs: Vec<Vlr>

The extended variable length records.

Implementations§

Creates a new builder from a raw header.

Examples
use las::Builder;
let builder = Builder::new(Default::default()).unwrap();

Converts this builder into a Header.

Examples
use las::Builder;
let header = Builder::new(Default::default()).unwrap().into_header().unwrap();

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.