Skip to main content

CopcReader

Struct CopcReader 

Source
pub struct CopcReader<R> { /* private fields */ }
Expand description

COPC point reader owning the underlying stream.

Implementations§

Source§

impl CopcReader<BufReader<File>>

Source

pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self>

Source§

impl<R: Read + Seek + Send> CopcReader<R>

Source

pub fn open(source: R) -> Result<Self>

Open a COPC reader from an already-open stream.

Source

pub fn file(&self) -> &CopcFile

Source

pub fn header(&self) -> &LasHeader

Source

pub fn copc_info(&self) -> &CopcInfo

Source

pub fn into_inner(self) -> R

Source

pub fn points( &mut self, lod: LodSelection, bounds: BoundsSelection, ) -> Result<PointIter<'_, R>>

Iterate points matching the requested LOD and bounds.

The iterator yields Result<las::Point> so IO, LAZ, and malformed-point failures are reported to the caller instead of panicking mid-stream.

Source

pub fn points_for_query( &mut self, query: PointQuery, ) -> Result<PointIter<'_, R>>

Source

pub fn points_with_cancel<'a>( &'a mut self, lod: LodSelection, bounds: BoundsSelection, cancel: &'a dyn CancelCheck, ) -> Result<PointIter<'a, R>>

Auto Trait Implementations§

§

impl<R> Freeze for CopcReader<R>
where R: Freeze,

§

impl<R> RefUnwindSafe for CopcReader<R>
where R: RefUnwindSafe,

§

impl<R> Send for CopcReader<R>
where R: Send,

§

impl<R> Sync for CopcReader<R>
where R: Sync,

§

impl<R> Unpin for CopcReader<R>
where R: Unpin,

§

impl<R> UnsafeUnpin for CopcReader<R>
where R: UnsafeUnpin,

§

impl<R> UnwindSafe for CopcReader<R>
where R: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.