@igo2/geo
Version:
31 lines (30 loc) • 1.21 kB
TypeScript
import { Observable } from 'rxjs';
import { ProjectionsLimitationsOptions } from './projection.interfaces';
/**
* Return a number of zone MTM for a longitude for province of Quebec only
* @param lon number
* @returns zone
*/
export declare function zoneMtm(lon: number): number;
/**
* Return a number of zone UTM for a longitude
* @param lon number
* @returns zone
*/
export declare function zoneUtm(lon: number): number;
/**
* Compute the contraints of projections
* @param projectionsLimitations: ProjectionsLimitationsOptions
* @returns projectionsContraints: ProjectionsLimitationsOptions
*/
export declare function computeProjectionsConstraints(projectionsLimitations: ProjectionsLimitationsOptions): ProjectionsLimitationsOptions;
/**
* Method allowing to read the file and try to detect projection/Coord system
* Only geojson/json/gml could be detected at this moment.
* @param options A file and an optional number of line to read the EPSG Code. Used only for GML files
* @returns Observable string, epsgNotDefined if the EPSG is not detected or a EPSG string ex: EPSG:3857
*/
export declare function detectFileEPSG(options: {
file: File;
nbLines?: number;
}): Observable<string>;