@giro3d/giro3d
Version:
A JS/WebGL framework for 3D geospatial data visualization
21 lines • 646 B
TypeScript
/**
* Represents a spatial reference identifier (SRID).
*/
export declare class SRID {
private readonly _authority;
private readonly _code;
constructor(authority: string, code: number);
/**
* Parses an SRID in the form 'auth:code' (e.g EPSG:1234)
* @param text - The text to parse.
* @returns The parsed SRID, or throw an error if the SRID could not be parsed.
*/
static parse(text: string): SRID;
get authority(): string;
get code(): number;
toString(): string;
isEpsg(code: number): boolean;
tryGetEpsgCode(): number | null;
}
export default SRID;
//# sourceMappingURL=SRID.d.ts.map