gis-tools-ts - v0.6.0
    Preparing search index...

    Class BufferTileWriter

    A Tile writer designed for testing.

    Implements

    Index

    Methods

    • Finish writing by building the header with root and leaf directories.

      Parameters

      • metadata: Metadata

        the metadata about all the tiles to store

      Returns Promise<void>

    • Write a time series tile to the folder location given its (face, zoom, x, y) coordinates.

      Parameters

      • time: Date

        the date of the data

      • face: number

        the Open S2 projection face

      • zoom: number

        the zoom level

      • x: number

        the tile X coordinate

      • y: number

        the tile Y coordinate

      • data: Uint8Array

        the tile data to store

      Returns Promise<void>

    • Write a time series tile to the folder location given its (t, z, x, y) coordinates.

      Parameters

      • time: Date

        the date of the data

      • zoom: number

        the zoom level

      • x: number

        the tile X coordinate

      • y: number

        the tile Y coordinate

      • data: Uint8Array

        the tile data to store

      Returns Promise<void>

    • Write a tile to the folder location given its (face, zoom, x, y) coordinates.

      Parameters

      • face: Face

        the Open S2 projection face

      • zoom: number

        the zoom level

      • x: number

        the tile X coordinate

      • y: number

        the tile Y coordinate

      • data: Uint8Array

        the tile data to store

      Returns Promise<void>

    • Write a tile to the folder location given its (z, x, y) coordinates.

      Parameters

      • zoom: number

        the zoom level

      • x: number

        the tile X coordinate

      • y: number

        the tile Y coordinate

      • data: Uint8Array

        the tile data to store

      Returns Promise<void>