pub struct Header {Show 14 fields
pub root_off: u64,
pub root_len: u64,
pub meta_off: u64,
pub meta_len: u64,
pub leaf_off: u64,
pub leaf_len: u64,
pub data_off: u64,
pub data_len: u64,
pub internal_compression: u8,
pub tile_compression: u8,
pub tile_type: u8,
pub min_zoom: u8,
pub max_zoom: u8,
pub center: (f64, f64, u8),
}Expand description
The PMTiles v3 header: where each section is, how tiles are compressed and typed, and the zoom range.
Fields§
§root_off: u64Offset of the root directory.
root_len: u64Length of the root directory.
meta_off: u64Offset of the JSON metadata.
meta_len: u64Length of the JSON metadata.
leaf_off: u64Offset of the leaf directories.
leaf_len: u64Length of the leaf directories.
data_off: u64Offset of the tile data.
data_len: u64Length of the tile data.
internal_compression: u8Compression of directories and metadata (a COMPRESSION_* value).
tile_compression: u8Compression of tiles (a COMPRESSION_* value).
tile_type: u8What the tiles are (a TILE_TYPE_* value).
min_zoom: u8Lowest zoom with tiles.
max_zoom: u8Highest zoom with tiles.
center: (f64, f64, u8)(lon, lat, zoom)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more