pub trait TileLike {
Show 36 methods
// Required methods
fn x(&self) -> u32;
fn y(&self) -> u32;
fn z(&self) -> u8;
// Provided methods
fn zoom(&self) -> u8 { ... }
fn yflip(&self) -> u32 { ... }
fn flipy(&self) -> u32 { ... }
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 { ... }
fn tile(&self) -> Tile { ... }
fn valid(&self) -> bool { ... }
fn ul(&self) -> LngLat { ... }
fn ur(&self) -> LngLat { ... }
fn lr(&self) -> LngLat { ... }
fn ll(&self) -> LngLat { ... }
fn quadkey(&self) -> String { ... }
fn qk(&self) -> String { ... }
fn pmtileid(&self) -> u64 { ... }
fn pmid(&self) -> u64 { ... }
fn row_major_id(&self) -> u64 { ... }
fn rmid(&self) -> u64 { ... }
fn bbox(&self) -> (f64, f64, f64, f64) { ... }
fn geobbox(&self) -> BBox { ... }
fn webbbox(&self) -> WebBBox { ... }
fn bbox_string(&self) -> String { ... }
fn center(&self) -> LngLat { ... }
fn json_arr(&self) -> String { ... }
fn json_arr_min(&self) -> String { ... }
fn json_obj(&self) -> String { ... }
fn json(&self) -> String { ... }
fn tuple_string(&self) -> String { ... }
fn mbtiles_sql_where(&self) -> String { ... }
fn zbox(&self) -> TileZBox { ... }
fn children_zbox(&self, depth: Option<u8>) -> TileZBox { ... }
}Expand description
Trait def for tile-like objects/structs/things/whatevers
Required Methods§
Provided Methods§
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
Sourcefn row_major_id(&self) -> u64
fn row_major_id(&self) -> u64
Return the row major id for the tile
Sourcefn 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
Sourcefn json_arr_min(&self) -> String
fn json_arr_min(&self) -> String
Return json array string for tile with no spaces after commas
Sourcefn tuple_string(&self) -> String
fn tuple_string(&self) -> String
Return tuple string for tile (x, y, z)
Sourcefn mbtiles_sql_where(&self) -> String
fn mbtiles_sql_where(&self) -> String
Return sql WHERE clause for querying mbtiles (y is up)
Sourcefn children_zbox(&self, depth: Option<u8>) -> TileZBox
fn children_zbox(&self, depth: Option<u8>) -> TileZBox
Return children-zbox for tile-like at optional depth (default 1)