pub struct TileMatrixSet {
pub id: String,
pub title: String,
pub uri: Option<String>,
pub crs: String,
pub tile_matrices: Vec<TileMatrix>,
}Expand description
OGC TileMatrixSet defines a coordinate reference system, a set of tile matrices at different scales, and the origin and dimensions of each tile matrix.
Well-known TileMatrixSets are registered at the OGC NA definition server.
Fields§
§id: StringIdentifier of the TileMatrixSet
title: StringHuman-readable title
uri: Option<String>URI of the TileMatrixSet definition (well-known sets have OGC URIs)
crs: StringCoordinate Reference System as URI
tile_matrices: Vec<TileMatrix>Ordered list of tile matrices (one per zoom level)
Implementations§
Source§impl TileMatrixSet
impl TileMatrixSet
Sourcepub fn web_mercator_quad() -> Self
pub fn web_mercator_quad() -> Self
Standard WebMercatorQuad (EPSG:3857) tile grid — zoom levels 0–24.
Used by Google Maps, OpenStreetMap, Bing Maps, etc. Origin is the top-left corner of the world at (-20037508.34, 20037508.34).
Sourcepub fn world_crs84_quad() -> Self
pub fn world_crs84_quad() -> Self
Standard WorldCRS84Quad (EPSG:4326 / OGC:CRS84) tile grid — zoom levels 0–17.
Two tiles at zoom 0 cover the whole world (2:1 aspect ratio). Used in OGC services and aerospace applications.
Sourcepub fn tile_matrix(&self, zoom: u8) -> Option<&TileMatrix>
pub fn tile_matrix(&self, zoom: u8) -> Option<&TileMatrix>
Look up a tile matrix by zoom level.
Sourcepub fn zoom_level_count(&self) -> usize
pub fn zoom_level_count(&self) -> usize
Total number of zoom levels defined in this TileMatrixSet.
Trait Implementations§
Source§impl Clone for TileMatrixSet
impl Clone for TileMatrixSet
Source§fn clone(&self) -> TileMatrixSet
fn clone(&self) -> TileMatrixSet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TileMatrixSet
impl Debug for TileMatrixSet
Source§impl<'de> Deserialize<'de> for TileMatrixSet
impl<'de> Deserialize<'de> for TileMatrixSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TileMatrixSet
impl RefUnwindSafe for TileMatrixSet
impl Send for TileMatrixSet
impl Sync for TileMatrixSet
impl Unpin for TileMatrixSet
impl UnsafeUnpin for TileMatrixSet
impl UnwindSafe for TileMatrixSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more