UNPKG

gis-tools-ts

Version:

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

21 lines 1.28 kB
import { Transformer } from '../../proj4'; import type { GeoKeyDirectory, GridReader } from '.'; import type { ProjectionParams, ProjectionTransformDefinition } from '../../proj4'; /** * Builds the projection transformer for a GeoTIFF image * @param geoKeys - the geo-keys pulled from the image metadata * @param definitions - an array of projection definitions for the transformer if needed * @param epsgCodes - a record of EPSG codes to use for the transformer if needed * @param gridStore - the grid readers * @returns - the projection transformer */ export declare function buildTransformFromGeoKeys(geoKeys?: GeoKeyDirectory, definitions?: ProjectionTransformDefinition[], epsgCodes?: Record<string, string>, gridStore?: GridReader[]): Transformer; /** * NOTE: This project assumes ProjectionGeoKey and ProjectedCSTypeGeoKey will always be * set to 32767. This means the projection is user defined. Other mappings are waaay * too complicated. * @param geoKeys - the geo-keys pulled from the image metadata * @returns - the projection parameters. If nothing is returned a lon-lat system is already in place */ export declare function buildParamsFromGeoKeys(geoKeys?: GeoKeyDirectory): ProjectionParams | undefined; //# sourceMappingURL=proj.d.ts.map