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

    Class RasterS2TileReader<T, P>

    S2 Raster Tile Reader

    Type Parameters

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Type Parameters

      Parameters

      • face: Face

        the Open S2 projection face

      • zoom: number

        the zoom level of the tile

      • x: number

        the x coordinate of the tile

      • y: number

        the y coordinate of the tile

      • image: ImageData

        the raw image RGB(A) data

      • Optionalconverter: ElevationConverter

        the elevation converter (if provided its not an RGBA image but rather elevation data)

      Returns RasterS2TileReader<T, P>

    Properties

    converter?: ElevationConverter

    the elevation converter (if provided its not an RGBA image but rather elevation data)

    face: Face

    the Open S2 projection face

    image: ImageData

    the raw image RGB(A) data

    x: number

    the x coordinate of the tile

    y: number

    the y coordinate of the tile

    zoom: number

    the zoom level of the tile

    Methods

    • Iterate over all tiles in the archive

      Returns AsyncGenerator<S2Feature<S2TileMetadata, T, P, VectorGeometry<T>>>

      • the each of the tile's pixel RGBA data as S2 s-t coordinates with the RGBA as m-values