UNPKG

gis-tools-ts

Version:

A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.

40 lines 1.32 kB
import type { Reader } from '..'; import type { GeoKeyDirectory, TagNames } from './constants'; /** * Container to store the parsed file directory, geo key directory and * offset to the next IFD */ export interface ImageFileDirectory extends TagNames { GeoKeyDirectory?: GeoKeyDirectory; ModelPixelScale?: number[]; ModelTiepoint?: number[]; ModelTransformation?: number[]; GeoDoubleParams?: number[]; GeoAsciiParams?: string; pixelScale?: [x: number, y: number, z: number]; tiepoint?: number[]; } /** * GeoTIFF Header Reader */ export declare class GeoTIFFHeaderReader { #private; reader: Reader; imageDirectories: ImageFileDirectory[]; /** @param reader - the geotiff reader to parse data from */ constructor(reader: Reader); /** @returns - the number of images in the GeoTIFF */ get length(): number; /** @returns - the littleEndian flag */ get littleEndian(): boolean; /** @returns - the bigTIFF flag */ get bigTiff(): boolean; } /** * Parse the raw geo keys * @param rawGeoKeys - the raw geo keys * @param fileDir - the image file directory * @returns - the parsed geo keys */ export declare function parseGeotiffRawGeoKeys(rawGeoKeys: Uint16Array, fileDir: ImageFileDirectory): GeoKeyDirectory; //# sourceMappingURL=header.d.ts.map