TileWriter

Trait TileWriter 

Source
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§

Source

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.

Source

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.

Source

fn commit( &mut self, metadata: Metadata, tile_compression: Option<CompressionFormat>, )

Write the metadata to the folder location.

Implementors§