pub struct PmTilesWriter { /* private fields */ }Expand description
Builder for creating a new writer.
Implementations§
Source§impl PmTilesWriter
impl PmTilesWriter
Sourcepub fn internal_compression(self, compression: Compression) -> Self
pub fn internal_compression(self, compression: Compression) -> Self
Set the compression for metadata and directories using a default compressor.
For custom compression parameters, use internal_codec instead.
Sourcepub fn tile_compression(self, compression: Compression) -> Self
pub fn tile_compression(self, compression: Compression) -> Self
Set the compression for tile data using a default compressor.
For custom compression parameters, use tile_codec instead.
Sourcepub fn tile_codec(self, compressor: impl Compressor + 'static) -> Self
pub fn tile_codec(self, compressor: impl Compressor + 'static) -> Self
Set the tile compressor. Also sets the header’s tile compression.
Sourcepub fn internal_codec(self, compressor: impl Compressor + 'static) -> Self
pub fn internal_codec(self, compressor: impl Compressor + 'static) -> Self
Set the internal (metadata/directory) compressor.
Sourcepub fn bounds(
self,
min_lon: f64,
min_lat: f64,
max_lon: f64,
max_lat: f64,
) -> Self
pub fn bounds( self, min_lon: f64, min_lat: f64, max_lon: f64, max_lat: f64, ) -> Self
Set the bounds of the tiles
Sourcepub fn center_zoom(self, level: u8) -> Self
pub fn center_zoom(self, level: u8) -> Self
Set the center zoom level.
Auto Trait Implementations§
impl !RefUnwindSafe for PmTilesWriter
impl !Send for PmTilesWriter
impl !Sync for PmTilesWriter
impl !UnwindSafe for PmTilesWriter
impl Freeze for PmTilesWriter
impl Unpin for PmTilesWriter
impl UnsafeUnpin for PmTilesWriter
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> 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 moreCreates a shared type from an unshared type.