UNPKG

@itwin/core-backend

Version:
27 lines 1.31 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @packageDocumentation * @module iModels */ import { IModelNative } from "./internal/NativePlatform"; import { GeoCoordConfig } from "./GeoCoordConfig"; /** Get a list of Geographic Coordinate Reference Systems. * @param options Specifies the parameters to filter the returned list. * @returns The list of Geographic Coordinate Reference Systems, according to the supplied parameters. * @beta */ export async function getAvailableCoordinateReferenceSystems(args) { GeoCoordConfig.loadDefaultDatabases(); return IModelNative.platform.GeoServices.getListOfCRS(args.extent, args.includeWorld, args.unit); } /** Get a list of units used by Geographic Coordinate Reference Systems in iTwin.js. * @returns An array of canonical unit names. * @beta */ export function getAvailableCRSUnits() { GeoCoordConfig.loadDefaultDatabases(); return IModelNative.platform.GeoServices.getAvailableUnitNames(); } //# sourceMappingURL=GeographicCRSServices.js.map