Struct tile_grid::TileSet

source ·
pub struct TileSet {
Show 18 fields pub title_description_keywords: TitleDescriptionKeywords, pub data_type: DataType, pub tile_matrix_set_uri: Option<String>, pub tile_matrix_set_limits: Option<Vec<TileMatrixLimits>>, pub crs: Crs, pub epoch: Option<f64>, pub links: Links, pub layers: Option<Vec<GeospatialData>>, pub bounding_box: Option<BoundingBox2D>, pub style: Option<Style>, pub center_point: Option<TilePoint>, pub license: Option<String>, pub access_constraints: Option<AccessConstraints>, pub version: Option<String>, pub created: Option<DateTime<Utc>>, pub updated: Option<DateTime<Utc>>, pub point_of_contact: Option<String>, pub media_types: Option<Vec<String>>,
}
Expand description

A resource describing a tileset based on the OGC TileSet Metadata Standard. At least one of the ‘TileMatrixSet’, or a link with ‘rel’ tiling-scheme“

Fields§

§title_description_keywords: TitleDescriptionKeywords§data_type: DataType

Type of data represented in the tileset

§tile_matrix_set_uri: Option<String>

Reference to a Tile Matrix Set on the OGC NA definition server (http://www.opengis.net/def/tms/). Required if the tile matrix set is registered on the definition server.

§tile_matrix_set_limits: Option<Vec<TileMatrixLimits>>

Limits for the TileRow and TileCol values for each TileMatrix in the TileMatrixSet. If missing, there are no limits other that the ones imposed by the TileMatrixSet. If present the TileMatrices listed are limited and the rest not available at all

§crs: Crs

Coordinate Reference System (CRS)

§epoch: Option<f64>

Epoch of the Coordinate Reference System (CRS)

§links: Links

Links to related resources. Possible link ‘rel’ values are: ‘dataset’ for a URL pointing to the dataset, ‘tiles’ for a URL template to get the tiles; ‘alternate’ for a URL pointing to another representation of the TileSetMetadata (e.g a TileJSON file); ‘tiling-scheme’ for a definition of the TileMatrixSet

§layers: Option<Vec<GeospatialData>>§bounding_box: Option<BoundingBox2D>

Minimum bounding rectangle surrounding the tile matrix set, in the supported CRS

§style: Option<Style>

Style involving all layers used to generate the tileset

§center_point: Option<TilePoint>

Location of a tile that nicely represents the tileset. Implementations may use this center value to set the default location or to present a representative tile in a user interface

§license: Option<String>

License applicable to the tiles

§access_constraints: Option<AccessConstraints>

Restrictions on the availability of the Tile Set that the user needs to be aware of before using or redistributing the Tile Set

§version: Option<String>

Version of the Tile Set. Changes if the data behind the tiles has been changed

§created: Option<DateTime<Utc>>

When the Tile Set was first produced

§updated: Option<DateTime<Utc>>

Last Tile Set change/revision

§point_of_contact: Option<String>

Useful information to contact the authors or custodians for the Tile Set

§media_types: Option<Vec<String>>

Media types available for the tiles

Trait Implementations§

source§

impl<'de> Deserialize<'de> for TileSet

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for TileSet

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,