/** @packageDocumentation * @module OrbitGT */ declare type int32 = number; declare type float64 = number; import { AList } from "../../system/collection/AList"; import { CRS } from "./CRS"; import { Operation } from "./Operation"; import { Unit } from "./Unit"; /** * Class Registry defines the EPSG registry of coordinate reference systems (CRS). * * @version 1.0 December 2019 */ /** @internal */ export declare class Registry { /** The name of the unit table */ private static readonly _TABLE_UNIT; private static readonly _COL_COUNT_UNIT; private static readonly _COL_UNIT_CODE; private static readonly _COL_UNIT_NAME; private static readonly _COL_UNIT_TYPE; private static readonly _COL_UNIT_TARGET_CODE; private static readonly _COL_UNIT_FACTOR_B; private static readonly _COL_UNIT_FACTOR_C; private static readonly _COL_UNIT_ABBREVIATION; /** The map for preferred transformation between CRSs */ private static _PREFERRED_TRANSFORMATIONS; /** Define the list of all units */ private static _UNIT_LIST; /** Define the map of CRS instances that have been read */ private static _CRS_MAP; /** * No instances. */ private constructor(); /** * Get the UTM CRS code at a certain location. * @param lon the WGS84 (CRS 4326) longitude (degrees). * @param lat the WGS84 (CRS 4326) latitude (degrees). * @return the CRS code. */ static getUTMCRSCodeAt(lon: float64, lat: float64): int32; /** * Get a preferred transformation (to WGS84). * @param crs the crs. * @return the preferred transformation (can be null). */ static getPreferredTransformation(crs: string): Operation; /** * Set a preferred transformation (to WGS84). * @param crs the crs. * @param transformation the preferred transformation (can be null). */ static setPreferredTransformation(crs: string, transformation: Operation): void; /** * Open a table. * @param tableName the name of the table. * @return the table. */ private static openTable; /** * Read all units. * @return all units. */ private static readAllUnits; /** * List all units. * @return all units. */ static listUnits(): AList; /** * Find a unit. * @param unitCode the identification code of the unit. * @return a unit (null if not found). */ static findUnit(unitCode: int32): Unit; /** * Get a unit. * @param unitCode the identification code of the unit. * @return a unit (not null). */ static getUnit(unitCode: int32): Unit; /** * Find a unit by name. * @param unitName the name (or abbreviation or code) of the unit. * @return a unit (null if not found). */ static findUnitName(unitName: string): Unit; /** * Get a CRS. * @param crsCode the identification code of the CRS. * @return the CRS (null if not found). */ static getCRS(crsCode: int32): CRS; /** * Get a CRS. * @param crsCode the identification code of the CRS. * @return the CRS (null if not found). */ static getCRS2(crsCode: string): CRS; /** * Set a CRS. * @param crsCode the identification code of the CRS. * @param the CRS. */ static setCRS(crsCode: int32, crs: CRS): void; } export {}; //# sourceMappingURL=Registry.d.ts.map