browser-image
    Preparing search index...

    A raster for rasterToGeoTIFF: any number of bands of one sample type, and its georeferencing.

    interface GeoTIFFRaster {
        width: number;
        height: number;
        bands: number;
        data: GeoTIFFSamples;
        noData?: number | null;
        photometric?: number;
        extraSamples?: readonly number[];
        geo: {
            modelPixelScale?: readonly number[];
            modelTiepoint?: readonly number[];
            modelTransformation?: readonly number[];
            geoKeyDirectory?: readonly number[];
            geoDoubleParams?: readonly number[];
            geoAsciiParams?: string;
        };
    }
    Index
    width: number

    Width in pixels.

    height: number

    Height in pixels.

    bands: number

    Samples per pixel.

    The samples, pixel-interleaved: bands values for each pixel, row by row.

    noData?: number | null

    The value of pixels with no data; left out of the overview averages.

    photometric?: number

    PhotometricInterpretation (1 = gray, 2 = RGB). Default: 2 for 3 or more bands, else 1.

    extraSamples?: readonly number[]

    ExtraSamples, one per band beyond the color ones (2 = unassociated alpha).

    geo: {
        modelPixelScale?: readonly number[];
        modelTiepoint?: readonly number[];
        modelTransformation?: readonly number[];
        geoKeyDirectory?: readonly number[];
        geoDoubleParams?: readonly number[];
        geoAsciiParams?: string;
    }

    Georeferencing tags, copied as they are from the original file: ModelPixelScale, ModelTiepoint or ModelTransformation, and the GeoKey directory with its double and ASCII parameters.

    Type Declaration

    • OptionalmodelPixelScale?: readonly number[]

      ModelPixelScale (tag 33550): pixel size in x, y and z.

    • OptionalmodelTiepoint?: readonly number[]

      ModelTiepoint (tag 33922): raster points and the model points they are at.

    • OptionalmodelTransformation?: readonly number[]

      ModelTransformation (tag 34264): a 4 × 4 matrix from raster to model space.

    • OptionalgeoKeyDirectory?: readonly number[]

      GeoKeyDirectory (tag 34735).

    • OptionalgeoDoubleParams?: readonly number[]

      GeoDoubleParams (tag 34736).

    • OptionalgeoAsciiParams?: string

      GeoAsciiParams (tag 34737).