pub struct HypcWrite<'a> {
pub quant_bits: u8,
pub quantized_positions: &'a [u16],
pub decode_min: [f32; 3],
pub decode_max: [f32; 3],
pub tile_key: Option<TileKey>,
pub geog_crs: Option<GeoCrs>,
pub geog_bbox_deg: Option<GeoExtentDeg>,
pub smc1: Option<&'a SemanticMask>,
}Expand description
Parameters for writing an HPC1 file.
Fields§
§quant_bits: u8Must be 16 today.
quantized_positions: &'a [u16]Flat u16 triplets [x0,y0,z0, x1,y1,z1, …], length must be 3*N.
decode_min: [f32; 3]§decode_max: [f32; 3]§tile_key: Option<TileKey>§geog_crs: Option<GeoCrs>If present and geog_crs is Some(Crs84), a GEOT v1 bbox footer is emitted.
geog_bbox_deg: Option<GeoExtentDeg>§smc1: Option<&'a SemanticMask>Optional SMC1 semantic mask to append.
When encoding == Smc1Encoding::Zlib, the data will be zlib-compressed on write.
Auto Trait Implementations§
impl<'a> Freeze for HypcWrite<'a>
impl<'a> RefUnwindSafe for HypcWrite<'a>
impl<'a> Send for HypcWrite<'a>
impl<'a> Sync for HypcWrite<'a>
impl<'a> Unpin for HypcWrite<'a>
impl<'a> UnsafeUnpin for HypcWrite<'a>
impl<'a> UnwindSafe for HypcWrite<'a>
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