gis-tools-ts
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
38 lines • 1.33 kB
TypeScript
import type { Reader } from '../index.js';
import type { GeoKeyDirectory, TagNames } from './constants.js';
/**
* 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