pub struct LasChunkSink<W: Write + Seek + Send + Sync + 'static> { /* private fields */ }Expand description
Sequential LAS/LAZ sink that writes each leased chunk immediately.
Implementations§
Source§impl<W: Write + Seek + Send + Sync + 'static> LasChunkSink<W>
impl<W: Write + Seek + Send + Sync + 'static> LasChunkSink<W>
Sourcepub fn new(
writer: W,
schema: SchemaDescriptor,
expected_points: u64,
format: LasWriteFormat,
) -> Result<Self, IoError>
pub fn new( writer: W, schema: SchemaDescriptor, expected_points: u64, format: LasWriteFormat, ) -> Result<Self, IoError>
Creates a LAS/LAZ sink over a seekable writer.
Sourcepub fn new_open_ended(
writer: W,
schema: SchemaDescriptor,
format: LasWriteFormat,
) -> Result<Self, IoError>
pub fn new_open_ended( writer: W, schema: SchemaDescriptor, format: LasWriteFormat, ) -> Result<Self, IoError>
Creates a LAS/LAZ sink whose final point count is not known up front.
The seekable LAS writer patches the header when Self::finish closes it.
Source§impl LasChunkSink<BufWriter<File>>
impl LasChunkSink<BufWriter<File>>
Sourcepub fn create(
path: impl AsRef<Path>,
schema: SchemaDescriptor,
expected_points: u64,
format: LasWriteFormat,
) -> Result<Self, IoError>
pub fn create( path: impl AsRef<Path>, schema: SchemaDescriptor, expected_points: u64, format: LasWriteFormat, ) -> Result<Self, IoError>
Creates a local LAS/LAZ file sink.
Sourcepub fn create_open_ended(
path: impl AsRef<Path>,
schema: SchemaDescriptor,
format: LasWriteFormat,
) -> Result<Self, IoError>
pub fn create_open_ended( path: impl AsRef<Path>, schema: SchemaDescriptor, format: LasWriteFormat, ) -> Result<Self, IoError>
Creates a local LAS/LAZ sink whose final point count is not known up front.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for LasChunkSink<W>
impl<W> !RefUnwindSafe for LasChunkSink<W>
impl<W> Send for LasChunkSink<W>
impl<W> !Sync for LasChunkSink<W>
impl<W> Unpin for LasChunkSink<W>
impl<W> UnsafeUnpin for LasChunkSink<W>
impl<W> !UnwindSafe for LasChunkSink<W>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more