@allmaps/transform
Version:
Coordinate transformation functions
23 lines (22 loc) • 1.11 kB
TypeScript
import type { Gcp, Point } from '@allmaps/types';
import type { GeneralGcp, GeneralGcpAndDistortions, GcpAndDistortions, TransformationType } from './types.js';
export declare function invertGeneralGcp(generalGcp: GeneralGcp): GeneralGcp;
export declare function invertGcp(gcp: Gcp): Gcp;
export declare function generalGcpToPointForForward(generalGcp: GeneralGcp): Point;
export declare function generalGcpToPointForBackward(generalGcp: GeneralGcp): Point;
export declare function gcpToPointForToGeo(gcp: Gcp): Point;
export declare function gcpToPointForToResource(gcp: Gcp): Point;
export declare function generalGcpToGcp(generalGcp: GeneralGcpAndDistortions): GcpAndDistortions;
export declare function gcpToGeneralGcp(gcp: GcpAndDistortions): GeneralGcpAndDistortions;
export declare function transformationTypeToTypeAndOrder(transformationType?: TransformationType): {
type?: string;
options?: {
order: number;
};
};
export declare function typeAndOrderToTransformationType(transformation: {
type?: string;
options?: {
order?: number;
};
}): TransformationType;