@itwin/core-backend
Version:
iTwin.js backend components
31 lines • 1.6 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* 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
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAvailableCoordinateReferenceSystems = getAvailableCoordinateReferenceSystems;
exports.getAvailableCRSUnits = getAvailableCRSUnits;
const NativePlatform_1 = require("./internal/NativePlatform");
const GeoCoordConfig_1 = require("./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
*/
async function getAvailableCoordinateReferenceSystems(args) {
GeoCoordConfig_1.GeoCoordConfig.loadDefaultDatabases();
return NativePlatform_1.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
*/
function getAvailableCRSUnits() {
GeoCoordConfig_1.GeoCoordConfig.loadDefaultDatabases();
return NativePlatform_1.IModelNative.platform.GeoServices.getAvailableUnitNames();
}
//# sourceMappingURL=GeographicCRSServices.js.map