pub struct TileData {
pub xyz: Tile,
pub data: Vec<u8>,
}Expand description
TileData container with Tile and u8 bytes
Fields§
§xyz: Tiletile x, y, z
data: Vec<u8>tile data
Implementations§
Trait Implementations§
Source§impl TileLike for TileData
impl TileLike for TileData
fn yup(&self) -> u32
fn xyz_str_fslash(&self) -> String
fn zxy_str_fslash(&self) -> String
fn xyz_str_sep(&self, sep: &str) -> String
fn zxy_str_sep(&self, sep: &str) -> String
Source§fn row_major_id(&self) -> u64
fn row_major_id(&self) -> u64
Return the row major id for the tile
Source§fn bbox(&self) -> (f64, f64, f64, f64)
fn bbox(&self) -> (f64, f64, f64, f64)
Return the geo-bbox tuple for the tile (west, south, east, north)
fn geobbox(&self) -> BBox
fn webbbox(&self) -> WebBBox
fn bbox_string(&self) -> String
Source§fn json_arr_min(&self) -> String
fn json_arr_min(&self) -> String
Return json array string for tile with no spaces after commas
Source§fn tuple_string(&self) -> String
fn tuple_string(&self) -> String
Return tuple string for tile
(x, y, z)Source§fn mbtiles_sql_where(&self) -> String
fn mbtiles_sql_where(&self) -> String
Return sql
WHERE clause for querying mbtiles (y is up)Auto Trait Implementations§
impl Freeze for TileData
impl RefUnwindSafe for TileData
impl Send for TileData
impl Sync for TileData
impl Unpin for TileData
impl UnwindSafe for TileData
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