@itwin/core-orbitgt 5.5.0-dev.1 → 5.5.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/core-orbitgt.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/OPCReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/PointReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/cjs/pointcloud/model/Grid.js.map +1 -1
- package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointAttribute.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointCloudReader.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointData.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/cjs/pointcloud/model/TileIndex.js.map +1 -1
- package/lib/cjs/pointcloud/render/AViewRequest.js.map +1 -1
- package/lib/cjs/pointcloud/render/Block.js.map +1 -1
- package/lib/cjs/pointcloud/render/DataManager.js.map +1 -1
- package/lib/cjs/pointcloud/render/FrameData.js.map +1 -1
- package/lib/cjs/pointcloud/render/Level.js.map +1 -1
- package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/cjs/pointcloud/render/ViewTree.js.map +1 -1
- package/lib/cjs/spatial/crs/CRSEngine.js.map +1 -1
- package/lib/cjs/spatial/crs/CRSManager.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Axis.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CRS.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Datum.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Operation.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Registry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Transform.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Unit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/VerticalModel.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/cjs/spatial/geom/Bounds.js.map +1 -1
- package/lib/cjs/spatial/geom/Coordinate.js.map +1 -1
- package/lib/cjs/spatial/geom/Line.js.map +1 -1
- package/lib/cjs/spatial/geom/Transform.js.map +1 -1
- package/lib/cjs/system/buffer/ABuffer.js.map +1 -1
- package/lib/cjs/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/LittleEndian.js.map +1 -1
- package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/cjs/system/collection/AList.js.map +1 -1
- package/lib/cjs/system/collection/IntMap.js.map +1 -1
- package/lib/cjs/system/collection/StringMap.js.map +1 -1
- package/lib/cjs/system/io/ABufferInStream.js.map +1 -1
- package/lib/cjs/system/io/InStream.js.map +1 -1
- package/lib/cjs/system/io/OutStream.js.map +1 -1
- package/lib/cjs/system/runtime/ALong.js.map +1 -1
- package/lib/cjs/system/runtime/ASystem.js.map +1 -1
- package/lib/cjs/system/runtime/Downloader.js.map +1 -1
- package/lib/cjs/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/cjs/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/cjs/system/runtime/Message.js.map +1 -1
- package/lib/cjs/system/runtime/Numbers.js.map +1 -1
- package/lib/cjs/system/runtime/Strings.js.map +1 -1
- package/lib/cjs/system/runtime/iComparator.js.map +1 -1
- package/lib/cjs/system/storage/CacheList.js.map +1 -1
- package/lib/cjs/system/storage/CachedItem.js.map +1 -1
- package/lib/cjs/system/storage/ContentLoader.js.map +1 -1
- package/lib/cjs/system/storage/FileContent.js.map +1 -1
- package/lib/cjs/system/storage/FileRange.js.map +1 -1
- package/lib/cjs/system/storage/FileStorage.js.map +1 -1
- package/lib/cjs/system/storage/NodeFS.js.map +1 -1
- package/lib/cjs/system/storage/PageCachedFile.js.map +1 -1
- package/lib/cjs/system/storage/UrlFS.js.map +1 -1
- package/lib/esm/core-orbitgt.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/OPCReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/PointReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/esm/pointcloud/model/Grid.js.map +1 -1
- package/lib/esm/pointcloud/model/GridIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/PointAttribute.js.map +1 -1
- package/lib/esm/pointcloud/model/PointCloudReader.js.map +1 -1
- package/lib/esm/pointcloud/model/PointData.js.map +1 -1
- package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/esm/pointcloud/model/TileIndex.js.map +1 -1
- package/lib/esm/pointcloud/render/AViewRequest.js.map +1 -1
- package/lib/esm/pointcloud/render/Block.js.map +1 -1
- package/lib/esm/pointcloud/render/DataManager.js.map +1 -1
- package/lib/esm/pointcloud/render/FrameData.js.map +1 -1
- package/lib/esm/pointcloud/render/Level.js.map +1 -1
- package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/esm/pointcloud/render/ViewTree.js.map +1 -1
- package/lib/esm/spatial/crs/CRSEngine.js.map +1 -1
- package/lib/esm/spatial/crs/CRSManager.js.map +1 -1
- package/lib/esm/spatial/ecrs/Axis.js.map +1 -1
- package/lib/esm/spatial/ecrs/CRS.js.map +1 -1
- package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/esm/spatial/ecrs/Datum.js.map +1 -1
- package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Operation.js.map +1 -1
- package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/esm/spatial/ecrs/Registry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Transform.js.map +1 -1
- package/lib/esm/spatial/ecrs/Unit.js.map +1 -1
- package/lib/esm/spatial/ecrs/VerticalModel.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/esm/spatial/geom/Bounds.js.map +1 -1
- package/lib/esm/spatial/geom/Coordinate.js.map +1 -1
- package/lib/esm/spatial/geom/Line.js.map +1 -1
- package/lib/esm/spatial/geom/Transform.js.map +1 -1
- package/lib/esm/system/buffer/ABuffer.js.map +1 -1
- package/lib/esm/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/esm/system/buffer/LittleEndian.js.map +1 -1
- package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/esm/system/collection/AList.js.map +1 -1
- package/lib/esm/system/collection/IntMap.js.map +1 -1
- package/lib/esm/system/collection/StringMap.js.map +1 -1
- package/lib/esm/system/io/ABufferInStream.js.map +1 -1
- package/lib/esm/system/io/InStream.js.map +1 -1
- package/lib/esm/system/io/OutStream.js.map +1 -1
- package/lib/esm/system/runtime/ALong.js.map +1 -1
- package/lib/esm/system/runtime/ASystem.js.map +1 -1
- package/lib/esm/system/runtime/Downloader.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/esm/system/runtime/Message.js.map +1 -1
- package/lib/esm/system/runtime/Numbers.js.map +1 -1
- package/lib/esm/system/runtime/Strings.js.map +1 -1
- package/lib/esm/system/runtime/iComparator.js.map +1 -1
- package/lib/esm/system/storage/CacheList.js.map +1 -1
- package/lib/esm/system/storage/CachedItem.js.map +1 -1
- package/lib/esm/system/storage/ContentLoader.js.map +1 -1
- package/lib/esm/system/storage/FileContent.js.map +1 -1
- package/lib/esm/system/storage/FileRange.js.map +1 -1
- package/lib/esm/system/storage/FileStorage.js.map +1 -1
- package/lib/esm/system/storage/NodeFS.js.map +1 -1
- package/lib/esm/system/storage/PageCachedFile.js.map +1 -1
- package/lib/esm/system/storage/UrlFS.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CRSManager.js","sourceRoot":"","sources":["../../../../src/spatial/crs/CRSManager.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,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,EAAE,SAAS,CAAC,CAAC;QAChE,qBAAqB;QACrB,IAAI,IAAI,GAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;QAC3D,IAAI,IAAI,GAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;QAC3D,IAAI,IAAI,GAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;QAC1D,0BAA0B;QAC1B,SAAS,GAAG,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9D,SAAS,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QACnF,OAAO,SAAS,CAAC;IACrB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"CRSManager.js","sourceRoot":"","sources":["../../../../src/spatial/crs/CRSManager.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C;;GAEG;AACH,gBAAgB;AAChB,MAAM,OAAO,UAAU;IACnB,+FAA+F;IACxF,MAAM,CAAC,MAAM,GAAc,IAAI,CAAC;IAEvC;;OAEG;IACH;IACA,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,GAAW,EAAE,IAAY;QACxD,IAAI,UAAU,CAAC,MAAM,IAAI,IAAI;YA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I,IAAI,GAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;QAC1D,0BAA0B;QAC1B,SAAS,GAAG,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9D,SAAS,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QACnF,OAAO,SAAS,CAAC;IACrB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.spatial.crs;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\n\nimport { Strings } from \"../../system/runtime/Strings\";\nimport { Bounds } from \"../geom/Bounds\";\nimport { Coordinate } from \"../geom/Coordinate\";\nimport { Transform } from \"../geom/Transform\";\nimport { CRSEngine } from \"./CRSEngine\";\n\n/**\n * Class CRSManager defines the main access point to the CRS transformation engine.\n */\n/** @internal */\nexport class CRSManager {\n /** The main instance of the CRS engine. This needs to be set by the application on startup. */\n public static ENGINE: CRSEngine = null;\n\n /**\n * Allow no instances, all methods are static.\n */\n private constructor() {\n }\n\n /**\n * Prepare a CRS for making transforms in a certain area.\n * @param crs the CRS to prepare.\n * @param area the area to prepare for (can be invalid to prepare only for the crs).\n */\n public static async prepareForArea(crs: string, area: Bounds): Promise<Bounds> {\n if (CRSManager.ENGINE == null) return area;\n return CRSManager.ENGINE.prepareForArea(crs, area);\n }\n\n /**\n * Transform a coordinate from one CRS to another.\n * @param point the point coordinate.\n * @param sourceCRS the source CRS.\n * @param targetCRS the target CRS.\n * @return the transformed coordinate.\n */\n public static transformPoint(point: Coordinate, sourceCRS: string, targetCRS: string): Coordinate {\n if (CRSManager.ENGINE == null) return point;\n return CRSManager.ENGINE.transformPoint(point, sourceCRS, targetCRS);\n }\n\n /**\n * Transform spatial bounds from one CRS to another.\n * @param point the point coordinate.\n * @param sourceCRS the source CRS.\n * @param targetCRS the target CRS.\n * @return the transformed bounds.\n */\n public static transformBounds(bounds: Bounds, sourceCRS: string, targetCRS: string): Bounds {\n if (CRSManager.ENGINE == null) return bounds;\n return CRSManager.ENGINE.transformBounds(bounds, sourceCRS, targetCRS);\n }\n\n /**\n * Create an approximate 3D transformation from a source to a target CRS.\n * @param sourceCRS the source CRS.\n * @param sourcePoint the origin point in the source CRS.\n * @param targetCRS the target CRS.\n * @return the transform.\n */\n public static createTransform(sourceCRS: string, sourcePoint: Coordinate, targetCRS: string): Transform {\n /* Check */\n let transform: Transform = new Transform();\n if (CRSManager.ENGINE == null) return transform;\n if (sourceCRS == null) return transform;\n if (targetCRS == null) return transform;\n if (sourcePoint == null) return transform;\n /* Same? */\n if (Strings.equals(targetCRS, sourceCRS)) return transform;\n /* Transform X and Y at 100 meter distance (assume Z is metric) */\n let sizeXY: float64 = 100.0;\n if (CRSManager.ENGINE.isGeographicCRS(sourceCRS)) sizeXY = (sizeXY / 40000000.0 * 360.0);\n let sizeZ: float64 = 100.0;\n /* Create the frame */\n let p0: Coordinate = sourcePoint.copy();\n let pX: Coordinate = p0.copy();\n pX.add0(new Coordinate(sizeXY, 0.0, 0.0));\n let pY: Coordinate = p0.copy();\n pY.add0(new Coordinate(0.0, sizeXY, 0.0));\n let pZ: Coordinate = p0.copy();\n pZ.add0(new Coordinate(0.0, 0.0, sizeZ));\n /* Transform the frame */\n p0 = CRSManager.ENGINE.transformPoint(p0, sourceCRS, targetCRS);\n pX = CRSManager.ENGINE.transformPoint(pX, sourceCRS, targetCRS);\n pY = CRSManager.ENGINE.transformPoint(pY, sourceCRS, targetCRS);\n pZ = CRSManager.ENGINE.transformPoint(pZ, sourceCRS, targetCRS);\n /* Get the columns */\n let colX: Coordinate = pX.subtract(p0).scale(1.0 / sizeXY);\n let colY: Coordinate = pY.subtract(p0).scale(1.0 / sizeXY);\n let colZ: Coordinate = pZ.subtract(p0).scale(1.0 / sizeZ);\n /* Create the transform */\n transform = Transform.createWithColumns(colX, colY, colZ, p0);\n transform.translate(-sourcePoint.getX(), -sourcePoint.getY(), -sourcePoint.getZ());\n return transform;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Axis.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/Axis.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH;;;;;;;;;;;GAWG;AACH,gBAAgB;AAChB,MAAM,OAAO,IAAI;IACb,eAAe;IACP,KAAK,CAAQ;IACrB,oBAAoB;IACZ,SAAS,CAAS;IAC1B,2BAA2B;IACnB,gBAAgB,CAAS;IACjC,uBAAuB;IACf,aAAa,CAAS;IAC9B,mCAAmC;IAC3B,SAAS,CAAQ;IACzB,qBAAqB;IACb,MAAM,CAAQ;IAEtB;;;;;;;;OAQG;IACH,YAAmB,IAAW,EAAE,QAAgB,EAAE,eAAuB,EAAE,YAAoB,EAAE,QAAe,EAAE,KAAY;QAC1H,sBAAsB;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,kBAAkB;QACrB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED;;;OAGG;IACI,eAAe;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,aAAa,GAAG,IAAI,CAAC,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,GAAG,kBAAkB,GAAG,IAAI,CAAC,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACtN,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"Axis.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/Axis.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH;;;;;;;;;;;GAWG;AACH,gBAAgB;AAChB,MAAM,OAAO,IAAI;IACb,eAAe;IACP,KAAK,CAAQ;IACrB,oBAAoB;IACZ,SAAS,CAAS;IAC1B,2BAA2B;IACnB,gBAAgB,CAAS;IACjC,uBAAuB;IACf,aAAa,CAAS;IAC9B,mCAAmC;IAC3B,SAAS,CAAQ;IACzB,qBAAqB;IACb,MAAM,CAAQ;IAEtB;;;;;;;;OAQG;IACH,YAAmB,IAAW,EAAE,QAAgB,EAAE,eAAuB,EAAE,YAAoB,EAAE,QAAe,EAAE,KAAY;QAC1H,sBAAsB;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,kBAAkB;QACrB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED;;;OAGG;IACI,eAAe;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,aAAa,GAAG,IAAI,CAAC,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,GAAG,kBAAkB,GAAG,IAAI,CAAC,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACtN,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.spatial.ecrs;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\n/**\n * Class Axis defines the parameters of a coordinate axis.\n *\n * Based on the following document:\n *\n * Coordinate Conversions and Transformations including Formulas\n * Guidance Note Number 7, part 2\n * Revised May 2005\n * Available at: http://www.epsg.org/\n *\n * @version 1.0 July 2008\n */\n/** @internal */\nexport class Axis {\n /** The code */\n private _code: int32;\n /** The axis name */\n private _axisName: string;\n /** The axis orientation */\n private _axisOrientation: string;\n /** The abbreviation */\n private _abbreviation: string;\n /** The unit-of-measurement code */\n private _unitCode: int32;\n /** The axis order */\n private _order: int32;\n\n /**\n * Create a new axis.\n * @param code the code.\n * @param axisName the name of the axis.\n * @param axisOrientation the orientation of the axis.\n * @param abbreviation the abbreviation.\n * @param unitCode the unit-of-measurement code.\n * @param order the axis order.\n */\n public constructor(code: int32, axisName: string, axisOrientation: string, abbreviation: string, unitCode: int32, order: int32) {\n /* Store parameters */\n this._code = code;\n this._axisName = axisName;\n this._axisOrientation = axisOrientation;\n this._abbreviation = abbreviation;\n this._unitCode = unitCode;\n this._order = order;\n }\n\n /**\n * Get the code.\n * @return the code.\n */\n public getCode(): int32 {\n return this._code;\n }\n\n /**\n * Get the axis name.\n * @return the axis name.\n */\n public getAxisName(): string {\n return this._axisName;\n }\n\n /**\n * Get the axis orientation.\n * @return the axis orientation.\n */\n public getAxisOrientation(): string {\n return this._axisOrientation;\n }\n\n /**\n * Get the abbreviation.\n * @return the abbreviation.\n */\n public getAbbreviation(): string {\n return this._abbreviation;\n }\n\n /**\n * Get the unit-of-measurement code.\n * @return the unit-of-measurement code.\n */\n public getUnitCode(): int32 {\n return this._unitCode;\n }\n\n /**\n * Get the axis order.\n * @return the axis order.\n */\n public getOrder(): int32 {\n return this._order;\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[Axis:code=\" + this._code + \",name='\" + this._axisName + \"',orientation='\" + this._axisOrientation + \"',abbreviation='\" + this._abbreviation + \"',unit=\" + this._unitCode + \",order=\" + this._order + \"]\";\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CRS.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/CRS.ts"],"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O,eAAe,CAAC;QACzD,IAAI,OAAO,IAAI,GAAG,CAAC,aAAa;YAAE,OAAO,eAAe,CAAC;QACzD,IAAI,OAAO,IAAI,GAAG,CAAC,SAAS;YAAE,OAAO,WAAW,CAAC;QACjD,IAAI,OAAO,IAAI,GAAG,CAAC,QAAQ;YAAE,OAAO,UAAU,CAAC;QAC/C,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,GAAG,aAAa,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC;IAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.spatial.ecrs;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { AList } from \"../../system/collection/AList\";\r\nimport { ASystem } from \"../../system/runtime/ASystem\";\r\nimport { Strings } from \"../../system/runtime/Strings\";\r\nimport { Coordinate } from \"../geom/Coordinate\";\r\nimport { Axis } from \"./Axis\";\r\nimport { CoordinateSystem } from \"./CoordinateSystem\";\r\nimport { Datum } from \"./Datum\";\r\nimport { Ellipsoid } from \"./Ellipsoid\";\r\nimport { Operation } from \"./Operation\";\r\nimport { OperationMethod } from \"./OperationMethod\";\r\nimport { Registry } from \"./Registry\";\r\nimport { Transform } from \"./Transform\";\r\nimport { Unit } from \"./Unit\";\r\nimport { VerticalModel } from \"./VerticalModel\";\r\n\r\n/**\r\n * Class CRS defines the parameters of a coordinate reference system.\r\n * NOTE: geographic (lon-lat) CRSs have their coordinates in degrees (0..360) instead of radians (0..2PI).\r\n * NOTE: geocentric (ECEF) CRSs have their coordinates in meters.\r\n *\r\n * Based on the following document:\r\n *\r\n * Coordinate Conversions and Transformations including Formulas\r\n * Guidance Note Number 7, part 2\r\n * Revised May 2005\r\n * Available at: http://www.epsg.org/\r\n *\r\n * @version 1.0 July 2005\r\n */\r\n/** @internal */\r\nexport class CRS {\r\n /** The type of a compound CRS */\r\n public static readonly COMPOUND: int32 = 1;\r\n /** The type of a engineering CRS */\r\n public static readonly ENGINEERING: int32 = 2;\r\n /** The type of a geocentric CRS */\r\n public static readonly GEOCENTRIC: int32 = 3;\r\n /** The type of a geographic-2D CRS */\r\n public static readonly GEOGRAPHIC_2D: int32 = 4;\r\n /** The type of a geographic-3D CRS */\r\n public static readonly GEOGRAPHIC_3D: int32 = 5;\r\n /** The type of a projected CRS */\r\n public static readonly PROJECTED: int32 = 6;\r\n /** The type of a vertical CRS */\r\n public static readonly VERTICAL: int32 = 7;\r\n\r\n /** The identification code of the WGS 84 geocentric reference system */\r\n public static readonly WGS84_GEOCENTRIC_CRS_CODE: int32 = 4978;\r\n /** The identification code of the WGS 84 3D coordinate reference system */\r\n public static readonly WGS84_3D_CRS_CODE: int32 = 4979;\r\n /** The identification code of the WGS 84 2D coordinate reference system */\r\n public static readonly WGS84_2D_CRS_CODE: int32 = 4326;\r\n /** The identification code of the WGS 84 datum */\r\n private static readonly WGS84_DATUM_CODE: int32 = 6326;\r\n\r\n /** The identification code of the WGS 84 geocentric coordinate reference system */\r\n public static readonly CRS_WGS84_GEOCENTRIC: string = \"4978\";\r\n /** The identification code of the WGS 84 geographic coordinate reference system */\r\n public static readonly CRS_WGS84_3D: string = \"4979\";\r\n /** The identification code of the WGS 84 2D coordinate reference system */\r\n public static readonly CRS_WGS84_2D: string = \"4326\";\r\n\r\n /** The cache of the WGS 84 geocentric coordinate reference system (4978) */\r\n private static _CACHE_WGS84_GEOCENTRIC: CRS = null;\r\n /** The cache of the WGS 84 geographic coordinate reference system (4979) */\r\n private static _CACHE_WGS84_3D: CRS = null;\r\n /** The cache of the WGS 84 2D coordinate reference system (4326) */\r\n private static _CACHE_WGS84_2D: CRS = null;\r\n\r\n /** The code */\r\n private _code: int32;\r\n /** The name */\r\n private _name: string;\r\n /** The area of use */\r\n private _area: int32;\r\n /** The type (PROJECTED,GEOGRAPHIC_2D,GEOGRAPHIC_3D,GEOCENTRIC,VERTICAL,COMPOUND,...) */\r\n private _type: int32;\r\n\r\n /** The coordinate-system code */\r\n private _csCode: int32;\r\n /** The coordinate axes (defined by the csCode) */\r\n private _axes: AList<Axis>;\r\n /** The coordinate system (can be null) */\r\n private _coordinateSystem: CoordinateSystem;\r\n /** The datum */\r\n private _datum: Datum;\r\n\r\n /** The base geographic CRS */\r\n private _baseCRS: CRS;\r\n /** The projection (from the base CRS to this CRS) */\r\n private _projection: Operation;\r\n\r\n /** The transformations from the base geocentric CRS to the geocentric WGS (CRS 4326) */\r\n private _transformationsToWGS: AList<Operation>;\r\n /** The default transformation from the base geocentric CRS to the geocentric WGS (CRS 4326) */\r\n private _transformationToWGS: Operation;\r\n\r\n /** The horizontal CRS (type COMPOUND) */\r\n private _horizontalComponent: CRS;\r\n /** The vertical CRS (type COMPOUND) */\r\n private _verticalComponent: CRS;\r\n /** The vertical model (type VERTICAL) */\r\n private _verticalModel: VerticalModel;\r\n\r\n /** The text information (WKT) of the CRS */\r\n private _textForm: string;\r\n\r\n /** The access time of the CRS (for garbage collecting the dynamic CRS) */\r\n private _accessTime: float64;\r\n\r\n /**\r\n * Create a new CRS.\r\n * @param code the code.\r\n * @param name the name.\r\n * @param area the area of use.\r\n * @param type the type.\r\n * @param csCode the coordinate-system code.\r\n * @param datum the datum.\r\n * @param baseCRS the base geographic CRS.\r\n * @param projection the projection (from the base CRS to this CRS).\r\n * @param transformationsToWGS the transformations from the base geographic CRS to the WGS 84 datum (of CRS 4326).\r\n */\r\n public constructor(code: int32, name: string, area: int32, type: int32, csCode: int32, datum: Datum, baseCRS: CRS, projection: Operation, transformationsToWGS: AList<Operation>) {\r\n /* Store the parameters */\r\n this._code = code;\r\n this._name = name;\r\n this._area = area;\r\n this._type = type;\r\n this._csCode = csCode;\r\n this._axes = null;\r\n this._coordinateSystem = null;\r\n this._datum = datum;\r\n this._baseCRS = baseCRS;\r\n this._projection = projection;\r\n this._transformationsToWGS = transformationsToWGS;\r\n /* Get the default transform */\r\n this._transformationToWGS = Operation.getLatestTransformation(transformationsToWGS);\r\n /* Clear */\r\n this._horizontalComponent = null;\r\n this._verticalComponent = null;\r\n this._verticalModel = null;\r\n this._textForm = null;\r\n this._accessTime = 0.0;\r\n }\r\n\r\n /**\r\n * Create a compound CRS.\r\n * @param code the code.\r\n * @param name the name.\r\n * @param area the area of use.\r\n * @param horizontalCRS the horizontal CRS.\r\n * @param verticalCRS the vertical CRS.\r\n * @return the compound CRS.\r\n */\r\n public static createCompound(code: int32, name: string, area: int32, horizontalCRS: CRS, verticalCRS: CRS): CRS {\r\n /* Check the parameters */\r\n ASystem.assertNot(horizontalCRS == null, \"No horizontal CRS\");\r\n ASystem.assertNot(verticalCRS == null, \"No vertical CRS\");\r\n ASystem.assertNot(horizontalCRS.isVertical(), \"CRS is not horizontal: \" + horizontalCRS);\r\n ASystem.assertNot(verticalCRS.isVertical() == false, \"CRS is not vertical: \" + verticalCRS);\r\n /* Make the CRS */\r\n let crs: CRS = new CRS(code, name, area, CRS.COMPOUND, 0/*csCode*/, null/*datum*/, null/*baseCRS*/, null/*projection*/, null/*transformationsToWGS*/);\r\n crs._horizontalComponent = horizontalCRS;\r\n crs._verticalComponent = verticalCRS;\r\n /* Return the CRS */\r\n return crs;\r\n }\r\n\r\n /**\r\n * Get the code.\r\n * @return the code.\r\n */\r\n public getCode(): int32 {\r\n return this._code;\r\n }\r\n\r\n /**\r\n * Get the string code.\r\n * @return the string code.\r\n */\r\n public getStringCode(): string {\r\n return \"\" + this._code;\r\n }\r\n\r\n /**\r\n * Check if a code matches the CRS code.\r\n * @param code the code.\r\n * @return true if the code matches.\r\n */\r\n public hasStringCode(code: string): boolean {\r\n return Strings.equals(code, this.getStringCode());\r\n }\r\n\r\n /**\r\n * Get the name.\r\n * @return the name.\r\n */\r\n public getName(): string {\r\n return this._name;\r\n }\r\n\r\n /**\r\n * Get the area of use.\r\n * @return the area.\r\n */\r\n public getArea(): int32 {\r\n return this._area;\r\n }\r\n\r\n /**\r\n * Get the type.\r\n * @return the type.\r\n */\r\n public getType(): int32 {\r\n return this._type;\r\n }\r\n\r\n /**\r\n * Get the type label.\r\n * @return the type label.\r\n */\r\n public getTypeLabel(): string {\r\n return CRS.labelCRSType(this._type);\r\n }\r\n\r\n /**\r\n * Is this a geocentric CRS?\r\n * @return true for a geocentric CRS.\r\n */\r\n public isGeoCentric(): boolean {\r\n return (this._type == CRS.GEOCENTRIC);\r\n }\r\n\r\n /**\r\n * Is this a geographic CRS?\r\n * @return true for a projected CRS.\r\n */\r\n public isGeoGraphic(): boolean {\r\n return (this._type == CRS.GEOGRAPHIC_2D || this._type == CRS.GEOGRAPHIC_3D);\r\n }\r\n\r\n /**\r\n * Is this a geographic 2D CRS?\r\n * @return true for a projected 2D CRS.\r\n */\r\n public isGeoGraphic2D(): boolean {\r\n return (this._type == CRS.GEOGRAPHIC_2D);\r\n }\r\n\r\n /**\r\n * Is this a geographic 3D CRS?\r\n * @return true for a projected 3D CRS.\r\n */\r\n public isGeoGraphic3D(): boolean {\r\n return (this._type == CRS.GEOGRAPHIC_3D);\r\n }\r\n\r\n /**\r\n * Is this a projected CRS?\r\n * @return true for a projected CRS.\r\n */\r\n public isProjectedType(): boolean {\r\n return (this._type == CRS.PROJECTED);\r\n }\r\n\r\n /**\r\n * Is this a projected CRS?\r\n * @return true for a projected CRS.\r\n */\r\n public isProjected(): boolean {\r\n if (this._type == CRS.COMPOUND) return this._horizontalComponent.isProjected();\r\n return (this._type == CRS.PROJECTED);\r\n }\r\n\r\n /**\r\n * Is this a vertical CRS?\r\n * @return true for a vertical CRS.\r\n */\r\n public isVertical(): boolean {\r\n return (this._type == CRS.VERTICAL);\r\n }\r\n\r\n /**\r\n * Is this a compound CRS?\r\n * @return true for a compound CRS.\r\n */\r\n public isCompound(): boolean {\r\n return (this._type == CRS.COMPOUND);\r\n }\r\n\r\n /**\r\n * Get the coordinate-system code.\r\n * @return the coordinate-system code.\r\n */\r\n public getCoordinateSystemCode(): int32 {\r\n return this._csCode;\r\n }\r\n\r\n /**\r\n * Get the coordinate system.\r\n * @return the coordinate system (can be null if standard).\r\n */\r\n public getCoordinateSystem(): CoordinateSystem {\r\n return this._coordinateSystem;\r\n }\r\n\r\n /**\r\n * Get the datum.\r\n * @return the datum.\r\n */\r\n public getDatum(): Datum {\r\n if (this._datum != null) return this._datum;\r\n if (this._baseCRS != null) return this._baseCRS.getDatum();\r\n return null;\r\n }\r\n\r\n /**\r\n * Get the code of the datum.\r\n * @return the code of the datum (0 if there is no datum).\r\n */\r\n public getDatumCode(): int32 {\r\n let datum: Datum = this.getDatum();\r\n return (datum == null) ? 0 : datum.getCode();\r\n }\r\n\r\n /**\r\n * Set the datum.\r\n * @param datum the new datum (if null check the base CRS).\r\n */\r\n public setDatum(datum: Datum): void {\r\n this._datum = datum;\r\n }\r\n\r\n /**\r\n * Get the ellipsoid.\r\n * @return the ellipsoid.\r\n */\r\n public getEllipsoid(): Ellipsoid {\r\n return this.getDatum().getEllipsoid();\r\n }\r\n\r\n /**\r\n * Get the base geographic CRS.\r\n * @return the base geographic CRS.\r\n */\r\n public getBaseCRS(): CRS {\r\n return this._baseCRS;\r\n }\r\n\r\n /**\r\n * Set the base geographic CRS.\r\n * @param baseCRS the new base geographic CRS.\r\n */\r\n public setBaseCRS(baseCRS: CRS): void {\r\n this._baseCRS = baseCRS;\r\n }\r\n\r\n /**\r\n * Get the coordinate axis of the CRS.\r\n * @return the coordinate axis of the CRS.\r\n */\r\n public getAxes(): AList<Axis> {\r\n return this._axes;\r\n }\r\n\r\n /**\r\n * Set the coordinate axis of the CRS.\r\n * @param axis the coordinate axis of the CRS.\r\n */\r\n public setAxes(axes: AList<Axis>): void {\r\n /* Store the parameters */\r\n this._axes = axes;\r\n /* Update the coordinate system */\r\n this._coordinateSystem = CoordinateSystem.create(this._type, this._csCode, this._axes);\r\n }\r\n\r\n /**\r\n * Get the unit code of the first coordinate axis of the CRS.\r\n * @return the unit code (defaults to METER).\r\n */\r\n public getFirstAxisUnitCode(): int32 {\r\n if (this._type == CRS.COMPOUND) return this._horizontalComponent.getFirstAxisUnitCode();\r\n if (this._axes == null) return Unit.METER;\r\n if (this._axes.size() == 0) return Unit.METER;\r\n return this._axes.get(0).getUnitCode();\r\n }\r\n\r\n /**\r\n * Get the projection (from the base CRS to this CRS).\r\n * @return the projection.\r\n */\r\n public getProjection(): Operation {\r\n return this._projection;\r\n }\r\n\r\n /**\r\n * Set the projection (from the base CRS to this CRS).\r\n * @param projection the projection.\r\n */\r\n public setProjection(projection: Operation): void {\r\n this._projection = projection;\r\n }\r\n\r\n /**\r\n * Get the projection method (from the base CRS to this CRS).\r\n * @return the projection method.\r\n */\r\n public getProjectionMethod(): OperationMethod {\r\n if (this._projection == null) return null;\r\n return this._projection.getMethod();\r\n }\r\n\r\n /**\r\n * Get the horizontal component of a compound CRS.\r\n * @return the horizontal component of a compound CRS.\r\n */\r\n public getHorizontalComponent(): CRS {\r\n /* Check the type */\r\n ASystem.assertNot(this._type != CRS.COMPOUND, \"CRS \" + this._code + \" is not compound\");\r\n /* Return the component */\r\n return this._horizontalComponent;\r\n }\r\n\r\n /**\r\n * Check if there is a vertical component (only for type COMPOUND).\r\n * @return true if there is a vertical component.\r\n */\r\n public hasVerticalComponent(): boolean {\r\n /* Check the type */\r\n if (this._type != CRS.COMPOUND) return false;\r\n /* Check the component */\r\n return (this._verticalComponent != null);\r\n }\r\n\r\n /**\r\n * Get the vertical component of a compound CRS.\r\n * @return the vertical component of a compound CRS.\r\n */\r\n public getVerticalComponent(): CRS {\r\n /* Check the type */\r\n ASystem.assertNot(this._type != CRS.COMPOUND, \"CRS \" + this._code + \" is not compound\");\r\n /* Return the component */\r\n return this._verticalComponent;\r\n }\r\n\r\n /**\r\n * Get the vertical model (only for type VERTICAL).\r\n * @return the vertical model.\r\n */\r\n public getVerticalModel(): VerticalModel {\r\n return this._verticalModel;\r\n }\r\n\r\n /**\r\n * Set the vertical model (only for type VERTICAL).\r\n * @param verticalModel the vertical model.\r\n */\r\n public setVerticalModel(verticalModel: VerticalModel): void {\r\n this._verticalModel = verticalModel;\r\n }\r\n\r\n /**\r\n * Peek at the transformations from the base geographic CRS to the WGS 84 datum (of CRS 4326).\r\n * @return the transformations.\r\n */\r\n public peekTransformationsToWGS(): AList<Operation> {\r\n return this._transformationsToWGS;\r\n }\r\n\r\n /**\r\n * Get the transformations from the base geographic CRS to the WGS 84 datum (of CRS 4326).\r\n * @return the transformations.\r\n */\r\n public getTransformationsToWGS(): AList<Operation> {\r\n if ((this._transformationsToWGS != null) && (this._transformationsToWGS.size() > 0)) return this._transformationsToWGS;\r\n if (this._baseCRS != null) return this._baseCRS.getTransformationsToWGS();\r\n return new AList<Operation>();\r\n }\r\n\r\n /**\r\n * Set the transformations from the base geographic CRS to the WGS 84 datum (of CRS 4326).\r\n * @param transformations the transformations.\r\n */\r\n public setTransformationsToWGS(transformations: AList<Operation>): void {\r\n this._transformationsToWGS = transformations;\r\n }\r\n\r\n /**\r\n * Get the default transformation from the base geographic CRS to the WGS 84 datum (of CRS 4326).\r\n * @return a transformation (null if not available).\r\n */\r\n public getTransformationToWGS(): Operation {\r\n if (this._transformationToWGS != null) return this._transformationToWGS;\r\n if (this._baseCRS != null) return this._baseCRS.getTransformationToWGS();\r\n return null;\r\n }\r\n\r\n /**\r\n * Set the default transformation from the base geographic CRS to the WGS 84 datum (of CRS 4326).\r\n * @param transformation a transformation (null if not available).\r\n */\r\n public setTransformationToWGS(transformation: Operation): void {\r\n this._transformationToWGS = transformation;\r\n }\r\n\r\n /**\r\n * Convert to a geocentric coordinate.\r\n * @param local the coordinate in this CRS.\r\n * @return the geocentric coordinate.\r\n */\r\n public toGeoCentric(local: Coordinate): Coordinate {\r\n /* Projection ? */\r\n if (this._type == CRS.PROJECTED) {\r\n /* We need a geographic base CRS */\r\n ASystem.assertNot(this._baseCRS.isGeoGraphic() == false, \"Projected CRS '\" + this._code + \"' needs a geographic base CRS '\" + this._baseCRS.getCode() + \"', not '\" + this._baseCRS.getTypeLabel() + \"'\");\r\n /* Convert to standard units */\r\n let projected: Coordinate = local.copy();\r\n if (this._coordinateSystem != null) this._coordinateSystem.localToStandard(projected, projected);\r\n /* Inverse the projection to get geographic (lon,lat) coordinates (radians) */\r\n let geographic: Coordinate = new Coordinate(0.0, 0.0, 0.0);\r\n this._projection.reverse(geographic, projected);\r\n /* The geographic coordinates are in degrees */\r\n geographic.setX(geographic.getX() / Math.PI * 180.0);\r\n geographic.setY(geographic.getY() / Math.PI * 180.0);\r\n /* Let the base CRS calculate the geocentric coordinates */\r\n return this._baseCRS.toGeoCentric(geographic);\r\n }\r\n /* Geocentric ? */\r\n if (this._type == CRS.GEOCENTRIC) {\r\n /* Already geocentric */\r\n return local.copy();\r\n }\r\n /* Geographic ? */\r\n if (this._type == CRS.GEOGRAPHIC_2D || this._type == CRS.GEOGRAPHIC_3D) {\r\n /* All geographic coordinates are in degrees */\r\n let geographic: Coordinate = local.copy();\r\n geographic.setX(geographic.getX() / 180.0 * Math.PI);\r\n geographic.setY(geographic.getY() / 180.0 * Math.PI);\r\n /* Convert from geographic (radians) to geocentric */\r\n let geocentric: Coordinate = new Coordinate(0.0, 0.0, 0.0);\r\n this._datum.getEllipsoid().toGeoCentric(geographic, geocentric);\r\n /* Return the geocentric coordinates */\r\n return geocentric;\r\n }\r\n /* We cannot transform */\r\n ASystem.assertNot(true, \"No geocentric transform for \" + this);\r\n return null;\r\n }\r\n\r\n /**\r\n * Convert from a geocentric coordinate.\r\n * @param geocentric the geocentric coordinate.\r\n * @return the coordinate in this CRS.\r\n */\r\n public fromGeoCentric(geocentric: Coordinate): Coordinate {\r\n /* Projection ? */\r\n if (this._type == CRS.PROJECTED) {\r\n /* We need a geographic base CRS */\r\n ASystem.assertNot(this._baseCRS.isGeoGraphic() == false, \"Projected CRS '\" + this._code + \"' needs a geographic base CRS '\" + this._baseCRS.getCode() + \"', not '\" + this._baseCRS.getTypeLabel() + \"'\");\r\n /* Get the geographic coordinate */\r\n let geographic: Coordinate = this._baseCRS.fromGeoCentric(geocentric);\r\n /* The geographic coordinates are in degrees */\r\n geographic.setX(geographic.getX() / 180.0 * Math.PI);\r\n geographic.setY(geographic.getY() / 180.0 * Math.PI);\r\n /* Make the projection */\r\n let projected: Coordinate = new Coordinate(0.0, 0.0, 0.0);\r\n this._projection.forward(geographic, projected);\r\n /* Convert to local units */\r\n if (this._coordinateSystem != null) this._coordinateSystem.standardToLocal(projected, projected);\r\n /* Return the projected coordinate */\r\n return projected;\r\n }\r\n /* Geocentric ? */\r\n if (this._type == CRS.GEOCENTRIC) {\r\n /* Already geocentric */\r\n return geocentric.copy();\r\n }\r\n /* Geographic ? */\r\n if (this._type == CRS.GEOGRAPHIC_2D || this._type == CRS.GEOGRAPHIC_3D) {\r\n /* Convert from geocentric to geographic (radians) */\r\n let geographic: Coordinate = new Coordinate(0.0, 0.0, 0.0);\r\n this._datum.getEllipsoid().toGeoGraphic(geocentric, geographic);\r\n /* All geographic coordinates need to be in degrees */\r\n geographic.setX(geographic.getX() / Math.PI * 180.0);\r\n geographic.setY(geographic.getY() / Math.PI * 180.0);\r\n /* Return the geographic coordinate */\r\n return geographic;\r\n }\r\n /* We cannot transform */\r\n ASystem.assertNot(true, \"No geocentric transform for \" + this);\r\n return null;\r\n }\r\n\r\n /**\r\n * Check if this CRS is a projection of another CRS.\r\n * @param geographic the geographic CRS to check.\r\n * @return true if this is a projection of the geographic CRS.\r\n */\r\n public isProjectionOf(geographic: CRS): boolean {\r\n /* This has to be a projection */\r\n if (this._type != CRS.PROJECTED) return false;\r\n if (this._projection == null) return false;\r\n if (this._baseCRS == null) return false;\r\n /* We need a geographic system */\r\n if (geographic._type != CRS.GEOGRAPHIC_2D && geographic._type != CRS.GEOGRAPHIC_3D) return false;\r\n /* Is this our base CRS? */\r\n return (this._baseCRS.isCompatible(geographic));\r\n }\r\n\r\n /**\r\n * Convert from a geographic coordinate to a projected coordinate.\r\n * @param geographic the source geographic coordinate (in degrees).\r\n * @param projected the target projected coordinate (use null to create a new coordinate).\r\n * @return the projected coordinate.\r\n */\r\n public toProjected(geographic: Coordinate, projected: Coordinate): Coordinate {\r\n /* Create target? */\r\n if (projected == null) projected = new Coordinate(0.0, 0.0, 0.0);\r\n /* The geographic coordinates are kept in degrees */\r\n projected.setX(geographic.getX() / 180.0 * Math.PI);\r\n projected.setY(geographic.getY() / 180.0 * Math.PI);\r\n projected.setZ(geographic.getZ());\r\n /* Make the projection */\r\n this._projection.forward(projected, projected);\r\n /* Convert to local units */\r\n if (this._coordinateSystem != null) this._coordinateSystem.standardToLocal(projected, projected);\r\n /* Return the result */\r\n return projected;\r\n }\r\n\r\n /**\r\n * Convert from a projected coordinate to a geographic coordinate.\r\n * @param projected the source projected coordinate.\r\n * @param geographic the target geographic coordinate (in degrees) (use null to create a new coordinate).\r\n * @return the geographic coordinate.\r\n */\r\n public fromProjected(projected: Coordinate, geographic: Coordinate): Coordinate {\r\n /* Create target? */\r\n if (geographic == null) geographic = new Coordinate(0.0, 0.0, 0.0);\r\n /* Convert to standard units */\r\n let projected2: Coordinate = projected.copy();\r\n if (this._coordinateSystem != null) this._coordinateSystem.localToStandard(projected2, projected2);\r\n /* Inverse the projection to get the geographic (lon,lat) coordinates (radians) */\r\n this._projection.reverse(geographic, projected2);\r\n /* The geographic coordinates are kept in degrees */\r\n geographic.setX(geographic.getX() / Math.PI * 180.0);\r\n geographic.setY(geographic.getY() / Math.PI * 180.0);\r\n /* Return the result */\r\n return geographic;\r\n }\r\n\r\n /**\r\n * Get the WGS 84 2D geocentric reference system.\r\n * @return the WGS 84 2D geocentric reference system.\r\n */\r\n private static getWGS84_GeoCentric(): CRS {\r\n if (CRS._CACHE_WGS84_GEOCENTRIC == null) CRS._CACHE_WGS84_GEOCENTRIC = Registry.getCRS2(CRS.CRS_WGS84_GEOCENTRIC);\r\n return CRS._CACHE_WGS84_GEOCENTRIC;\r\n }\r\n\r\n /**\r\n * Get the WGS 84 2D geographic reference system.\r\n * @return the WGS 84 2D geographic reference system.\r\n */\r\n private static getWGS84_3D(): CRS {\r\n if (CRS._CACHE_WGS84_3D == null) CRS._CACHE_WGS84_3D = Registry.getCRS2(CRS.CRS_WGS84_3D);\r\n return CRS._CACHE_WGS84_3D;\r\n }\r\n\r\n /**\r\n * Get the WGS 84 2D coordinate reference system.\r\n * @return the WGS 84 2D coordinate reference system.\r\n */\r\n private static getWGS84_2D(): CRS {\r\n if (CRS._CACHE_WGS84_2D == null) CRS._CACHE_WGS84_2D = Registry.getCRS2(CRS.CRS_WGS84_2D);\r\n return CRS._CACHE_WGS84_2D;\r\n }\r\n\r\n /**\r\n * Is a conversion to and from the WGS 84 coordinate system possible?\r\n * @return true if possible.\r\n */\r\n public isWGSCompatible(): boolean {\r\n /* Already in WGS ? */\r\n if (this.getDatum().getCode() == CRS.WGS84_DATUM_CODE) return true;\r\n /* Get the transformation from the local datum to the WGS datum */\r\n let localToWGS: Operation = this.getTransformationToWGS();\r\n if (localToWGS == null) return false;\r\n /* Compatible */\r\n return true;\r\n }\r\n\r\n /**\r\n * Convert a coordinate to the WGS 84 (geographic 2D) coordinate system.\r\n * @param source the coordinates in this CRS.\r\n * @param wgsTransformationIndex the index of the WGS transformation to use (negative for the default transformation).\r\n * @return the WGS 84 coordinate, x is longitude(-180..+180), y is latitude(-90..+90) and z is height (the z height is the same as the local height).\r\n */\r\n public toWGSi(source: Coordinate, wgsTransformationIndex: int32): Coordinate {\r\n /* Already in the WGS datum ? */\r\n if (this.getDatum().getCode() == CRS.WGS84_DATUM_CODE) {\r\n /* Geocentric ? */\r\n if (this._type == CRS.GEOCENTRIC) {\r\n /* Convert from geocentric to geographic coordinates */\r\n let ageographic: Coordinate = new Coordinate(0.0, 0.0, 0.0);\r\n this._datum.getEllipsoid().toGeoGraphic(source/*geocentric*/, ageographic);\r\n /* The WGS coordinates need to be in degrees */\r\n ageographic.setX(ageographic.getX() / Math.PI * 180.0);\r\n ageographic.setY(ageographic.getY() / Math.PI * 180.0);\r\n /* Return the WGS coordinates */\r\n return ageographic;\r\n }\r\n /* Projected ? */\r\n if (this._projection != null) {\r\n /* Convert to standard units */\r\n let projected: Coordinate = source.copy();\r\n if (this._coordinateSystem != null) this._coordinateSystem.localToStandard(projected, projected);\r\n /* Inverse the projection to go from projected to geographic (lon,lat) coordinates */\r\n let ageographic: Coordinate = new Coordinate(0.0, 0.0, 0.0);\r\n this._projection.reverse(ageographic, projected);\r\n /* The WGS coordinates need to be in degrees */\r\n ageographic.setX(ageographic.getX() / Math.PI * 180.0);\r\n ageographic.setY(ageographic.getY() / Math.PI * 180.0);\r\n /* Return the WGS coordinates */\r\n return ageographic;\r\n }\r\n /* Geographic */\r\n return new Coordinate(source.getX(), source.getY(), source.getZ());\r\n }\r\n /* Get the transformation from the local datum to the WGS datum */\r\n let localToWGS: Operation = (wgsTransformationIndex < 0) ? this.getTransformationToWGS() : this.getTransformationsToWGS().get(wgsTransformationIndex);\r\n // if (localToWGS==null)\r\n // {\r\n // /* We cannot transform */\r\n // ASystem.assert(false,\"No datum transformation from \"+this+\" to WGS\");\r\n // }\r\n /* Does the transform work on the projected coordinates (like the OSTN02 grid correction)? */\r\n let geocentric: Coordinate;\r\n if ((localToWGS != null) && localToWGS.getSourceCRS().isProjected()) {\r\n /* Start with the projected coordinate */\r\n geocentric = new Coordinate(source.getX(), source.getY(), source.getZ());\r\n }\r\n else {\r\n /* Calculate the geocentric coordinate */\r\n geocentric = this.toGeoCentric(new Coordinate(source.getX(), source.getY(), source.getZ()));\r\n }\r\n /* Apply the transform to the WGS datum */\r\n if (localToWGS != null) localToWGS.forward(geocentric, geocentric);\r\n /* Get the geographic coordinate */\r\n let geographic: Coordinate = CRS.getWGS84_2D().fromGeoCentric(geocentric);\r\n /* Does the transform work on the projected coordinates (like the OSTN02 grid correction)? */\r\n if ((localToWGS != null) && localToWGS.getSourceCRS().isProjected()) {\r\n /* Assume we have the right Z */\r\n }\r\n else {\r\n /* Restore the original Z (is this allowed??) <ISSUE> */\r\n geographic.setZ(source.getZ());\r\n }\r\n /* Return the WGS geographic coordinates */\r\n return geographic;\r\n }\r\n\r\n /**\r\n * Convert a coordinate to the WGS 84 (geographic 2D) coordinate system.\r\n * @param source the coordinates in this CRS.\r\n * @return the WGS 84 coordinate, x is longitude(-180..+180), y is latitude(-90..+90) and z is height (the z height is the same as the local height).\r\n */\r\n public toWGS(source: Coordinate): Coordinate {\r\n return this.toWGSi(source, -1);\r\n }\r\n\r\n /**\r\n * Convert from the WGS 84 (geographic 2D) coordinate system to this coordinate system.\r\n * @param source the coordinates in the WGS 84 coordinate system, where x is longitude(-180..+180), y is latitude(-90..+90) and z is height.\r\n * @param wgsTransformationIndex the index of the WGS transformation to use (negative for the default transformation).\r\n * @return the coordinates in this CRS (the z height is the same as the WGS height).\r\n */\r\n public fromWGSi(source: Coordinate, wgsTransformationIndex: int32): Coordinate {\r\n /* Already in the WGS datum ? */\r\n if (this.getDatum().getCode() == CRS.WGS84_DATUM_CODE) {\r\n /* Geocentric ? */\r\n if (this._type == CRS.GEOCENTRIC) {\r\n /* Convert to radians */\r\n let lon: float64 = source.getX() / 180.0 * Math.PI;\r\n let lat: float64 = source.getY() / 180.0 * Math.PI;\r\n let geographic: Coordinate = new Coordinate(lon, lat, source.getZ());\r\n /* Convert from geographic to geocentric coordinates */\r\n let geocentric: Coordinate = new Coordinate(0.0, 0.0, 0.0);\r\n this._datum.getEllipsoid().toGeoCentric(geographic, geocentric);\r\n /* Return the geocentric coordinates */\r\n return geocentric;\r\n }\r\n /* Projected ? */\r\n if (this._projection != null) {\r\n /* Convert to radians */\r\n let lon: float64 = source.getX() / 180.0 * Math.PI;\r\n let lat: float64 = source.getY() / 180.0 * Math.PI;\r\n let geographic: Coordinate = new Coordinate(lon, lat, source.getZ());\r\n /* Use the projection to go from geographic (lon,lat) coordinates to projected coordinates */\r\n let projected: Coordinate = new Coordinate(0.0, 0.0, 0.0);\r\n this._projection.forward(geographic, projected);\r\n /* Convert to local units */\r\n if (this._coordinateSystem != null) this._coordinateSystem.standardToLocal(projected, projected);\r\n /* Return the projected coordinates */\r\n return projected;\r\n }\r\n /* Geographic */\r\n return new Coordinate(source.getX(), source.getY(), source.getZ());\r\n }\r\n /* Get the transformation from the local datum to the WGS datum */\r\n let localToWGS: Operation = (wgsTransformationIndex < 0) ? this.getTransformationToWGS() : this.getTransformationsToWGS().get(wgsTransformationIndex);\r\n // if (localToWGS==null)\r\n // {\r\n // /* We cannot transform */\r\n // ASystem.assert(false,\"No datum transformation from \"+this+\" to WGS\");\r\n // }\r\n /* Transform from the WGS datum to the local datum */\r\n let localGeocentric: Coordinate = CRS.getWGS84_2D().toGeoCentric(source/*geographic*/);\r\n if (localToWGS != null) localToWGS.reverse(localGeocentric, localGeocentric);\r\n /* Does the transform work on the projected coordinates (like the OSTN02 grid correction)? */\r\n if ((localToWGS != null) && localToWGS.getSourceCRS().isProjected()) {\r\n /* We already have the result */\r\n return localGeocentric;\r\n }\r\n else {\r\n /* Convert from geocentric to local coordinates */\r\n let local: Coordinate = this.fromGeoCentric(localGeocentric);\r\n /* Restore the original Z (is this allowed??) <ISSUE> */\r\n local.setZ(source.getZ());\r\n /* Return the local coordinates */\r\n return local;\r\n }\r\n }\r\n\r\n /**\r\n * Convert from the WGS 84 (geographic 2D) coordinate system to this coordinate system.\r\n * @param source the coordinates in the WGS 84 coordinate system, where x is longitude(-180..+180), y is latitude(-90..+90) and z is height.\r\n * @return the coordinates in this CRS (the z height is the same as the WGS height).\r\n */\r\n public fromWGS(source: Coordinate): Coordinate {\r\n return this.fromWGSi(source, -1);\r\n }\r\n\r\n /**\r\n * Check if another CRS is compatible with this one.\r\n * @param other the other CRS.\r\n * @return true if compatible.\r\n */\r\n public isCompatible(other: CRS): boolean {\r\n /* Check the base parameters */\r\n if (other._code == this._code) return true;\r\n if (other._type != this._type) return false;\r\n if (other._csCode != this._csCode) return false;\r\n /* Geographic? */\r\n if (this.isGeoCentric() || this.isGeoGraphic()) {\r\n /* Same datum? */\r\n if (Datum.areCompatible(other.getDatum(), this.getDatum()) == false) return false;\r\n /* We need the same transformation to WGS (check CRS 2039 for example: wgs compatible datum, but with geocentric translation to wgs) */\r\n if (Operation.isCompatibleOperation(other.getTransformationToWGS(), this.getTransformationToWGS()) == false) return false;\r\n return true;\r\n }\r\n /* Projected? */\r\n else if (this.isProjected()) {\r\n /* Same projection? */\r\n if (Operation.isCompatibleOperation(other._projection, this._projection) == false) return false;\r\n /* Has base CRS? */\r\n if (other._baseCRS == null || this._baseCRS == null) return false;\r\n /* Same base? */\r\n return (other._baseCRS.isCompatible(this._baseCRS));\r\n }\r\n /* Vertical? */\r\n else if (this.isVertical()) {\r\n /* Same datum? */\r\n if (Datum.areCompatible(other.getDatum(), this.getDatum()) == false) return false;\r\n return true;\r\n }\r\n /* Compound? */\r\n else if (this.isCompound()) {\r\n /* Same components? */\r\n if (CRS.areCompatible(other._horizontalComponent, this._horizontalComponent) == false) return false;\r\n if (CRS.areCompatible(other._verticalComponent, this._verticalComponent) == false) return false;\r\n return true;\r\n }\r\n /* Other */\r\n else {\r\n return false;\r\n }\r\n }\r\n\r\n /**\r\n * Check if two CRSs are compatible.\r\n * @param crs1 the first CRS.\r\n * @param crs2 the second CRS.\r\n * @return true if compatible.\r\n */\r\n public static areCompatible(crs1: CRS, crs2: CRS): boolean {\r\n if (crs1 == null) return (crs2 == null);\r\n if (crs2 == null) return false;\r\n return crs1.isCompatible(crs2);\r\n }\r\n\r\n /**\r\n * Get the text form of the CRS.\r\n * @return the text form of the CRS.\r\n */\r\n public getTextForm(): string {\r\n return this._textForm;\r\n }\r\n\r\n /**\r\n * Set the text form of the CRS.\r\n * @param textForm the text form of the CRS.\r\n */\r\n public setTextForm(textForm: string): void {\r\n this._textForm = textForm;\r\n }\r\n\r\n\t/**\r\n\t * Get the access time.\r\n\t * @return the access time.\r\n\t */\r\n public getAccessTime(): float64 {\r\n return this._accessTime;\r\n }\r\n\r\n\t/**\r\n\t * Set the access time.\r\n\t * @param time the access time.\r\n\t */\r\n public setAccessTime(time: float64): void {\r\n this._accessTime = time;\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[CRS:code=\" + this._code + \",name='\" + this._name + \"',area=\" + this._area + \",type='\" + CRS.labelCRSType(this._type) + \"',datum=\" + this._datum + \",baseCRS=\" + this._baseCRS + \",wgs-transform=\" + (this._transformationToWGS != null) + \"]\";\r\n }\r\n\r\n /**\r\n * Get the type of a CRS.\r\n * @param crsKind the type of CRS.\r\n * @return a parsed type.\r\n */\r\n public static parseCRSType(crsKind: string): int32 {\r\n if (Strings.equalsIgnoreCase(crsKind, \"compound\")) return CRS.COMPOUND;\r\n if (Strings.equalsIgnoreCase(crsKind, \"engineering\")) return CRS.ENGINEERING;\r\n if (Strings.equalsIgnoreCase(crsKind, \"geocentric\")) return CRS.GEOCENTRIC;\r\n if (Strings.equalsIgnoreCase(crsKind, \"geographic 2D\")) return CRS.GEOGRAPHIC_2D;\r\n if (Strings.equalsIgnoreCase(crsKind, \"geographic 3D\")) return CRS.GEOGRAPHIC_3D;\r\n if (Strings.equalsIgnoreCase(crsKind, \"projected\")) return CRS.PROJECTED;\r\n if (Strings.equalsIgnoreCase(crsKind, \"vertical\")) return CRS.VERTICAL;\r\n ASystem.assert0(false, \"CRS kind '\" + crsKind + \"' not found\");\r\n return 0;\r\n }\r\n\r\n /**\r\n * Get the label of a type of a CRS.\r\n * @param crsType the type of CRS.\r\n * @return a label.\r\n */\r\n public static labelCRSType(crsType: int32): string {\r\n if (crsType == CRS.COMPOUND) return \"compound\";\r\n if (crsType == CRS.ENGINEERING) return \"engineering\";\r\n if (crsType == CRS.GEOCENTRIC) return \"geocentric\";\r\n if (crsType == CRS.GEOGRAPHIC_2D) return \"geographic 2D\";\r\n if (crsType == CRS.GEOGRAPHIC_3D) return \"geographic 3D\";\r\n if (crsType == CRS.PROJECTED) return \"projected\";\r\n if (crsType == CRS.VERTICAL) return \"vertical\";\r\n ASystem.assert0(false, \"CRS type '\" + crsType + \"' not found\");\r\n return null;\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"CRS.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/CRS.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B;;;;;;;;;;;;;GAaG;AACH,gBAAgB;AAChB,MAAM,OAAO,GAAG;IACZ,iCAAiC;IAC1B,MAAM,CAAU,QAAQ,GAAU,CAAC,CAAC;IAC3C,oCAAoC;IAC7B,MAAM,CAAU,WAAW,GAAU,CAAC,CAAC;IAC9C,mCAAmC;IAC5B,MAAM,CAAU,UAAU,GAAU,CAAC,CAAC;IAC7C,sCAAsC;IAC/B,MAAM,CAAU,aAAa,GAAU,CAAC,CAAC;IAChD,sCAAsC;IAC/B,MAAM,CAAU,aAAa,GAAU,CAAC,CAAC;IAChD,kCAAkC;IAC3B,MAAM,CAAU,SAAS,GAAU,CAAC,CAAC;IAC5C,iCAAiC;IAC1B,MAAM,CAAU,QAAQ,GAAU,CAAC,CAAC;IAE3C,wEAAwE;IACj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AAO,IAAI,GAAG,CAAC,QAAQ;YAAE,OAAO,UAAU,CAAC;QAC/C,IAAI,OAAO,IAAI,GAAG,CAAC,WAAW;YAAE,OAAO,aAAa,CAAC;QACrD,IAAI,OAAO,IAAI,GAAG,CAAC,UAAU;YAAE,OAAO,YAAY,CAAC;QACnD,IAAI,OAAO,IAAI,GAAG,CAAC,aAAa;YAAE,OAAO,eAAe,CAAC;QACzD,IAAI,OAAO,IAAI,GAAG,CAAC,aAAa;YAAE,OAAO,eAAe,CAAC;QACzD,IAAI,OAAO,IAAI,GAAG,CAAC,SAAS;YAAE,OAAO,WAAW,CAAC;QACjD,IAAI,OAAO,IAAI,GAAG,CAAC,QAAQ;YAAE,OAAO,UAAU,CAAC;QAC/C,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,GAAG,aAAa,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC;IAChB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.spatial.ecrs;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { AList } from \"../../system/collection/AList\";\nimport { ASystem } from \"../../system/runtime/ASystem\";\nimport { Strings } from \"../../system/runtime/Strings\";\nimport { Coordinate } from \"../geom/Coordinate\";\nimport { Axis } from \"./Axis\";\nimport { CoordinateSystem } from \"./CoordinateSystem\";\nimport { Datum } from \"./Datum\";\nimport { Ellipsoid } from \"./Ellipsoid\";\nimport { Operation } from \"./Operation\";\nimport { OperationMethod } from \"./OperationMethod\";\nimport { Registry } from \"./Registry\";\nimport { Transform } from \"./Transform\";\nimport { Unit } from \"./Unit\";\nimport { VerticalModel } from \"./VerticalModel\";\n\n/**\n * Class CRS defines the parameters of a coordinate reference system.\n * NOTE: geographic (lon-lat) CRSs have their coordinates in degrees (0..360) instead of radians (0..2PI).\n * NOTE: geocentric (ECEF) CRSs have their coordinates in meters.\n *\n * Based on the following document:\n *\n * Coordinate Conversions and Transformations including Formulas\n * Guidance Note Number 7, part 2\n * Revised May 2005\n * Available at: http://www.epsg.org/\n *\n * @version 1.0 July 2005\n */\n/** @internal */\nexport class CRS {\n /** The type of a compound CRS */\n public static readonly COMPOUND: int32 = 1;\n /** The type of a engineering CRS */\n public static readonly ENGINEERING: int32 = 2;\n /** The type of a geocentric CRS */\n public static readonly GEOCENTRIC: int32 = 3;\n /** The type of a geographic-2D CRS */\n public static readonly GEOGRAPHIC_2D: int32 = 4;\n /** The type of a geographic-3D CRS */\n public static readonly GEOGRAPHIC_3D: int32 = 5;\n /** The type of a projected CRS */\n public static readonly PROJECTED: int32 = 6;\n /** The type of a vertical CRS */\n public static readonly VERTICAL: int32 = 7;\n\n /** The identification code of the WGS 84 geocentric reference system */\n public static readonly WGS84_GEOCENTRIC_CRS_CODE: int32 = 4978;\n /** The identification code of the WGS 84 3D coordinate reference system */\n public static readonly WGS84_3D_CRS_CODE: int32 = 4979;\n /** The identification code of the WGS 84 2D coordinate reference system */\n public static readonly WGS84_2D_CRS_CODE: int32 = 4326;\n /** The identification code of the WGS 84 datum */\n private static readonly WGS84_DATUM_CODE: int32 = 6326;\n\n /** The identification code of the WGS 84 geocentric coordinate reference system */\n public static readonly CRS_WGS84_GEOCENTRIC: string = \"4978\";\n /** The identification code of the WGS 84 geographic coordinate reference system */\n public static readonly CRS_WGS84_3D: string = \"4979\";\n /** The identification code of the WGS 84 2D coordinate reference system */\n public static readonly CRS_WGS84_2D: string = \"4326\";\n\n /** The cache of the WGS 84 geocentric coordinate reference system (4978) */\n private static _CACHE_WGS84_GEOCENTRIC: CRS = null;\n /** The cache of the WGS 84 geographic coordinate reference system (4979) */\n private static _CACHE_WGS84_3D: CRS = null;\n /** The cache of the WGS 84 2D coordinate reference system (4326) */\n private static _CACHE_WGS84_2D: CRS = null;\n\n /** The code */\n private _code: int32;\n /** The name */\n private _name: string;\n /** The area of use */\n private _area: int32;\n /** The type (PROJECTED,GEOGRAPHIC_2D,GEOGRAPHIC_3D,GEOCENTRIC,VERTICAL,COMPOUND,...) */\n private _type: int32;\n\n /** The coordinate-system code */\n private _csCode: int32;\n /** The coordinate axes (defined by the csCode) */\n private _axes: AList<Axis>;\n /** The coordinate system (can be null) */\n private _coordinateSystem: CoordinateSystem;\n /** The datum */\n private _datum: Datum;\n\n /** The base geographic CRS */\n private _baseCRS: CRS;\n /** The projection (from the base CRS to this CRS) */\n private _projection: Operation;\n\n /** The transformations from the base geocentric CRS to the geocentric WGS (CRS 4326) */\n private _transformationsToWGS: AList<Operation>;\n /** The default transformation from the base geocentric CRS to the geocentric WGS (CRS 4326) */\n private _transformationToWGS: Operation;\n\n /** The horizontal CRS (type COMPOUND) */\n private _horizontalComponent: CRS;\n /** The vertical CRS (type COMPOUND) */\n private _verticalComponent: CRS;\n /** The vertical model (type VERTICAL) */\n private _verticalModel: VerticalModel;\n\n /** The text information (WKT) of the CRS */\n private _textForm: string;\n\n /** The access time of the CRS (for garbage collecting the dynamic CRS) */\n private _accessTime: float64;\n\n /**\n * Create a new CRS.\n * @param code the code.\n * @param name the name.\n * @param area the area of use.\n * @param type the type.\n * @param csCode the coordinate-system code.\n * @param datum the datum.\n * @param baseCRS the base geographic CRS.\n * @param projection the projection (from the base CRS to this CRS).\n * @param transformationsToWGS the transformations from the base geographic CRS to the WGS 84 datum (of CRS 4326).\n */\n public constructor(code: int32, name: string, area: int32, type: int32, csCode: int32, datum: Datum, baseCRS: CRS, projection: Operation, transformationsToWGS: AList<Operation>) {\n /* Store the parameters */\n this._code = code;\n this._name = name;\n this._area = area;\n this._type = type;\n this._csCode = csCode;\n this._axes = null;\n this._coordinateSystem = null;\n this._datum = datum;\n this._baseCRS = baseCRS;\n this._projection = projection;\n this._transformationsToWGS = transformationsToWGS;\n /* Get the default transform */\n this._transformationToWGS = Operation.getLatestTransformation(transformationsToWGS);\n /* Clear */\n this._horizontalComponent = null;\n this._verticalComponent = null;\n this._verticalModel = null;\n this._textForm = null;\n this._accessTime = 0.0;\n }\n\n /**\n * Create a compound CRS.\n * @param code the code.\n * @param name the name.\n * @param area the area of use.\n * @param horizontalCRS the horizontal CRS.\n * @param verticalCRS the vertical CRS.\n * @return the compound CRS.\n */\n public static createCompound(code: int32, name: string, area: int32, horizontalCRS: CRS, verticalCRS: CRS): CRS {\n /* Check the parameters */\n ASystem.assertNot(horizontalCRS == null, \"No horizontal CRS\");\n ASystem.assertNot(verticalCRS == null, \"No vertical CRS\");\n ASystem.assertNot(horizontalCRS.isVertical(), \"CRS is not horizontal: \" + horizontalCRS);\n ASystem.assertNot(verticalCRS.isVertical() == false, \"CRS is not vertical: \" + verticalCRS);\n /* Make the CRS */\n let crs: CRS = new CRS(code, name, area, CRS.COMPOUND, 0/*csCode*/, null/*datum*/, null/*baseCRS*/, null/*projection*/, null/*transformationsToWGS*/);\n crs._horizontalComponent = horizontalCRS;\n crs._verticalComponent = verticalCRS;\n /* Return the CRS */\n return crs;\n }\n\n /**\n * Get the code.\n * @return the code.\n */\n public getCode(): int32 {\n return this._code;\n }\n\n /**\n * Get the string code.\n * @return the string code.\n */\n public getStringCode(): string {\n return \"\" + this._code;\n }\n\n /**\n * Check if a code matches the CRS code.\n * @param code the code.\n * @return true if the code matches.\n */\n public hasStringCode(code: string): boolean {\n return Strings.equals(code, this.getStringCode());\n }\n\n /**\n * Get the name.\n * @return the name.\n */\n public getName(): string {\n return this._name;\n }\n\n /**\n * Get the area of use.\n * @return the area.\n */\n public getArea(): int32 {\n return this._area;\n }\n\n /**\n * Get the type.\n * @return the type.\n */\n public getType(): int32 {\n return this._type;\n }\n\n /**\n * Get the type label.\n * @return the type label.\n */\n public getTypeLabel(): string {\n return CRS.labelCRSType(this._type);\n }\n\n /**\n * Is this a geocentric CRS?\n * @return true for a geocentric CRS.\n */\n public isGeoCentric(): boolean {\n return (this._type == CRS.GEOCENTRIC);\n }\n\n /**\n * Is this a geographic CRS?\n * @return true for a projected CRS.\n */\n public isGeoGraphic(): boolean {\n return (this._type == CRS.GEOGRAPHIC_2D || this._type == CRS.GEOGRAPHIC_3D);\n }\n\n /**\n * Is this a geographic 2D CRS?\n * @return true for a projected 2D CRS.\n */\n public isGeoGraphic2D(): boolean {\n return (this._type == CRS.GEOGRAPHIC_2D);\n }\n\n /**\n * Is this a geographic 3D CRS?\n * @return true for a projected 3D CRS.\n */\n public isGeoGraphic3D(): boolean {\n return (this._type == CRS.GEOGRAPHIC_3D);\n }\n\n /**\n * Is this a projected CRS?\n * @return true for a projected CRS.\n */\n public isProjectedType(): boolean {\n return (this._type == CRS.PROJECTED);\n }\n\n /**\n * Is this a projected CRS?\n * @return true for a projected CRS.\n */\n public isProjected(): boolean {\n if (this._type == CRS.COMPOUND) return this._horizontalComponent.isProjected();\n return (this._type == CRS.PROJECTED);\n }\n\n /**\n * Is this a vertical CRS?\n * @return true for a vertical CRS.\n */\n public isVertical(): boolean {\n return (this._type == CRS.VERTICAL);\n }\n\n /**\n * Is this a compound CRS?\n * @return true for a compound CRS.\n */\n public isCompound(): boolean {\n return (this._type == CRS.COMPOUND);\n }\n\n /**\n * Get the coordinate-system code.\n * @return the coordinate-system code.\n */\n public getCoordinateSystemCode(): int32 {\n return this._csCode;\n }\n\n /**\n * Get the coordinate system.\n * @return the coordinate system (can be null if standard).\n */\n public getCoordinateSystem(): CoordinateSystem {\n return this._coordinateSystem;\n }\n\n /**\n * Get the datum.\n * @return the datum.\n */\n public getDatum(): Datum {\n if (this._datum != null) return this._datum;\n if (this._baseCRS != null) return this._baseCRS.getDatum();\n return null;\n }\n\n /**\n * Get the code of the datum.\n * @return the code of the datum (0 if there is no datum).\n */\n public getDatumCode(): int32 {\n let datum: Datum = this.getDatum();\n return (datum == null) ? 0 : datum.getCode();\n }\n\n /**\n * Set the datum.\n * @param datum the new datum (if null check the base CRS).\n */\n public setDatum(datum: Datum): void {\n this._datum = datum;\n }\n\n /**\n * Get the ellipsoid.\n * @return the ellipsoid.\n */\n public getEllipsoid(): Ellipsoid {\n return this.getDatum().getEllipsoid();\n }\n\n /**\n * Get the base geographic CRS.\n * @return the base geographic CRS.\n */\n public getBaseCRS(): CRS {\n return this._baseCRS;\n }\n\n /**\n * Set the base geographic CRS.\n * @param baseCRS the new base geographic CRS.\n */\n public setBaseCRS(baseCRS: CRS): void {\n this._baseCRS = baseCRS;\n }\n\n /**\n * Get the coordinate axis of the CRS.\n * @return the coordinate axis of the CRS.\n */\n public getAxes(): AList<Axis> {\n return this._axes;\n }\n\n /**\n * Set the coordinate axis of the CRS.\n * @param axis the coordinate axis of the CRS.\n */\n public setAxes(axes: AList<Axis>): void {\n /* Store the parameters */\n this._axes = axes;\n /* Update the coordinate system */\n this._coordinateSystem = CoordinateSystem.create(this._type, this._csCode, this._axes);\n }\n\n /**\n * Get the unit code of the first coordinate axis of the CRS.\n * @return the unit code (defaults to METER).\n */\n public getFirstAxisUnitCode(): int32 {\n if (this._type == CRS.COMPOUND) return this._horizontalComponent.getFirstAxisUnitCode();\n if (this._axes == null) return Unit.METER;\n if (this._axes.size() == 0) return Unit.METER;\n return this._axes.get(0).getUnitCode();\n }\n\n /**\n * Get the projection (from the base CRS to this CRS).\n * @return the projection.\n */\n public getProjection(): Operation {\n return this._projection;\n }\n\n /**\n * Set the projection (from the base CRS to this CRS).\n * @param projection the projection.\n */\n public setProjection(projection: Operation): void {\n this._projection = projection;\n }\n\n /**\n * Get the projection method (from the base CRS to this CRS).\n * @return the projection method.\n */\n public getProjectionMethod(): OperationMethod {\n if (this._projection == null) return null;\n return this._projection.getMethod();\n }\n\n /**\n * Get the horizontal component of a compound CRS.\n * @return the horizontal component of a compound CRS.\n */\n public getHorizontalComponent(): CRS {\n /* Check the type */\n ASystem.assertNot(this._type != CRS.COMPOUND, \"CRS \" + this._code + \" is not compound\");\n /* Return the component */\n return this._horizontalComponent;\n }\n\n /**\n * Check if there is a vertical component (only for type COMPOUND).\n * @return true if there is a vertical component.\n */\n public hasVerticalComponent(): boolean {\n /* Check the type */\n if (this._type != CRS.COMPOUND) return false;\n /* Check the component */\n return (this._verticalComponent != null);\n }\n\n /**\n * Get the vertical component of a compound CRS.\n * @return the vertical component of a compound CRS.\n */\n public getVerticalComponent(): CRS {\n /* Check the type */\n ASystem.assertNot(this._type != CRS.COMPOUND, \"CRS \" + this._code + \" is not compound\");\n /* Return the component */\n return this._verticalComponent;\n }\n\n /**\n * Get the vertical model (only for type VERTICAL).\n * @return the vertical model.\n */\n public getVerticalModel(): VerticalModel {\n return this._verticalModel;\n }\n\n /**\n * Set the vertical model (only for type VERTICAL).\n * @param verticalModel the vertical model.\n */\n public setVerticalModel(verticalModel: VerticalModel): void {\n this._verticalModel = verticalModel;\n }\n\n /**\n * Peek at the transformations from the base geographic CRS to the WGS 84 datum (of CRS 4326).\n * @return the transformations.\n */\n public peekTransformationsToWGS(): AList<Operation> {\n return this._transformationsToWGS;\n }\n\n /**\n * Get the transformations from the base geographic CRS to the WGS 84 datum (of CRS 4326).\n * @return the transformations.\n */\n public getTransformationsToWGS(): AList<Operation> {\n if ((this._transformationsToWGS != null) && (this._transformationsToWGS.size() > 0)) return this._transformationsToWGS;\n if (this._baseCRS != null) return this._baseCRS.getTransformationsToWGS();\n return new AList<Operation>();\n }\n\n /**\n * Set the transformations from the base geographic CRS to the WGS 84 datum (of CRS 4326).\n * @param transformations the transformations.\n */\n public setTransformationsToWGS(transformations: AList<Operation>): void {\n this._transformationsToWGS = transformations;\n }\n\n /**\n * Get the default transformation from the base geographic CRS to the WGS 84 datum (of CRS 4326).\n * @return a transformation (null if not available).\n */\n public getTransformationToWGS(): Operation {\n if (this._transformationToWGS != null) return this._transformationToWGS;\n if (this._baseCRS != null) return this._baseCRS.getTransformationToWGS();\n return null;\n }\n\n /**\n * Set the default transformation from the base geographic CRS to the WGS 84 datum (of CRS 4326).\n * @param transformation a transformation (null if not available).\n */\n public setTransformationToWGS(transformation: Operation): void {\n this._transformationToWGS = transformation;\n }\n\n /**\n * Convert to a geocentric coordinate.\n * @param local the coordinate in this CRS.\n * @return the geocentric coordinate.\n */\n public toGeoCentric(local: Coordinate): Coordinate {\n /* Projection ? */\n if (this._type == CRS.PROJECTED) {\n /* We need a geographic base CRS */\n ASystem.assertNot(this._baseCRS.isGeoGraphic() == false, \"Projected CRS '\" + this._code + \"' needs a geographic base CRS '\" + this._baseCRS.getCode() + \"', not '\" + this._baseCRS.getTypeLabel() + \"'\");\n /* Convert to standard units */\n let projected: Coordinate = local.copy();\n if (this._coordinateSystem != null) this._coordinateSystem.localToStandard(projected, projected);\n /* Inverse the projection to get geographic (lon,lat) coordinates (radians) */\n let geographic: Coordinate = new Coordinate(0.0, 0.0, 0.0);\n this._projection.reverse(geographic, projected);\n /* The geographic coordinates are in degrees */\n geographic.setX(geographic.getX() / Math.PI * 180.0);\n geographic.setY(geographic.getY() / Math.PI * 180.0);\n /* Let the base CRS calculate the geocentric coordinates */\n return this._baseCRS.toGeoCentric(geographic);\n }\n /* Geocentric ? */\n if (this._type == CRS.GEOCENTRIC) {\n /* Already geocentric */\n return local.copy();\n }\n /* Geographic ? */\n if (this._type == CRS.GEOGRAPHIC_2D || this._type == CRS.GEOGRAPHIC_3D) {\n /* All geographic coordinates are in degrees */\n let geographic: Coordinate = local.copy();\n geographic.setX(geographic.getX() / 180.0 * Math.PI);\n geographic.setY(geographic.getY() / 180.0 * Math.PI);\n /* Convert from geographic (radians) to geocentric */\n let geocentric: Coordinate = new Coordinate(0.0, 0.0, 0.0);\n this._datum.getEllipsoid().toGeoCentric(geographic, geocentric);\n /* Return the geocentric coordinates */\n return geocentric;\n }\n /* We cannot transform */\n ASystem.assertNot(true, \"No geocentric transform for \" + this);\n return null;\n }\n\n /**\n * Convert from a geocentric coordinate.\n * @param geocentric the geocentric coordinate.\n * @return the coordinate in this CRS.\n */\n public fromGeoCentric(geocentric: Coordinate): Coordinate {\n /* Projection ? */\n if (this._type == CRS.PROJECTED) {\n /* We need a geographic base CRS */\n ASystem.assertNot(this._baseCRS.isGeoGraphic() == false, \"Projected CRS '\" + this._code + \"' needs a geographic base CRS '\" + this._baseCRS.getCode() + \"', not '\" + this._baseCRS.getTypeLabel() + \"'\");\n /* Get the geographic coordinate */\n let geographic: Coordinate = this._baseCRS.fromGeoCentric(geocentric);\n /* The geographic coordinates are in degrees */\n geographic.setX(geographic.getX() / 180.0 * Math.PI);\n geographic.setY(geographic.getY() / 180.0 * Math.PI);\n /* Make the projection */\n let projected: Coordinate = new Coordinate(0.0, 0.0, 0.0);\n this._projection.forward(geographic, projected);\n /* Convert to local units */\n if (this._coordinateSystem != null) this._coordinateSystem.standardToLocal(projected, projected);\n /* Return the projected coordinate */\n return projected;\n }\n /* Geocentric ? */\n if (this._type == CRS.GEOCENTRIC) {\n /* Already geocentric */\n return geocentric.copy();\n }\n /* Geographic ? */\n if (this._type == CRS.GEOGRAPHIC_2D || this._type == CRS.GEOGRAPHIC_3D) {\n /* Convert from geocentric to geographic (radians) */\n let geographic: Coordinate = new Coordinate(0.0, 0.0, 0.0);\n this._datum.getEllipsoid().toGeoGraphic(geocentric, geographic);\n /* All geographic coordinates need to be in degrees */\n geographic.setX(geographic.getX() / Math.PI * 180.0);\n geographic.setY(geographic.getY() / Math.PI * 180.0);\n /* Return the geographic coordinate */\n return geographic;\n }\n /* We cannot transform */\n ASystem.assertNot(true, \"No geocentric transform for \" + this);\n return null;\n }\n\n /**\n * Check if this CRS is a projection of another CRS.\n * @param geographic the geographic CRS to check.\n * @return true if this is a projection of the geographic CRS.\n */\n public isProjectionOf(geographic: CRS): boolean {\n /* This has to be a projection */\n if (this._type != CRS.PROJECTED) return false;\n if (this._projection == null) return false;\n if (this._baseCRS == null) return false;\n /* We need a geographic system */\n if (geographic._type != CRS.GEOGRAPHIC_2D && geographic._type != CRS.GEOGRAPHIC_3D) return false;\n /* Is this our base CRS? */\n return (this._baseCRS.isCompatible(geographic));\n }\n\n /**\n * Convert from a geographic coordinate to a projected coordinate.\n * @param geographic the source geographic coordinate (in degrees).\n * @param projected the target projected coordinate (use null to create a new coordinate).\n * @return the projected coordinate.\n */\n public toProjected(geographic: Coordinate, projected: Coordinate): Coordinate {\n /* Create target? */\n if (projected == null) projected = new Coordinate(0.0, 0.0, 0.0);\n /* The geographic coordinates are kept in degrees */\n projected.setX(geographic.getX() / 180.0 * Math.PI);\n projected.setY(geographic.getY() / 180.0 * Math.PI);\n projected.setZ(geographic.getZ());\n /* Make the projection */\n this._projection.forward(projected, projected);\n /* Convert to local units */\n if (this._coordinateSystem != null) this._coordinateSystem.standardToLocal(projected, projected);\n /* Return the result */\n return projected;\n }\n\n /**\n * Convert from a projected coordinate to a geographic coordinate.\n * @param projected the source projected coordinate.\n * @param geographic the target geographic coordinate (in degrees) (use null to create a new coordinate).\n * @return the geographic coordinate.\n */\n public fromProjected(projected: Coordinate, geographic: Coordinate): Coordinate {\n /* Create target? */\n if (geographic == null) geographic = new Coordinate(0.0, 0.0, 0.0);\n /* Convert to standard units */\n let projected2: Coordinate = projected.copy();\n if (this._coordinateSystem != null) this._coordinateSystem.localToStandard(projected2, projected2);\n /* Inverse the projection to get the geographic (lon,lat) coordinates (radians) */\n this._projection.reverse(geographic, projected2);\n /* The geographic coordinates are kept in degrees */\n geographic.setX(geographic.getX() / Math.PI * 180.0);\n geographic.setY(geographic.getY() / Math.PI * 180.0);\n /* Return the result */\n return geographic;\n }\n\n /**\n * Get the WGS 84 2D geocentric reference system.\n * @return the WGS 84 2D geocentric reference system.\n */\n private static getWGS84_GeoCentric(): CRS {\n if (CRS._CACHE_WGS84_GEOCENTRIC == null) CRS._CACHE_WGS84_GEOCENTRIC = Registry.getCRS2(CRS.CRS_WGS84_GEOCENTRIC);\n return CRS._CACHE_WGS84_GEOCENTRIC;\n }\n\n /**\n * Get the WGS 84 2D geographic reference system.\n * @return the WGS 84 2D geographic reference system.\n */\n private static getWGS84_3D(): CRS {\n if (CRS._CACHE_WGS84_3D == null) CRS._CACHE_WGS84_3D = Registry.getCRS2(CRS.CRS_WGS84_3D);\n return CRS._CACHE_WGS84_3D;\n }\n\n /**\n * Get the WGS 84 2D coordinate reference system.\n * @return the WGS 84 2D coordinate reference system.\n */\n private static getWGS84_2D(): CRS {\n if (CRS._CACHE_WGS84_2D == null) CRS._CACHE_WGS84_2D = Registry.getCRS2(CRS.CRS_WGS84_2D);\n return CRS._CACHE_WGS84_2D;\n }\n\n /**\n * Is a conversion to and from the WGS 84 coordinate system possible?\n * @return true if possible.\n */\n public isWGSCompatible(): boolean {\n /* Already in WGS ? */\n if (this.getDatum().getCode() == CRS.WGS84_DATUM_CODE) return true;\n /* Get the transformation from the local datum to the WGS datum */\n let localToWGS: Operation = this.getTransformationToWGS();\n if (localToWGS == null) return false;\n /* Compatible */\n return true;\n }\n\n /**\n * Convert a coordinate to the WGS 84 (geographic 2D) coordinate system.\n * @param source the coordinates in this CRS.\n * @param wgsTransformationIndex the index of the WGS transformation to use (negative for the default transformation).\n * @return the WGS 84 coordinate, x is longitude(-180..+180), y is latitude(-90..+90) and z is height (the z height is the same as the local height).\n */\n public toWGSi(source: Coordinate, wgsTransformationIndex: int32): Coordinate {\n /* Already in the WGS datum ? */\n if (this.getDatum().getCode() == CRS.WGS84_DATUM_CODE) {\n /* Geocentric ? */\n if (this._type == CRS.GEOCENTRIC) {\n /* Convert from geocentric to geographic coordinates */\n let ageographic: Coordinate = new Coordinate(0.0, 0.0, 0.0);\n this._datum.getEllipsoid().toGeoGraphic(source/*geocentric*/, ageographic);\n /* The WGS coordinates need to be in degrees */\n ageographic.setX(ageographic.getX() / Math.PI * 180.0);\n ageographic.setY(ageographic.getY() / Math.PI * 180.0);\n /* Return the WGS coordinates */\n return ageographic;\n }\n /* Projected ? */\n if (this._projection != null) {\n /* Convert to standard units */\n let projected: Coordinate = source.copy();\n if (this._coordinateSystem != null) this._coordinateSystem.localToStandard(projected, projected);\n /* Inverse the projection to go from projected to geographic (lon,lat) coordinates */\n let ageographic: Coordinate = new Coordinate(0.0, 0.0, 0.0);\n this._projection.reverse(ageographic, projected);\n /* The WGS coordinates need to be in degrees */\n ageographic.setX(ageographic.getX() / Math.PI * 180.0);\n ageographic.setY(ageographic.getY() / Math.PI * 180.0);\n /* Return the WGS coordinates */\n return ageographic;\n }\n /* Geographic */\n return new Coordinate(source.getX(), source.getY(), source.getZ());\n }\n /* Get the transformation from the local datum to the WGS datum */\n let localToWGS: Operation = (wgsTransformationIndex < 0) ? this.getTransformationToWGS() : this.getTransformationsToWGS().get(wgsTransformationIndex);\n // if (localToWGS==null)\n // {\n // /* We cannot transform */\n // ASystem.assert(false,\"No datum transformation from \"+this+\" to WGS\");\n // }\n /* Does the transform work on the projected coordinates (like the OSTN02 grid correction)? */\n let geocentric: Coordinate;\n if ((localToWGS != null) && localToWGS.getSourceCRS().isProjected()) {\n /* Start with the projected coordinate */\n geocentric = new Coordinate(source.getX(), source.getY(), source.getZ());\n }\n else {\n /* Calculate the geocentric coordinate */\n geocentric = this.toGeoCentric(new Coordinate(source.getX(), source.getY(), source.getZ()));\n }\n /* Apply the transform to the WGS datum */\n if (localToWGS != null) localToWGS.forward(geocentric, geocentric);\n /* Get the geographic coordinate */\n let geographic: Coordinate = CRS.getWGS84_2D().fromGeoCentric(geocentric);\n /* Does the transform work on the projected coordinates (like the OSTN02 grid correction)? */\n if ((localToWGS != null) && localToWGS.getSourceCRS().isProjected()) {\n /* Assume we have the right Z */\n }\n else {\n /* Restore the original Z (is this allowed??) <ISSUE> */\n geographic.setZ(source.getZ());\n }\n /* Return the WGS geographic coordinates */\n return geographic;\n }\n\n /**\n * Convert a coordinate to the WGS 84 (geographic 2D) coordinate system.\n * @param source the coordinates in this CRS.\n * @return the WGS 84 coordinate, x is longitude(-180..+180), y is latitude(-90..+90) and z is height (the z height is the same as the local height).\n */\n public toWGS(source: Coordinate): Coordinate {\n return this.toWGSi(source, -1);\n }\n\n /**\n * Convert from the WGS 84 (geographic 2D) coordinate system to this coordinate system.\n * @param source the coordinates in the WGS 84 coordinate system, where x is longitude(-180..+180), y is latitude(-90..+90) and z is height.\n * @param wgsTransformationIndex the index of the WGS transformation to use (negative for the default transformation).\n * @return the coordinates in this CRS (the z height is the same as the WGS height).\n */\n public fromWGSi(source: Coordinate, wgsTransformationIndex: int32): Coordinate {\n /* Already in the WGS datum ? */\n if (this.getDatum().getCode() == CRS.WGS84_DATUM_CODE) {\n /* Geocentric ? */\n if (this._type == CRS.GEOCENTRIC) {\n /* Convert to radians */\n let lon: float64 = source.getX() / 180.0 * Math.PI;\n let lat: float64 = source.getY() / 180.0 * Math.PI;\n let geographic: Coordinate = new Coordinate(lon, lat, source.getZ());\n /* Convert from geographic to geocentric coordinates */\n let geocentric: Coordinate = new Coordinate(0.0, 0.0, 0.0);\n this._datum.getEllipsoid().toGeoCentric(geographic, geocentric);\n /* Return the geocentric coordinates */\n return geocentric;\n }\n /* Projected ? */\n if (this._projection != null) {\n /* Convert to radians */\n let lon: float64 = source.getX() / 180.0 * Math.PI;\n let lat: float64 = source.getY() / 180.0 * Math.PI;\n let geographic: Coordinate = new Coordinate(lon, lat, source.getZ());\n /* Use the projection to go from geographic (lon,lat) coordinates to projected coordinates */\n let projected: Coordinate = new Coordinate(0.0, 0.0, 0.0);\n this._projection.forward(geographic, projected);\n /* Convert to local units */\n if (this._coordinateSystem != null) this._coordinateSystem.standardToLocal(projected, projected);\n /* Return the projected coordinates */\n return projected;\n }\n /* Geographic */\n return new Coordinate(source.getX(), source.getY(), source.getZ());\n }\n /* Get the transformation from the local datum to the WGS datum */\n let localToWGS: Operation = (wgsTransformationIndex < 0) ? this.getTransformationToWGS() : this.getTransformationsToWGS().get(wgsTransformationIndex);\n // if (localToWGS==null)\n // {\n // /* We cannot transform */\n // ASystem.assert(false,\"No datum transformation from \"+this+\" to WGS\");\n // }\n /* Transform from the WGS datum to the local datum */\n let localGeocentric: Coordinate = CRS.getWGS84_2D().toGeoCentric(source/*geographic*/);\n if (localToWGS != null) localToWGS.reverse(localGeocentric, localGeocentric);\n /* Does the transform work on the projected coordinates (like the OSTN02 grid correction)? */\n if ((localToWGS != null) && localToWGS.getSourceCRS().isProjected()) {\n /* We already have the result */\n return localGeocentric;\n }\n else {\n /* Convert from geocentric to local coordinates */\n let local: Coordinate = this.fromGeoCentric(localGeocentric);\n /* Restore the original Z (is this allowed??) <ISSUE> */\n local.setZ(source.getZ());\n /* Return the local coordinates */\n return local;\n }\n }\n\n /**\n * Convert from the WGS 84 (geographic 2D) coordinate system to this coordinate system.\n * @param source the coordinates in the WGS 84 coordinate system, where x is longitude(-180..+180), y is latitude(-90..+90) and z is height.\n * @return the coordinates in this CRS (the z height is the same as the WGS height).\n */\n public fromWGS(source: Coordinate): Coordinate {\n return this.fromWGSi(source, -1);\n }\n\n /**\n * Check if another CRS is compatible with this one.\n * @param other the other CRS.\n * @return true if compatible.\n */\n public isCompatible(other: CRS): boolean {\n /* Check the base parameters */\n if (other._code == this._code) return true;\n if (other._type != this._type) return false;\n if (other._csCode != this._csCode) return false;\n /* Geographic? */\n if (this.isGeoCentric() || this.isGeoGraphic()) {\n /* Same datum? */\n if (Datum.areCompatible(other.getDatum(), this.getDatum()) == false) return false;\n /* We need the same transformation to WGS (check CRS 2039 for example: wgs compatible datum, but with geocentric translation to wgs) */\n if (Operation.isCompatibleOperation(other.getTransformationToWGS(), this.getTransformationToWGS()) == false) return false;\n return true;\n }\n /* Projected? */\n else if (this.isProjected()) {\n /* Same projection? */\n if (Operation.isCompatibleOperation(other._projection, this._projection) == false) return false;\n /* Has base CRS? */\n if (other._baseCRS == null || this._baseCRS == null) return false;\n /* Same base? */\n return (other._baseCRS.isCompatible(this._baseCRS));\n }\n /* Vertical? */\n else if (this.isVertical()) {\n /* Same datum? */\n if (Datum.areCompatible(other.getDatum(), this.getDatum()) == false) return false;\n return true;\n }\n /* Compound? */\n else if (this.isCompound()) {\n /* Same components? */\n if (CRS.areCompatible(other._horizontalComponent, this._horizontalComponent) == false) return false;\n if (CRS.areCompatible(other._verticalComponent, this._verticalComponent) == false) return false;\n return true;\n }\n /* Other */\n else {\n return false;\n }\n }\n\n /**\n * Check if two CRSs are compatible.\n * @param crs1 the first CRS.\n * @param crs2 the second CRS.\n * @return true if compatible.\n */\n public static areCompatible(crs1: CRS, crs2: CRS): boolean {\n if (crs1 == null) return (crs2 == null);\n if (crs2 == null) return false;\n return crs1.isCompatible(crs2);\n }\n\n /**\n * Get the text form of the CRS.\n * @return the text form of the CRS.\n */\n public getTextForm(): string {\n return this._textForm;\n }\n\n /**\n * Set the text form of the CRS.\n * @param textForm the text form of the CRS.\n */\n public setTextForm(textForm: string): void {\n this._textForm = textForm;\n }\n\n\t/**\n\t * Get the access time.\n\t * @return the access time.\n\t */\n public getAccessTime(): float64 {\n return this._accessTime;\n }\n\n\t/**\n\t * Set the access time.\n\t * @param time the access time.\n\t */\n public setAccessTime(time: float64): void {\n this._accessTime = time;\n }\n\n /**\n * The standard toString method.\n * @see Object#toString\n */\n public toString(): string {\n return \"[CRS:code=\" + this._code + \",name='\" + this._name + \"',area=\" + this._area + \",type='\" + CRS.labelCRSType(this._type) + \"',datum=\" + this._datum + \",baseCRS=\" + this._baseCRS + \",wgs-transform=\" + (this._transformationToWGS != null) + \"]\";\n }\n\n /**\n * Get the type of a CRS.\n * @param crsKind the type of CRS.\n * @return a parsed type.\n */\n public static parseCRSType(crsKind: string): int32 {\n if (Strings.equalsIgnoreCase(crsKind, \"compound\")) return CRS.COMPOUND;\n if (Strings.equalsIgnoreCase(crsKind, \"engineering\")) return CRS.ENGINEERING;\n if (Strings.equalsIgnoreCase(crsKind, \"geocentric\")) return CRS.GEOCENTRIC;\n if (Strings.equalsIgnoreCase(crsKind, \"geographic 2D\")) return CRS.GEOGRAPHIC_2D;\n if (Strings.equalsIgnoreCase(crsKind, \"geographic 3D\")) return CRS.GEOGRAPHIC_3D;\n if (Strings.equalsIgnoreCase(crsKind, \"projected\")) return CRS.PROJECTED;\n if (Strings.equalsIgnoreCase(crsKind, \"vertical\")) return CRS.VERTICAL;\n ASystem.assert0(false, \"CRS kind '\" + crsKind + \"' not found\");\n return 0;\n }\n\n /**\n * Get the label of a type of a CRS.\n * @param crsType the type of CRS.\n * @return a label.\n */\n public static labelCRSType(crsType: int32): string {\n if (crsType == CRS.COMPOUND) return \"compound\";\n if (crsType == CRS.ENGINEERING) return \"engineering\";\n if (crsType == CRS.GEOCENTRIC) return \"geocentric\";\n if (crsType == CRS.GEOGRAPHIC_2D) return \"geographic 2D\";\n if (crsType == CRS.GEOGRAPHIC_3D) return \"geographic 3D\";\n if (crsType == CRS.PROJECTED) return \"projected\";\n if (crsType == CRS.VERTICAL) return \"vertical\";\n ASystem.assert0(false, \"CRS type '\" + crsType + \"' not found\");\n return null;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoordinateSystem.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/CoordinateSystem.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAGvD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,gBAAgB;IACzB,8BAA8B;IACtB,MAAM,CAAU,MAAM,GAAW,kBAAkB,CAAC;IAE5D,4EAA4E;IACpE,KAAK,CAAQ;IACrB,iCAAiC;IACzB,OAAO,CAAQ;IACvB,kDAAkD;IAC1C,KAAK,CAAc;IAE3B,2BAA2B;IACnB,MAAM,CAAO;IACrB,2BAA2B;IACnB,MAAM,CAAO;IACrB,2BAA2B;IACnB,MAAM,CAAO;IACrB,2BAA2B;IACnB,MAAM,CAA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CAAC;QACtE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtE,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACtG,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.spatial.ecrs;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { AList } from \"../../system/collection/AList\";\r\nimport { Message } from \"../../system/runtime/Message\";\r\nimport { Strings } from \"../../system/runtime/Strings\";\r\nimport { Coordinate } from \"../geom/Coordinate\";\r\nimport { Axis } from \"./Axis\";\r\nimport { CRS } from \"./CRS\";\r\nimport { Registry } from \"./Registry\";\r\nimport { Unit } from \"./Unit\";\r\n\r\n/**\r\n * Class CoordinateSystem manages the different coordinate systems.\r\n *\r\n * @version 1.0 October 2014\r\n */\r\n/** @internal */\r\nexport class CoordinateSystem {\r\n /** The name of this module */\r\n private static readonly MODULE: string = \"CoordinateSystem\";\r\n\r\n /** The type of coordinate reference system (PROJECTED,GEOGRAPHIC_2D,...) */\r\n private _type: int32;\r\n /** The coordinate-system code */\r\n private _csCode: int32;\r\n /** The coordinate axes (defined by the csCode) */\r\n private _axes: AList<Axis>;\r\n\r\n /** The X axis (derived) */\r\n private _xAxis: Axis;\r\n /** The Y axis (derived) */\r\n private _yAxis: Axis;\r\n /** The Z axis (derived) */\r\n private _zAxis: Axis;\r\n /** The X unit (derived) */\r\n private _xUnit: Unit;\r\n /** The Y unit (derived) */\r\n private _yUnit: Unit;\r\n /** The Z unit (derived) */\r\n private _zUnit: Unit;\r\n\r\n /**\r\n * Check if easting-northing axis order is swapped?\r\n * @param csCode the code of the coordinate-system.\r\n * @return true for swapped CRS.\r\n */\r\n public static isSwappedEN(csCode: int32): boolean {\r\n if (csCode == 1029) return true;\r\n // \tif (csCode==4400) return true; // this used to be swapped in the EPSG database, but not anymore\r\n if (csCode == 4498) return true;\r\n if (csCode == 4500) return true;\r\n if (csCode == 4532) return true;\r\n return false;\r\n }\r\n\r\n /**\r\n * Create a coordinate system.\r\n * @param type the type of coordinate reference system (PROJECTED,GEOGRAPHIC_2D,...).\r\n * @param csCode the coordinate-system code.\r\n * @param axes the (sorted on order) coordinate axes.\r\n * @return the coordinate system (null for an identify system).\r\n */\r\n public static create(type: int32, csCode: int32, axes: AList<Axis>): CoordinateSystem {\r\n let coordinateSystem: CoordinateSystem = new CoordinateSystem(type, csCode, axes);\r\n if (coordinateSystem.isIdentity()) return null;\r\n return coordinateSystem;\r\n }\r\n\r\n /**\r\n * Create a new coordinate system.\r\n * @param type the type of coordinate reference system (PROJECTED,GEOGRAPHIC_2D,...).\r\n * @param csCode the coordinate-system code.\r\n * @param axes the (sorted on order) coordinate axes.\r\n */\r\n public constructor(type: int32, csCode: int32, axes: AList<Axis>) {\r\n /* Store the parameters */\r\n this._type = type;\r\n this._csCode = csCode;\r\n this._axes = axes;\r\n /* Clear */\r\n this._xAxis = null;\r\n this._yAxis = null;\r\n this._zAxis = null;\r\n this._xUnit = null;\r\n this._yUnit = null;\r\n this._zUnit = null;\r\n /* Projection? */\r\n if (type == CRS.PROJECTED) this.parseProjection();\r\n /* Log? */\r\n if (this.isIdentity() == false) {\r\n /* Log */\r\n Message.print(CoordinateSystem.MODULE, \"Created coordinate system \" + this._csCode);\r\n if (this._xAxis != null) Message.print(CoordinateSystem.MODULE, \"X axis '\" + this._xAxis.getAbbreviation() + \"'/'\" + this._xAxis.getAxisName() + \"' (\" + this._xAxis.getOrder() + \")\");\r\n if (this._yAxis != null) Message.print(CoordinateSystem.MODULE, \"Y axis '\" + this._yAxis.getAbbreviation() + \"'/'\" + this._yAxis.getAxisName() + \"' (\" + this._yAxis.getOrder() + \")\");\r\n if (this._zAxis != null) Message.print(CoordinateSystem.MODULE, \"Z axis '\" + this._zAxis.getAbbreviation() + \"'/'\" + this._zAxis.getAxisName() + \"' (\" + this._zAxis.getOrder() + \")\");\r\n if (this._xUnit != null) Message.print(CoordinateSystem.MODULE, \"X unit '\" + this._xUnit.getName() + \"'\");\r\n if (this._yUnit != null) Message.print(CoordinateSystem.MODULE, \"Y unit '\" + this._yUnit.getName() + \"'\");\r\n if (this._zUnit != null) Message.print(CoordinateSystem.MODULE, \"Z unit '\" + this._zUnit.getName() + \"'\");\r\n }\r\n }\r\n\r\n /**\r\n * Get the type of coordinate reference system (PROJECTED,GEOGRAPHIC_2D,...).\r\n * @return the type.\r\n */\r\n public getType(): int32 {\r\n return this._type;\r\n }\r\n\r\n /**\r\n * Get the code of the coordinate system.\r\n * @return the code of the coordinate system.\r\n */\r\n public getCode(): int32 {\r\n return this._csCode;\r\n }\r\n\r\n /**\r\n * Get the coordinate axes.\r\n * @return the coordinate axes.\r\n */\r\n public getAxes(): AList<Axis> {\r\n return this._axes;\r\n }\r\n\r\n /**\r\n * Do we have an identity transformation between local and standard forms?\r\n * @return true for an identity transform.\r\n */\r\n public isIdentity(): boolean {\r\n /* Check the axis */\r\n if ((this._xAxis != null) && (this._xAxis.getOrder() != 1)) return false;\r\n if ((this._yAxis != null) && (this._yAxis.getOrder() != 2)) return false;\r\n if ((this._zAxis != null) && (this._zAxis.getOrder() != 3)) return false;\r\n /* Check the units */\r\n if (this._xUnit != null) return false;\r\n if (this._yUnit != null) return false;\r\n if (this._zUnit != null) return false;\r\n /* We have identity */\r\n return true;\r\n }\r\n\r\n /**\r\n * Get the X axis.\r\n * @return the X axis.\r\n */\r\n public getXAxis(): Axis {\r\n return this._xAxis;\r\n }\r\n\r\n /**\r\n * Get the Y axis.\r\n * @return the Y axis.\r\n */\r\n public getYAxis(): Axis {\r\n return this._yAxis;\r\n }\r\n\r\n /**\r\n * Get the Z axis.\r\n * @return the Z axis.\r\n */\r\n public getZAxis(): Axis {\r\n return this._zAxis;\r\n }\r\n\r\n /**\r\n * Get the unit of the first axis.\r\n * @return the unit of the first axis (null for the default unit).\r\n */\r\n public getXUnit(): Unit {\r\n return this._xUnit;\r\n }\r\n\r\n /**\r\n * Get the unit of the second axis.\r\n * @return the unit of the second axis (null for the default unit).\r\n */\r\n public getYUnit(): Unit {\r\n return this._yUnit;\r\n }\r\n\r\n /**\r\n * Get the unit of the third axis.\r\n * @return the unit of the third axis (null for the default unit).\r\n */\r\n public getZUnit(): Unit {\r\n return this._zUnit;\r\n }\r\n\r\n /**\r\n * Parse a projection type coordinate system.\r\n */\r\n private parseProjection(): void {\r\n /* Get the abbreviations */\r\n let name1: string = this._axes.get(0).getAbbreviation();\r\n let name2: string = this._axes.get(1).getAbbreviation();\r\n // /* Get the axis names */\r\n // String aname1 = this._axis[0].getAxisName();\r\n // String aname2 = this._axis[1].getAxisName();\r\n // /* Special cases */\r\n // if (aname1.equalsIgnoreCase(\"Northing\") && aname2.equalsIgnoreCase(\"Easting\"))\r\n // {\r\n // /* Coordinate system 4531, used by CRS 2180: ETRS89 / Poland CS92 */\r\n // name1 = \"N\";\r\n // name2 = \"E\";\r\n // }\r\n /* Check the various combinations */\r\n let xy1: boolean = (Strings.equalsIgnoreCase(name1, \"X\") && Strings.equalsIgnoreCase(name2, \"Y\"));\r\n let xy2: boolean = (Strings.equalsIgnoreCase(name1, \"E\") && Strings.equalsIgnoreCase(name2, \"N\"));\r\n let xy3: boolean = (Strings.equalsIgnoreCase(name1, \"E(X)\") && Strings.equalsIgnoreCase(name2, \"N(Y)\"));\r\n let xy4: boolean = (Strings.equalsIgnoreCase(name1, \"M\") && Strings.equalsIgnoreCase(name2, \"P\")); // csCode 1024, Portuguese\r\n let yx1: boolean = (Strings.equalsIgnoreCase(name1, \"Y\") && Strings.equalsIgnoreCase(name2, \"X\"));\r\n let yx2: boolean = (Strings.equalsIgnoreCase(name1, \"N\") && Strings.equalsIgnoreCase(name2, \"E\"));\r\n /* XY sequence? */\r\n if (xy1 || xy2 || xy3 || xy4) {\r\n this._xAxis = this._axes.get(0);\r\n this._yAxis = this._axes.get(1);\r\n }\r\n /* YX sequence */\r\n else if (yx1 || yx2) {\r\n this._xAxis = this._axes.get(1);\r\n this._yAxis = this._axes.get(0);\r\n }\r\n /* Default */\r\n else {\r\n this._xAxis = this._axes.get(0);\r\n this._yAxis = this._axes.get(1);\r\n /* Log */\r\n Message.printWarning(CoordinateSystem.MODULE, \"Invalid projected axis '\" + name1 + \"','\" + name2 + \"'\");\r\n }\r\n /* Do we have a Z axis? */\r\n if (this._axes.size() >= 3) {\r\n this._zAxis = this._axes.get(2);\r\n }\r\n /* Get the units */\r\n if ((this._xAxis != null) && this._xAxis.getUnitCode() != Unit.METER) this._xUnit = Registry.getUnit(this._xAxis.getUnitCode());\r\n if ((this._yAxis != null) && this._yAxis.getUnitCode() != Unit.METER) this._yUnit = Registry.getUnit(this._yAxis.getUnitCode());\r\n if ((this._zAxis != null) && this._zAxis.getUnitCode() != Unit.METER) this._zUnit = Registry.getUnit(this._zAxis.getUnitCode());\r\n }\r\n\r\n /**\r\n * Get a local coordinate.\r\n * @param local the coordinate.\r\n * @param axis the standard axis to retrieve.\r\n * @param order the default order.\r\n * @return the coordinate.\r\n */\r\n private static getLocalCoordinate(local: Coordinate, axis: Axis, order: int32): float64 {\r\n /* Do we have an axis? */\r\n if (axis != null) order = axis.getOrder();\r\n /* Return the request coordinate */\r\n if (order == 1) return local.getX();\r\n if (order == 2) return local.getY();\r\n if (order == 3) return local.getZ();\r\n return 0.0;\r\n }\r\n\r\n /**\r\n * Convert a coordinate from the local to the standard form.\r\n * @param local the local coordinate (input).\r\n * @param standard the standard coordinate (can be same as local) (output).\r\n */\r\n public localToStandard(local: Coordinate, standard: Coordinate): void {\r\n /* Get X */\r\n let x: float64 = CoordinateSystem.getLocalCoordinate(local, this._xAxis, 1);\r\n if (this._xUnit != null) x = this._xUnit.toStandard(x);\r\n /* Get Y */\r\n let y: float64 = CoordinateSystem.getLocalCoordinate(local, this._yAxis, 2);\r\n if (this._yUnit != null) y = this._yUnit.toStandard(y);\r\n /* Get Z */\r\n let z: float64 = CoordinateSystem.getLocalCoordinate(local, this._zAxis, 3);\r\n if (this._zUnit != null) z = this._zUnit.toStandard(z);\r\n /* Set */\r\n standard.setX(x);\r\n standard.setY(y);\r\n standard.setZ(z);\r\n }\r\n\r\n /**\r\n * Get a standard coordinate.\r\n * @param x the standard x coordinate.\r\n * @param y the standard y coordinate.\r\n * @param z the standard z coordinate.\r\n * @param axis the local axis to consider.\r\n * @param index the default index.\r\n * @return the coordinate.\r\n */\r\n private getStandardCoordinate(x: float64, y: float64, z: float64, axis: Axis, index: int32): float64 {\r\n /* Check the standard index of the axis */\r\n if (axis == this._xAxis) index = 1;\r\n else if (axis == this._yAxis) index = 2;\r\n else if (axis == this._zAxis) index = 3;\r\n /* Return the coordinate */\r\n if (index == 1) return x;\r\n if (index == 2) return y;\r\n if (index == 3) return z;\r\n return 0.0;\r\n }\r\n\r\n /**\r\n * Convert a coordinate from the standard to the local form.\r\n * @param standard the standard coordinate (input).\r\n * @param local the local coordinate (can be same as standard) (output).\r\n */\r\n public standardToLocal(standard: Coordinate, local: Coordinate): void {\r\n /* Get X */\r\n let x: float64 = standard.getX();\r\n if (this._xUnit != null) x = this._xUnit.fromStandard(x);\r\n /* Get Y */\r\n let y: float64 = standard.getY();\r\n if (this._yUnit != null) y = this._yUnit.fromStandard(y);\r\n /* Get Z */\r\n let z: float64 = standard.getZ();\r\n if (this._zUnit != null) z = this._zUnit.fromStandard(z);\r\n /* Set */\r\n local.setX(this.getStandardCoordinate(x, y, z, this._axes.get(0), 1));\r\n local.setY(this.getStandardCoordinate(x, y, z, this._axes.get(1), 2));\r\n if (this._axes.size() >= 3) local.setZ(this.getStandardCoordinate(x, y, z, this._axes.get(2), 3));\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"CoordinateSystem.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/CoordinateSystem.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAGvD,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;;GAIG;AACH,gBAAgB;AAChB,MAAM,OAAO,gBAAgB;IACzB,8BAA8B;IACtB,MAAM,CAAU,MAAM,GAAW,kBAAkB,CAAC;IAE5D,4EAA4E;IACpE,KAAK,CAAQ;IACrB,iCAAiC;IACzB,OAAO,CAAQ;IACvB,kDAAkD;IAC1C,KAAK,CAAc;IAE3B,2BAA2B;IACnB,MAAM,CAAO;IACrB,2BAA2B;IACnB,MAAM,CAAO;IACrB,2BAA2B;IACnB,MAAM,CAAO;IACrB,2BAA2B;IACnB,MAAM,CAAO;IACrB,2BAA2B;IACnB,MAAM,CAAO;IACrB,2BAA2B;IACnB,MAAM,CAAO;IAErB;;;;OAIG;IACI,MAAM,CAAC,WAAW,CAAC,MAAa;QACnC,IAAI,MAAM,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAChC,sGAAsG;QACtG,IAAI,MAAM,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAChC,IAAI,MAAM,IAAI,IAAI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AI,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACtG,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//package orbitgt.spatial.ecrs;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { AList } from \"../../system/collection/AList\";\nimport { Message } from \"../../system/runtime/Message\";\nimport { Strings } from \"../../system/runtime/Strings\";\nimport { Coordinate } from \"../geom/Coordinate\";\nimport { Axis } from \"./Axis\";\nimport { CRS } from \"./CRS\";\nimport { Registry } from \"./Registry\";\nimport { Unit } from \"./Unit\";\n\n/**\n * Class CoordinateSystem manages the different coordinate systems.\n *\n * @version 1.0 October 2014\n */\n/** @internal */\nexport class CoordinateSystem {\n /** The name of this module */\n private static readonly MODULE: string = \"CoordinateSystem\";\n\n /** The type of coordinate reference system (PROJECTED,GEOGRAPHIC_2D,...) */\n private _type: int32;\n /** The coordinate-system code */\n private _csCode: int32;\n /** The coordinate axes (defined by the csCode) */\n private _axes: AList<Axis>;\n\n /** The X axis (derived) */\n private _xAxis: Axis;\n /** The Y axis (derived) */\n private _yAxis: Axis;\n /** The Z axis (derived) */\n private _zAxis: Axis;\n /** The X unit (derived) */\n private _xUnit: Unit;\n /** The Y unit (derived) */\n private _yUnit: Unit;\n /** The Z unit (derived) */\n private _zUnit: Unit;\n\n /**\n * Check if easting-northing axis order is swapped?\n * @param csCode the code of the coordinate-system.\n * @return true for swapped CRS.\n */\n public static isSwappedEN(csCode: int32): boolean {\n if (csCode == 1029) return true;\n // \tif (csCode==4400) return true; // this used to be swapped in the EPSG database, but not anymore\n if (csCode == 4498) return true;\n if (csCode == 4500) return true;\n if (csCode == 4532) return true;\n return false;\n }\n\n /**\n * Create a coordinate system.\n * @param type the type of coordinate reference system (PROJECTED,GEOGRAPHIC_2D,...).\n * @param csCode the coordinate-system code.\n * @param axes the (sorted on order) coordinate axes.\n * @return the coordinate system (null for an identify system).\n */\n public static create(type: int32, csCode: int32, axes: AList<Axis>): CoordinateSystem {\n let coordinateSystem: CoordinateSystem = new CoordinateSystem(type, csCode, axes);\n if (coordinateSystem.isIdentity()) return null;\n return coordinateSystem;\n }\n\n /**\n * Create a new coordinate system.\n * @param type the type of coordinate reference system (PROJECTED,GEOGRAPHIC_2D,...).\n * @param csCode the coordinate-system code.\n * @param axes the (sorted on order) coordinate axes.\n */\n public constructor(type: int32, csCode: int32, axes: AList<Axis>) {\n /* Store the parameters */\n this._type = type;\n this._csCode = csCode;\n this._axes = axes;\n /* Clear */\n this._xAxis = null;\n this._yAxis = null;\n this._zAxis = null;\n this._xUnit = null;\n this._yUnit = null;\n this._zUnit = null;\n /* Projection? */\n if (type == CRS.PROJECTED) this.parseProjection();\n /* Log? */\n if (this.isIdentity() == false) {\n /* Log */\n Message.print(CoordinateSystem.MODULE, \"Created coordinate system \" + this._csCode);\n if (this._xAxis != null) Message.print(CoordinateSystem.MODULE, \"X axis '\" + this._xAxis.getAbbreviation() + \"'/'\" + this._xAxis.getAxisName() + \"' (\" + this._xAxis.getOrder() + \")\");\n if (this._yAxis != null) Message.print(CoordinateSystem.MODULE, \"Y axis '\" + this._yAxis.getAbbreviation() + \"'/'\" + this._yAxis.getAxisName() + \"' (\" + this._yAxis.getOrder() + \")\");\n if (this._zAxis != null) Message.print(CoordinateSystem.MODULE, \"Z axis '\" + this._zAxis.getAbbreviation() + \"'/'\" + this._zAxis.getAxisName() + \"' (\" + this._zAxis.getOrder() + \")\");\n if (this._xUnit != null) Message.print(CoordinateSystem.MODULE, \"X unit '\" + this._xUnit.getName() + \"'\");\n if (this._yUnit != null) Message.print(CoordinateSystem.MODULE, \"Y unit '\" + this._yUnit.getName() + \"'\");\n if (this._zUnit != null) Message.print(CoordinateSystem.MODULE, \"Z unit '\" + this._zUnit.getName() + \"'\");\n }\n }\n\n /**\n * Get the type of coordinate reference system (PROJECTED,GEOGRAPHIC_2D,...).\n * @return the type.\n */\n public getType(): int32 {\n return this._type;\n }\n\n /**\n * Get the code of the coordinate system.\n * @return the code of the coordinate system.\n */\n public getCode(): int32 {\n return this._csCode;\n }\n\n /**\n * Get the coordinate axes.\n * @return the coordinate axes.\n */\n public getAxes(): AList<Axis> {\n return this._axes;\n }\n\n /**\n * Do we have an identity transformation between local and standard forms?\n * @return true for an identity transform.\n */\n public isIdentity(): boolean {\n /* Check the axis */\n if ((this._xAxis != null) && (this._xAxis.getOrder() != 1)) return false;\n if ((this._yAxis != null) && (this._yAxis.getOrder() != 2)) return false;\n if ((this._zAxis != null) && (this._zAxis.getOrder() != 3)) return false;\n /* Check the units */\n if (this._xUnit != null) return false;\n if (this._yUnit != null) return false;\n if (this._zUnit != null) return false;\n /* We have identity */\n return true;\n }\n\n /**\n * Get the X axis.\n * @return the X axis.\n */\n public getXAxis(): Axis {\n return this._xAxis;\n }\n\n /**\n * Get the Y axis.\n * @return the Y axis.\n */\n public getYAxis(): Axis {\n return this._yAxis;\n }\n\n /**\n * Get the Z axis.\n * @return the Z axis.\n */\n public getZAxis(): Axis {\n return this._zAxis;\n }\n\n /**\n * Get the unit of the first axis.\n * @return the unit of the first axis (null for the default unit).\n */\n public getXUnit(): Unit {\n return this._xUnit;\n }\n\n /**\n * Get the unit of the second axis.\n * @return the unit of the second axis (null for the default unit).\n */\n public getYUnit(): Unit {\n return this._yUnit;\n }\n\n /**\n * Get the unit of the third axis.\n * @return the unit of the third axis (null for the default unit).\n */\n public getZUnit(): Unit {\n return this._zUnit;\n }\n\n /**\n * Parse a projection type coordinate system.\n */\n private parseProjection(): void {\n /* Get the abbreviations */\n let name1: string = this._axes.get(0).getAbbreviation();\n let name2: string = this._axes.get(1).getAbbreviation();\n // /* Get the axis names */\n // String aname1 = this._axis[0].getAxisName();\n // String aname2 = this._axis[1].getAxisName();\n // /* Special cases */\n // if (aname1.equalsIgnoreCase(\"Northing\") && aname2.equalsIgnoreCase(\"Easting\"))\n // {\n // /* Coordinate system 4531, used by CRS 2180: ETRS89 / Poland CS92 */\n // name1 = \"N\";\n // name2 = \"E\";\n // }\n /* Check the various combinations */\n let xy1: boolean = (Strings.equalsIgnoreCase(name1, \"X\") && Strings.equalsIgnoreCase(name2, \"Y\"));\n let xy2: boolean = (Strings.equalsIgnoreCase(name1, \"E\") && Strings.equalsIgnoreCase(name2, \"N\"));\n let xy3: boolean = (Strings.equalsIgnoreCase(name1, \"E(X)\") && Strings.equalsIgnoreCase(name2, \"N(Y)\"));\n let xy4: boolean = (Strings.equalsIgnoreCase(name1, \"M\") && Strings.equalsIgnoreCase(name2, \"P\")); // csCode 1024, Portuguese\n let yx1: boolean = (Strings.equalsIgnoreCase(name1, \"Y\") && Strings.equalsIgnoreCase(name2, \"X\"));\n let yx2: boolean = (Strings.equalsIgnoreCase(name1, \"N\") && Strings.equalsIgnoreCase(name2, \"E\"));\n /* XY sequence? */\n if (xy1 || xy2 || xy3 || xy4) {\n this._xAxis = this._axes.get(0);\n this._yAxis = this._axes.get(1);\n }\n /* YX sequence */\n else if (yx1 || yx2) {\n this._xAxis = this._axes.get(1);\n this._yAxis = this._axes.get(0);\n }\n /* Default */\n else {\n this._xAxis = this._axes.get(0);\n this._yAxis = this._axes.get(1);\n /* Log */\n Message.printWarning(CoordinateSystem.MODULE, \"Invalid projected axis '\" + name1 + \"','\" + name2 + \"'\");\n }\n /* Do we have a Z axis? */\n if (this._axes.size() >= 3) {\n this._zAxis = this._axes.get(2);\n }\n /* Get the units */\n if ((this._xAxis != null) && this._xAxis.getUnitCode() != Unit.METER) this._xUnit = Registry.getUnit(this._xAxis.getUnitCode());\n if ((this._yAxis != null) && this._yAxis.getUnitCode() != Unit.METER) this._yUnit = Registry.getUnit(this._yAxis.getUnitCode());\n if ((this._zAxis != null) && this._zAxis.getUnitCode() != Unit.METER) this._zUnit = Registry.getUnit(this._zAxis.getUnitCode());\n }\n\n /**\n * Get a local coordinate.\n * @param local the coordinate.\n * @param axis the standard axis to retrieve.\n * @param order the default order.\n * @return the coordinate.\n */\n private static getLocalCoordinate(local: Coordinate, axis: Axis, order: int32): float64 {\n /* Do we have an axis? */\n if (axis != null) order = axis.getOrder();\n /* Return the request coordinate */\n if (order == 1) return local.getX();\n if (order == 2) return local.getY();\n if (order == 3) return local.getZ();\n return 0.0;\n }\n\n /**\n * Convert a coordinate from the local to the standard form.\n * @param local the local coordinate (input).\n * @param standard the standard coordinate (can be same as local) (output).\n */\n public localToStandard(local: Coordinate, standard: Coordinate): void {\n /* Get X */\n let x: float64 = CoordinateSystem.getLocalCoordinate(local, this._xAxis, 1);\n if (this._xUnit != null) x = this._xUnit.toStandard(x);\n /* Get Y */\n let y: float64 = CoordinateSystem.getLocalCoordinate(local, this._yAxis, 2);\n if (this._yUnit != null) y = this._yUnit.toStandard(y);\n /* Get Z */\n let z: float64 = CoordinateSystem.getLocalCoordinate(local, this._zAxis, 3);\n if (this._zUnit != null) z = this._zUnit.toStandard(z);\n /* Set */\n standard.setX(x);\n standard.setY(y);\n standard.setZ(z);\n }\n\n /**\n * Get a standard coordinate.\n * @param x the standard x coordinate.\n * @param y the standard y coordinate.\n * @param z the standard z coordinate.\n * @param axis the local axis to consider.\n * @param index the default index.\n * @return the coordinate.\n */\n private getStandardCoordinate(x: float64, y: float64, z: float64, axis: Axis, index: int32): float64 {\n /* Check the standard index of the axis */\n if (axis == this._xAxis) index = 1;\n else if (axis == this._yAxis) index = 2;\n else if (axis == this._zAxis) index = 3;\n /* Return the coordinate */\n if (index == 1) return x;\n if (index == 2) return y;\n if (index == 3) return z;\n return 0.0;\n }\n\n /**\n * Convert a coordinate from the standard to the local form.\n * @param standard the standard coordinate (input).\n * @param local the local coordinate (can be same as standard) (output).\n */\n public standardToLocal(standard: Coordinate, local: Coordinate): void {\n /* Get X */\n let x: float64 = standard.getX();\n if (this._xUnit != null) x = this._xUnit.fromStandard(x);\n /* Get Y */\n let y: float64 = standard.getY();\n if (this._yUnit != null) y = this._yUnit.fromStandard(y);\n /* Get Z */\n let z: float64 = standard.getZ();\n if (this._zUnit != null) z = this._zUnit.fromStandard(z);\n /* Set */\n local.setX(this.getStandardCoordinate(x, y, z, this._axes.get(0), 1));\n local.setY(this.getStandardCoordinate(x, y, z, this._axes.get(1), 2));\n if (this._axes.size() >= 3) local.setZ(this.getStandardCoordinate(x, y, z, this._axes.get(2), 3));\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataFileUnit.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/DataFileUnit.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAEtD,gBAAgB;AAChB,MAAM,OAAO,YAAY;IACb,MAAM,CAAC,UAAU,GAAkB,IAAI,CAAC;IACxC,MAAM,CAAC,QAAQ,CAAC,CAAgB;QACpC,CAAC,CAAC,GAAG,CAAC,6FAA6F,CAAC,CAAC;QACrG,CAAC,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;QACrC,CAAC,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;QACvD,CAAC,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;QAChE,CAAC,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;QAClE,CAAC,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAAC;QAC5D,CAAC,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACjD,CAAC,CAAC,GAAG,CAAC,qEAAqE,CAAC,CAAC;QAC7E,CAAC,CAAC,GAAG,CAAC,iEAAiE,CAAC,CAAC;QACzE,CAAC,CAAC,GAAG,CAAC,sFAAsF,CAAC,CAAC;QAC9F,CAAC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C;QACpC,CAAC;QACD,OAAO,YAAY,CAAC,UAAU,CAAC;IACnC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//generated data file, do not edit\r\n//package orbitgt.spatial.ecrs;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\nimport { AList } from \"../../system/collection/AList\";\r\n\r\n/** @internal */\r\nexport class DataFileUnit {\r\n private static DATA_LINES: AList<string> = null;\r\n private static addPart0(l: AList<string>): void {\r\n l.add(\"UOM_CODE\tUNIT_OF_MEAS_NAME\tUNIT_OF_MEAS_TYPE\tTARGET_UOM_CODE\tFACTOR_B\tFACTOR_C\tABBREVIATION\");\r\n l.add(\"1024\tbin\tscale\t9201\t1\t1\tbin\");\r\n l.add(\"1025\tmillimetre\tlength\t9001\t1\t1000\tmillimetre\");\r\n l.add(\"1026\tmetre per second\tlength\t1026\t1\t1\tmetre per second\");\r\n l.add(\"1027\tmillimetres per year\tlength\t1026\t1\t31556925445\tmm/a\");\r\n l.add(\"1028\tparts per billion\tscale\t9201\t1\t1000000000\tppb\");\r\n l.add(\"1029\tyear\ttime\t1040\t31556925.445\t1\tyear\");\r\n l.add(\"1030\tparts per billion per year\tscale\t1036\t1\t3.1556925445E+16\tppb/a\");\r\n l.add(\"1031\tmilliarc-second\tangle\t9101\t3.14159265358979\t648000000\tmsec\");\r\n l.add(\"1032\tmilliarc-seconds per year\tangle\t1035\t3.14159265358979\t2.044888768836E+16\tmsec/a\");\r\n l.add(\"1033\tcentimetre\tlength\t9001\t1\t100\tcentimetre\");\r\n l.add(\"1034\tcentimetres per year\tlength\t1026\t1\t3155692544.5\tcm/a\");\r\n l.add(\"1035\tradian per second\tangle\t1035\t1\t1\tradian per second\");\r\n l.add(\"1036\tunity per second\tscale\t1036\t1\t1\tunity per second\");\r\n l.add(\"1040\tsecond\ttime\t1040\t1\t1\tsecond\");\r\n l.add(\"1041\tparts per million per year\tscale\t1036\t1\t31556925445000\tppm/a\");\r\n l.add(\"1042\tmetres per year\tlength\t1026\t1\t31556925.445\tm/a\");\r\n l.add(\"1043\tarc-seconds per year\tangle\t1035\t3.14159265358979\t20448887688360\tsec/a\");\r\n l.add(\"9001\tmetre\tlength\t9001\t1\t1\tmetre\");\r\n l.add(\"9002\tfoot\tlength\t9001\t0.3048\t1\tfoot\");\r\n l.add(\"9003\tUS survey foot\tlength\t9001\t12\t39.37\tftUS\");\r\n l.add(\"9005\tClarke's foot\tlength\t9001\t0.3047972654\t1\tftCla\");\r\n l.add(\"9014\tfathom\tlength\t9001\t1.8288\t1\tf\");\r\n l.add(\"9030\tnautical mile\tlength\t9001\t1852\t1\tNM\");\r\n l.add(\"9031\tGerman legal metre\tlength\t9001\t1.0000135965\t1\tGLM\");\r\n l.add(\"9033\tUS survey chain\tlength\t9001\t792\t39.37\tchUS\");\r\n l.add(\"9034\tUS survey link\tlength\t9001\t7.92\t39.37\tlkUS\");\r\n l.add(\"9035\tUS survey mile\tlength\t9001\t63360\t39.37\tmiUS\");\r\n l.add(\"9036\tkilometre\tlength\t9001\t1000\t1\tkilometre\");\r\n l.add(\"9037\tClarke's yard\tlength\t9001\t0.9143917962\t1\tydCla\");\r\n l.add(\"9038\tClarke's chain\tlength\t9001\t20.1166195164\t1\tchCla\");\r\n l.add(\"9039\tClarke's link\tlength\t9001\t0.201166195164\t1\tlkCla\");\r\n l.add(\"9040\tBritish yard (Sears 1922)\tlength\t9001\t36\t39.370147\tydSe\");\r\n l.add(\"9041\tBritish foot (Sears 1922)\tlength\t9001\t12\t39.370147\tftSe\");\r\n l.add(\"9042\tBritish chain (Sears 1922)\tlength\t9001\t792\t39.370147\tchSe\");\r\n l.add(\"9043\tBritish link (Sears 1922)\tlength\t9001\t7.92\t39.370147\tlkSe\");\r\n l.add(\"9050\tBritish yard (Benoit 1895 A)\tlength\t9001\t0.9143992\t1\tydBnA\");\r\n l.add(\"9051\tBritish foot (Benoit 1895 A)\tlength\t9001\t0.9143992\t3\tftBnA\");\r\n l.add(\"9052\tBritish chain (Benoit 1895 A)\tlength\t9001\t20.1167824\t1\tchBnA\");\r\n l.add(\"9053\tBritish link (Benoit 1895 A)\tlength\t9001\t0.201167824\t1\tlkBnA\");\r\n l.add(\"9060\tBritish yard (Benoit 1895 B)\tlength\t9001\t36\t39.370113\tydBnB\");\r\n l.add(\"9061\tBritish foot (Benoit 1895 B)\tlength\t9001\t12\t39.370113\tftBnB\");\r\n l.add(\"9062\tBritish chain (Benoit 1895 B)\tlength\t9001\t792\t39.370113\tchBnB\");\r\n l.add(\"9063\tBritish link (Benoit 1895 B)\tlength\t9001\t7.92\t39.370113\tlkBnB\");\r\n l.add(\"9070\tBritish foot (1865)\tlength\t9001\t0.9144025\t3\tftBr(65)\");\r\n l.add(\"9080\tIndian foot\tlength\t9001\t12\t39.370142\tftInd\");\r\n l.add(\"9081\tIndian foot (1937)\tlength\t9001\t0.30479841\t1\tftInd(37)\");\r\n l.add(\"9082\tIndian foot (1962)\tlength\t9001\t0.3047996\t1\tftInd(62)\");\r\n l.add(\"9083\tIndian foot (1975)\tlength\t9001\t0.3047995\t1\tftInd(75)\");\r\n l.add(\"9084\tIndian yard\tlength\t9001\t36\t39.370142\tydInd\");\r\n l.add(\"9085\tIndian yard (1937)\tlength\t9001\t0.91439523\t1\tydInd(37)\");\r\n l.add(\"9086\tIndian yard (1962)\tlength\t9001\t0.9143988\t1\tydInd(62)\");\r\n l.add(\"9087\tIndian yard (1975)\tlength\t9001\t0.9143985\t1\tydInd(75)\");\r\n l.add(\"9093\tStatute mile\tlength\t9001\t1609.344\t1\tStatute mile\");\r\n l.add(\"9094\tGold Coast foot\tlength\t9001\t6378300\t20926201\tftGC\");\r\n l.add(\"9095\tBritish foot (1936)\tlength\t9001\t0.3048007491\t1\tftBr(36)\");\r\n l.add(\"9096\tyard\tlength\t9001\t0.9144\t1\tyard\");\r\n l.add(\"9097\tchain\tlength\t9001\t20.1168\t1\tch\");\r\n l.add(\"9098\tlink\tlength\t9001\t20.1168\t100\tlk\");\r\n l.add(\"9099\tBritish yard (Sears 1922 truncated)\tlength\t9001\t0.914398\t1\tydSe(T)\");\r\n l.add(\"9101\tradian\tangle\t9101\t1\t1\tradian\");\r\n l.add(\"9102\tdegree\tangle\t9101\t3.14159265358979\t180\tdeg\");\r\n l.add(\"9103\tarc-minute\tangle\t9101\t3.14159265358979\t10800\tmin\");\r\n l.add(\"9104\tarc-second\tangle\t9101\t3.14159265358979\t648000\tsec\");\r\n l.add(\"9105\tgrad\tangle\t9101\t3.14159265358979\t200\tgr\");\r\n l.add(\"9109\tmicroradian\tangle\t9101\t1\t1000000\t\\u00b5rad\");\r\n l.add(\"9110\tsexagesimal DMS\tangle\t9102\t\t\tDDD.MMSSsss\");\r\n l.add(\"9111\tsexagesimal DM\tangle\t9102\t\t\tDDD.MMm\");\r\n l.add(\"9112\tcentesimal minute\tangle\t9101\t3.14159265358979\t20000\tc\");\r\n l.add(\"9113\tcentesimal second\tangle\t9101\t3.14159265358979\t2000000\tcc\");\r\n l.add(\"9114\tmil_6400\tangle\t9101\t3.14159265358979\t3200\tmil_6400\");\r\n l.add(\"9122\tdegree (supplier to define representation)\tangle\t9101\t3.14159265358979\t180\tdeg\");\r\n l.add(\"9201\tunity\tscale\t9201\t1\t1\tunity\");\r\n l.add(\"9202\tparts per million\tscale\t9201\t1\t1000000\tparts per million\");\r\n l.add(\"9203\tcoefficient\tscale\t9201\t1\t1\tcoefficient\");\r\n l.add(\"9300\tBritish foot (Sears 1922 truncated)\tlength\t9001\t0.914398\t3\tftSe(T)\");\r\n l.add(\"9301\tBritish chain (Sears 1922 truncated)\tlength\t9001\t20.116756\t1\tchSe(T)\");\r\n l.add(\"9302\tBritish link (Sears 1922 truncated)\tlength\t9001\t20.116756\t100\tlkSe(T)\");\r\n }\r\n public static getDataLines(): AList<string> {\r\n if (DataFileUnit.DATA_LINES == null) {\r\n let lines: AList<string> = new AList<string>(78);\r\n DataFileUnit.addPart0(lines);\r\n DataFileUnit.DATA_LINES = lines;\r\n }\r\n return DataFileUnit.DATA_LINES;\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"DataFileUnit.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/DataFileUnit.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAUH,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAEtD,gBAAgB;AAChB,MAAM,OAAO,YAAY;IACb,MAAM,CAAC,UAAU,GAAkB,IAAI,CAAC;IACxC,MAAM,CAAC,QAAQ,CAAC,CAAgB;QACpC,CAAC,CAAC,GAAG,CAAC,6FAA6F,CAAC,CAAC;QACrG,CAAC,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;QACrC,CAAC,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;QACvD,CAAC,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;QAChE,CAAC,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;QAClE,CAAC,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAAC;QAC5D,CAAC,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;QACjD,CAAC,CAAC,GAAG,CAAC,qEAAqE,CAAC,CAAC;QAC7E,CAAC,CAAC,GAAG,CAAC,iEAAiE,CAAC,CAAC;QACzE,CAAC,CAAC,GAAG,CAAC,sFAAsF,CAAC,CAAC;QAC9F,CAAC,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;QACtD,CAAC,CAAC,GAAG,CAAC,2DAA2D,CAAC,CAAC;QACnE,CAAC,CAAC,GAAG,CAAC,yDAAyD,CAAC,CAAC;QACjE,CAAC,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;QAC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AC,GAAG,CAAC,uDAAuD,CAAC,CAAC;QAC/D,CAAC,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;QAChE,CAAC,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC;QACtD,CAAC,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;QACzD,CAAC,CAAC,GAAG,CAAC,+CAA+C,CAAC,CAAC;QACvD,CAAC,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;QAClD,CAAC,CAAC,GAAG,CAAC,4DAA4D,CAAC,CAAC;QACpE,CAAC,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC;QACvE,CAAC,CAAC,GAAG,CAAC,yDAAyD,CAAC,CAAC;QACjE,CAAC,CAAC,GAAG,CAAC,qFAAqF,CAAC,CAAC;QAC7F,CAAC,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;QACzC,CAAC,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC;QACvE,CAAC,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;QACrD,CAAC,CAAC,GAAG,CAAC,yEAAyE,CAAC,CAAC;QACjF,CAAC,CAAC,GAAG,CAAC,2EAA2E,CAAC,CAAC;QACnF,CAAC,CAAC,GAAG,CAAC,4EAA4E,CAAC,CAAC;IACxF,CAAC;IACM,MAAM,CAAC,YAAY;QACtB,IAAI,YAAY,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;YAClC,IAAI,KAAK,GAAkB,IAAI,KAAK,CAAS,EAAE,CAAC,CAAC;YACjD,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC7B,YAAY,CAAC,UAAU,GAAG,KAAK,CAAC;QACpC,CAAC;QACD,OAAO,YAAY,CAAC,UAAU,CAAC;IACnC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n//generated data file, do not edit\n//package orbitgt.spatial.ecrs;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\nimport { AList } from \"../../system/collection/AList\";\n\n/** @internal */\nexport class DataFileUnit {\n private static DATA_LINES: AList<string> = null;\n private static addPart0(l: AList<string>): void {\n l.add(\"UOM_CODE\tUNIT_OF_MEAS_NAME\tUNIT_OF_MEAS_TYPE\tTARGET_UOM_CODE\tFACTOR_B\tFACTOR_C\tABBREVIATION\");\n l.add(\"1024\tbin\tscale\t9201\t1\t1\tbin\");\n l.add(\"1025\tmillimetre\tlength\t9001\t1\t1000\tmillimetre\");\n l.add(\"1026\tmetre per second\tlength\t1026\t1\t1\tmetre per second\");\n l.add(\"1027\tmillimetres per year\tlength\t1026\t1\t31556925445\tmm/a\");\n l.add(\"1028\tparts per billion\tscale\t9201\t1\t1000000000\tppb\");\n l.add(\"1029\tyear\ttime\t1040\t31556925.445\t1\tyear\");\n l.add(\"1030\tparts per billion per year\tscale\t1036\t1\t3.1556925445E+16\tppb/a\");\n l.add(\"1031\tmilliarc-second\tangle\t9101\t3.14159265358979\t648000000\tmsec\");\n l.add(\"1032\tmilliarc-seconds per year\tangle\t1035\t3.14159265358979\t2.044888768836E+16\tmsec/a\");\n l.add(\"1033\tcentimetre\tlength\t9001\t1\t100\tcentimetre\");\n l.add(\"1034\tcentimetres per year\tlength\t1026\t1\t3155692544.5\tcm/a\");\n l.add(\"1035\tradian per second\tangle\t1035\t1\t1\tradian per second\");\n l.add(\"1036\tunity per second\tscale\t1036\t1\t1\tunity per second\");\n l.add(\"1040\tsecond\ttime\t1040\t1\t1\tsecond\");\n l.add(\"1041\tparts per million per year\tscale\t1036\t1\t31556925445000\tppm/a\");\n l.add(\"1042\tmetres per year\tlength\t1026\t1\t31556925.445\tm/a\");\n l.add(\"1043\tarc-seconds per year\tangle\t1035\t3.14159265358979\t20448887688360\tsec/a\");\n l.add(\"9001\tmetre\tlength\t9001\t1\t1\tmetre\");\n l.add(\"9002\tfoot\tlength\t9001\t0.3048\t1\tfoot\");\n l.add(\"9003\tUS survey foot\tlength\t9001\t12\t39.37\tftUS\");\n l.add(\"9005\tClarke's foot\tlength\t9001\t0.3047972654\t1\tftCla\");\n l.add(\"9014\tfathom\tlength\t9001\t1.8288\t1\tf\");\n l.add(\"9030\tnautical mile\tlength\t9001\t1852\t1\tNM\");\n l.add(\"9031\tGerman legal metre\tlength\t9001\t1.0000135965\t1\tGLM\");\n l.add(\"9033\tUS survey chain\tlength\t9001\t792\t39.37\tchUS\");\n l.add(\"9034\tUS survey link\tlength\t9001\t7.92\t39.37\tlkUS\");\n l.add(\"9035\tUS survey mile\tlength\t9001\t63360\t39.37\tmiUS\");\n l.add(\"9036\tkilometre\tlength\t9001\t1000\t1\tkilometre\");\n l.add(\"9037\tClarke's yard\tlength\t9001\t0.9143917962\t1\tydCla\");\n l.add(\"9038\tClarke's chain\tlength\t9001\t20.1166195164\t1\tchCla\");\n l.add(\"9039\tClarke's link\tlength\t9001\t0.201166195164\t1\tlkCla\");\n l.add(\"9040\tBritish yard (Sears 1922)\tlength\t9001\t36\t39.370147\tydSe\");\n l.add(\"9041\tBritish foot (Sears 1922)\tlength\t9001\t12\t39.370147\tftSe\");\n l.add(\"9042\tBritish chain (Sears 1922)\tlength\t9001\t792\t39.370147\tchSe\");\n l.add(\"9043\tBritish link (Sears 1922)\tlength\t9001\t7.92\t39.370147\tlkSe\");\n l.add(\"9050\tBritish yard (Benoit 1895 A)\tlength\t9001\t0.9143992\t1\tydBnA\");\n l.add(\"9051\tBritish foot (Benoit 1895 A)\tlength\t9001\t0.9143992\t3\tftBnA\");\n l.add(\"9052\tBritish chain (Benoit 1895 A)\tlength\t9001\t20.1167824\t1\tchBnA\");\n l.add(\"9053\tBritish link (Benoit 1895 A)\tlength\t9001\t0.201167824\t1\tlkBnA\");\n l.add(\"9060\tBritish yard (Benoit 1895 B)\tlength\t9001\t36\t39.370113\tydBnB\");\n l.add(\"9061\tBritish foot (Benoit 1895 B)\tlength\t9001\t12\t39.370113\tftBnB\");\n l.add(\"9062\tBritish chain (Benoit 1895 B)\tlength\t9001\t792\t39.370113\tchBnB\");\n l.add(\"9063\tBritish link (Benoit 1895 B)\tlength\t9001\t7.92\t39.370113\tlkBnB\");\n l.add(\"9070\tBritish foot (1865)\tlength\t9001\t0.9144025\t3\tftBr(65)\");\n l.add(\"9080\tIndian foot\tlength\t9001\t12\t39.370142\tftInd\");\n l.add(\"9081\tIndian foot (1937)\tlength\t9001\t0.30479841\t1\tftInd(37)\");\n l.add(\"9082\tIndian foot (1962)\tlength\t9001\t0.3047996\t1\tftInd(62)\");\n l.add(\"9083\tIndian foot (1975)\tlength\t9001\t0.3047995\t1\tftInd(75)\");\n l.add(\"9084\tIndian yard\tlength\t9001\t36\t39.370142\tydInd\");\n l.add(\"9085\tIndian yard (1937)\tlength\t9001\t0.91439523\t1\tydInd(37)\");\n l.add(\"9086\tIndian yard (1962)\tlength\t9001\t0.9143988\t1\tydInd(62)\");\n l.add(\"9087\tIndian yard (1975)\tlength\t9001\t0.9143985\t1\tydInd(75)\");\n l.add(\"9093\tStatute mile\tlength\t9001\t1609.344\t1\tStatute mile\");\n l.add(\"9094\tGold Coast foot\tlength\t9001\t6378300\t20926201\tftGC\");\n l.add(\"9095\tBritish foot (1936)\tlength\t9001\t0.3048007491\t1\tftBr(36)\");\n l.add(\"9096\tyard\tlength\t9001\t0.9144\t1\tyard\");\n l.add(\"9097\tchain\tlength\t9001\t20.1168\t1\tch\");\n l.add(\"9098\tlink\tlength\t9001\t20.1168\t100\tlk\");\n l.add(\"9099\tBritish yard (Sears 1922 truncated)\tlength\t9001\t0.914398\t1\tydSe(T)\");\n l.add(\"9101\tradian\tangle\t9101\t1\t1\tradian\");\n l.add(\"9102\tdegree\tangle\t9101\t3.14159265358979\t180\tdeg\");\n l.add(\"9103\tarc-minute\tangle\t9101\t3.14159265358979\t10800\tmin\");\n l.add(\"9104\tarc-second\tangle\t9101\t3.14159265358979\t648000\tsec\");\n l.add(\"9105\tgrad\tangle\t9101\t3.14159265358979\t200\tgr\");\n l.add(\"9109\tmicroradian\tangle\t9101\t1\t1000000\t\\u00b5rad\");\n l.add(\"9110\tsexagesimal DMS\tangle\t9102\t\t\tDDD.MMSSsss\");\n l.add(\"9111\tsexagesimal DM\tangle\t9102\t\t\tDDD.MMm\");\n l.add(\"9112\tcentesimal minute\tangle\t9101\t3.14159265358979\t20000\tc\");\n l.add(\"9113\tcentesimal second\tangle\t9101\t3.14159265358979\t2000000\tcc\");\n l.add(\"9114\tmil_6400\tangle\t9101\t3.14159265358979\t3200\tmil_6400\");\n l.add(\"9122\tdegree (supplier to define representation)\tangle\t9101\t3.14159265358979\t180\tdeg\");\n l.add(\"9201\tunity\tscale\t9201\t1\t1\tunity\");\n l.add(\"9202\tparts per million\tscale\t9201\t1\t1000000\tparts per million\");\n l.add(\"9203\tcoefficient\tscale\t9201\t1\t1\tcoefficient\");\n l.add(\"9300\tBritish foot (Sears 1922 truncated)\tlength\t9001\t0.914398\t3\tftSe(T)\");\n l.add(\"9301\tBritish chain (Sears 1922 truncated)\tlength\t9001\t20.116756\t1\tchSe(T)\");\n l.add(\"9302\tBritish link (Sears 1922 truncated)\tlength\t9001\t20.116756\t100\tlkSe(T)\");\n }\n public static getDataLines(): AList<string> {\n if (DataFileUnit.DATA_LINES == null) {\n let lines: AList<string> = new AList<string>(78);\n DataFileUnit.addPart0(lines);\n DataFileUnit.DATA_LINES = lines;\n }\n return DataFileUnit.DATA_LINES;\n }\n}\n"]}
|