pub fn initialize_using_file<'a>(file_name: &'a str, input: &'a LasFile) -> LasFile {
        let mut output = LasFile {
            file_name: file_name.to_string(),
            ..Default::default()
        };
        output.file_mode = "w".to_string();
        output.use_point_intensity = true;
        output.use_point_userdata = true;

        output.add_header(input.header.clone());

        // Copy the VLRs
        for i in 0..(input.header.number_of_vlrs as usize) {
            output.add_vlr(input.vlr_data[i].clone());
        }

        output
    }
/// This function returns a new `LasFile` that has been initialized using another
/// `LasFile`.
/// Input Parameters:
/// * file_name: The name of the LAS file to be created.
/// * input: An existing LAS file.
///
/// Output:
/// * A LasFile struct, initialized with the header and VLRs of the input file.
This function returns a new `LasFile` that has been initialized using another
`LasFile`.
Input Parameters:
file_name: The name of the LAS file to be created.
input: An existing LAS file.

A LasFile struct, initialized with the header and VLRs of the input file.
This function returns a new ` LasFile ` that has been initialized using another ` LasFile ` . Input Parameters : file_name : The name of the LAS file to be created . input : An existing LAS file . A LasFile struct initialized with the header and VLRs of the input file .
pub fn initialize_using_file<'a>(file_name: &'a str, input: &'a LasFile) -> LasFile {
        let mut output = LasFile {
            file_name: file_name.to_string(),
            ..Default::default()
        };
        output.file_mode = "w".to_string();
        output.use_point_intensity = true;
        output.use_point_userdata = true;
        output.add_header(input.header.clone());
        // Copy the VLRs
        for i in 0..(input.header.number_of_vlrs as usize) {
            output.add_vlr(input.vlr_data[i].clone());
        }
        output
    }
pub fn initialize_using_file < ' a > ( file_name : & ' a str , input : & ' a LasFile ) -> LasFile { let mut output = LasFile { file_name : file_name . to_string ( ) , .. Default :: default ( ) } ; output . file_mode = " " . to_string ( ) ; output . use_point_intensity = true ; output . use_point_userdata = true ; output . add_header ( input . header . clone ( ) ) ; // Copy the VLRs for i in 0 .. ( input . header . number_of_vlrs as usize ) { output . add_vlr ( input . vlr_data [ i ] . clone ( ) ) ; } output }
This function returns a new `LasFile` that has been initialized using another
`LasFile`.
This function returns a new ` LasFile ` that has been initialized using another ` LasFile ` .
file_name
&'a str
input
&'a LasFile
file_name
&'a str
input
&'a LasFile