pub trait TileWriter {
// Required methods
fn write_tile_wm(&mut self, zoom: u8, x: u32, y: u32, data: Vec<u8>);
fn write_tile_s2(
&mut self,
face: Face,
zoom: u8,
x: u32,
y: u32,
data: Vec<u8>,
);
fn commit(
&mut self,
metadata: Metadata,
tile_compression: Option<CompressionFormat>,
);
}Expand description
A base interface for all tile stores.
Required Methods§
Sourcefn write_tile_wm(&mut self, zoom: u8, x: u32, y: u32, data: Vec<u8>)
fn write_tile_wm(&mut self, zoom: u8, x: u32, y: u32, data: Vec<u8>)
Write a Web Mercator tile to the folder location given its (zoom, x, y) coordinates.
Sourcefn write_tile_s2(&mut self, face: Face, zoom: u8, x: u32, y: u32, data: Vec<u8>)
fn write_tile_s2(&mut self, face: Face, zoom: u8, x: u32, y: u32, data: Vec<u8>)
Write a S2 tile to the folder location given its (face, zoom, x, y) coordinates.
Sourcefn commit(
&mut self,
metadata: Metadata,
tile_compression: Option<CompressionFormat>,
)
fn commit( &mut self, metadata: Metadata, tile_compression: Option<CompressionFormat>, )
Write the metadata to the folder location.
Implementors§
impl TileWriter for FileTileWriter
Available on crate feature
std only.