Trait pasture_io::base::PointReader[][src]

pub trait PointReader {
    fn read(&mut self, count: usize) -> Result<Box<dyn PointBuffer>>;
fn read_into(
        &mut self,
        point_buffer: &mut dyn PointBufferWriteable,
        count: usize
    ) -> Result<usize>;
fn get_metadata(&self) -> &dyn Metadata;
fn get_default_point_layout(&self) -> &PointLayout; }

Base trait for all types that support reading point data

Required methods

fn read(&mut self, count: usize) -> Result<Box<dyn PointBuffer>>[src]

Read count points from this PointReader. Returns an opaque PointBuffer type filled with the read points in the default PointLayout of this PointReader.

fn read_into(
    &mut self,
    point_buffer: &mut dyn PointBufferWriteable,
    count: usize
) -> Result<usize>
[src]

Read count points from this PointReader into the given PointBuffer. Uses the PointLayout of the given PointBuffer for reading. If no conversion from the default PointLayout to this new layout are possible, an error is returned. On success, returns the number of points that were read.

fn get_metadata(&self) -> &dyn Metadata[src]

Returns the Metadata of the associated PointReader

fn get_default_point_layout(&self) -> &PointLayout[src]

Returns the default PointLayout of the associated PointReader

Loading content...

Implementors

impl<'a> PointReader for LASReader<'a>[src]

Loading content...