pub struct PMHeader {Show 25 fields
pub version: u8,
pub root_directory_offset: u64,
pub root_directory_length: u64,
pub metadata_offset: u64,
pub metadata_length: u64,
pub leaf_directory_offset: u64,
pub leaf_directory_length: u64,
pub data_offset: u64,
pub data_length: u64,
pub n_addressed_tiles: u64,
pub n_tile_entries: u64,
pub n_tile_contents: u64,
pub clustered: bool,
pub internal_compression: CompressionFormat,
pub tile_compression: CompressionFormat,
pub tile_type: PMTileType,
pub min_zoom: u8,
pub max_zoom: u8,
pub min_longitude: f32,
pub min_latitude: f32,
pub max_longitude: f32,
pub max_latitude: f32,
pub center_zoom: u8,
pub center_longitude: f32,
pub center_latitude: f32,
}Expand description
PMTiles v3 header storing basic archive-level information.
Fields§
§version: u8Only v3 PMTiles supported
root_directory_offset: u64the offset in the archive of the root directory
root_directory_length: u64the length of the root directory
metadata_offset: u64the offset in the archive of the JSON metadata
metadata_length: u64the length of the metadata
leaf_directory_offset: u64the offset in the archive of the leaf directory
leaf_directory_length: u64the length of the leaf directory
data_offset: u64the offset in the archive of the tile data
data_length: u64the length of the tile data
n_addressed_tiles: u64the number of addressed tiles
n_tile_entries: u64the number of tile entries
n_tile_contents: u64the number of tile contents
clustered: boolif the archive is clustered
internal_compression: CompressionFormatwhat kind of compression is used for the Entries and metadata This is depreacted and will always be NONE for S2PMTiles
tile_compression: CompressionFormatwhat kind of compression is used for the tiles
tile_type: PMTileTypethe type of the tiles
min_zoom: u8the min zoom level
max_zoom: u8the max zoom level
min_longitude: f32the min longitude
min_latitude: f32the min latitude
max_longitude: f32the max longitude
max_latitude: f32the max latitude
center_zoom: u8the center zoom level
center_longitude: f32the center longitude
center_latitude: f32the center latitude
Implementations§
Trait Implementations§
impl StructuralPartialEq for PMHeader
Auto Trait Implementations§
impl Freeze for PMHeader
impl RefUnwindSafe for PMHeader
impl Send for PMHeader
impl Sync for PMHeader
impl Unpin for PMHeader
impl UnwindSafe for PMHeader
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().