On this page

Type Alias WeatherVariable

Details about a specific weather variable

type WeatherVariable = {
    "@version": string;
    bounds: Bounds;
    keyframes: Keyframe[];
    metadata: {
        bounds: Bounds;
        center: number[];
        format: "jpeg" | "png" | "webp" | "pbf" | "quantized-mesh-1.0";
        maxzoom: number;
        minzoom: number;
        scale?: number;
        scheme: string;
        title: string;
        weather_variable: {
            attribution: string;
            decoding: { channels: UsedRgbChannel; max: number; min: number };
            description: string;
            name: string;
            release_timestamp: string;
            timestamp: string;
            unit: string;
            variable_id: WeatherVariableIDValue;
        };
    };
    spatial_ref_sys: SpatialReferenceSystem;
    tile_format: "jpeg"
    | "png"
    | "webp"
    | "pbf"
    | "quantized-mesh-1.0";
    tile_matrix_set: TileMatrixSet;
    tile_type: "raster" | "raster-dem" | "vector" | "terrain";
    type: "mtpkg" | "virtual" | "mbtiles" | "geopackage";
}
Index

Properties

"@version": string

Version of the specification

bounds: Bounds

Geographical extent of the tileset representing the bounds (in Mercator units)

keyframes: Keyframe[]

Tileset per time tick

metadata: {
    bounds: Bounds;
    center: number[];
    format: "jpeg" | "png" | "webp" | "pbf" | "quantized-mesh-1.0";
    maxzoom: number;
    minzoom: number;
    scale?: number;
    scheme: string;
    title: string;
    weather_variable: {
        attribution: string;
        decoding: { channels: UsedRgbChannel; max: number; min: number };
        description: string;
        name: string;
        release_timestamp: string;
        timestamp: string;
        unit: string;
        variable_id: WeatherVariableIDValue;
    };
}

Type Declaration

  • bounds: Bounds

    Bounds in WGS84

  • center: number[]

    Center of the bounds

  • format: "jpeg" | "png" | "webp" | "pbf" | "quantized-mesh-1.0"

    Format of the tile

  • maxzoom: number

    Maximal zool level this tileset contains. Cannot be higher than 22, but mostl likely lower

  • minzoom: number

    Minimal zoom level this tileset contains. Cannot be lower than 0, but could be higher

  • Optionalscale?: number

    Factor of 256 reprensting the size of raster tiles. (1 means tiles are 256x256px, 2 means 512x512px) The scale is received as a string.

  • scheme: string

    TODO

  • title: string

    TODO

  • weather_variable: {
        attribution: string;
        decoding: { channels: UsedRgbChannel; max: number; min: number };
        description: string;
        name: string;
        release_timestamp: string;
        timestamp: string;
        unit: string;
        variable_id: WeatherVariableIDValue;
    }

    Description of the weather variable

    • attribution: string

      Attribution to credit the source for this weather data

    • decoding: { channels: UsedRgbChannel; max: number; min: number }

      Information to decode the values of this specific weather variable

      • channels: UsedRgbChannel

        Channel or combination of image channels that is/are used to encode this weather variable within each tile's pixel.

      • max: number

        The minimum value in real world unit. This is mapped to the 255 in the uint8 range.

      • min: number

        The minimum value in real world unit. This is mapped to the 0 in the uint8 range.

    • description: string

      Human friendly description of this weather variable

    • name: string

      Human friendly name of the weather variable (eg. "Temperature")

    • release_timestamp: string

      Release data of the dataset. Date in ISO8601 format.

    • timestamp: string
    • unit: string

      Real world unit used for this variable

    • variable_id: WeatherVariableIDValue

      Identifier of this weather variable

spatial_ref_sys: SpatialReferenceSystem

Description of the tileset's spatial reference system (aka. CRS)

tile_format: "jpeg" | "png" | "webp" | "pbf" | "quantized-mesh-1.0"

Encoding type of each individual tile

tile_matrix_set: TileMatrixSet

Description of the tile matrix at each zoom level

tile_type: "raster" | "raster-dem" | "vector" | "terrain"

The type of tile

type: "mtpkg" | "virtual" | "mbtiles" | "geopackage"

Type of tileset

Was this helpful?
SDK JS
Modules
Reference
types
WeatherVariable