@itwin/core-common 5.2.0-dev.5 → 5.2.0-dev.8
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/CHANGELOG.md +8 -1
- package/lib/cjs/AnalysisStyle.d.ts.map +1 -1
- package/lib/cjs/AnalysisStyle.js +2 -0
- package/lib/cjs/AnalysisStyle.js.map +1 -1
- package/lib/cjs/BlobReader.d.ts.map +1 -1
- package/lib/cjs/BlobReader.js +10 -2
- package/lib/cjs/BlobReader.js.map +1 -1
- package/lib/cjs/DisplayStyleSettings.d.ts.map +1 -1
- package/lib/cjs/DisplayStyleSettings.js +1 -1
- package/lib/cjs/DisplayStyleSettings.js.map +1 -1
- package/lib/cjs/ECSqlTypes.js +1 -1
- package/lib/cjs/ECSqlTypes.js.map +1 -1
- package/lib/cjs/FeatureIndex.d.ts.map +1 -1
- package/lib/cjs/FeatureIndex.js +2 -1
- package/lib/cjs/FeatureIndex.js.map +1 -1
- package/lib/cjs/GeometryParams.d.ts.map +1 -1
- package/lib/cjs/GeometryParams.js +6 -0
- package/lib/cjs/GeometryParams.js.map +1 -1
- package/lib/cjs/Gradient.d.ts.map +1 -1
- package/lib/cjs/Gradient.js +5 -0
- package/lib/cjs/Gradient.js.map +1 -1
- package/lib/cjs/HiddenLine.d.ts.map +1 -1
- package/lib/cjs/HiddenLine.js +4 -1
- package/lib/cjs/HiddenLine.js.map +1 -1
- package/lib/cjs/IModel.d.ts.map +1 -1
- package/lib/cjs/IModel.js +7 -7
- package/lib/cjs/IModel.js.map +1 -1
- package/lib/cjs/Localization.d.ts.map +1 -1
- package/lib/cjs/Localization.js +3 -0
- package/lib/cjs/Localization.js.map +1 -1
- package/lib/cjs/TextureMapping.js +2 -2
- package/lib/cjs/TextureMapping.js.map +1 -1
- package/lib/cjs/ThematicDisplay.d.ts.map +1 -1
- package/lib/cjs/ThematicDisplay.js +3 -1
- package/lib/cjs/ThematicDisplay.js.map +1 -1
- package/lib/cjs/Tween.d.ts +1 -1
- package/lib/cjs/Tween.d.ts.map +1 -1
- package/lib/cjs/Tween.js +4 -2
- package/lib/cjs/Tween.js.map +1 -1
- package/lib/cjs/geometry/AdditionalTransform.d.ts.map +1 -1
- package/lib/cjs/geometry/AdditionalTransform.js +1 -0
- package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
- package/lib/cjs/geometry/AreaPattern.d.ts.map +1 -1
- package/lib/cjs/geometry/AreaPattern.js +13 -0
- package/lib/cjs/geometry/AreaPattern.js.map +1 -1
- package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
- package/lib/cjs/geometry/CoordinateReferenceSystem.js +7 -0
- package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
- package/lib/cjs/geometry/ElementGeometry.d.ts.map +1 -1
- package/lib/cjs/geometry/ElementGeometry.js +19 -10
- package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
- package/lib/cjs/geometry/ElementGeometryFB.d.ts.map +1 -1
- package/lib/cjs/geometry/ElementGeometryFB.js +1 -0
- package/lib/cjs/geometry/ElementGeometryFB.js.map +1 -1
- package/lib/cjs/geometry/GeodeticDatum.d.ts.map +1 -1
- package/lib/cjs/geometry/GeodeticDatum.js +7 -0
- package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
- package/lib/cjs/geometry/GeometryStream.d.ts.map +1 -1
- package/lib/cjs/geometry/GeometryStream.js +2 -2
- package/lib/cjs/geometry/GeometryStream.js.map +1 -1
- package/lib/cjs/geometry/LineStyle.d.ts.map +1 -1
- package/lib/cjs/geometry/LineStyle.js +3 -0
- package/lib/cjs/geometry/LineStyle.js.map +1 -1
- package/lib/cjs/geometry/Placement.d.ts.map +1 -1
- package/lib/cjs/geometry/Placement.js +1 -1
- package/lib/cjs/geometry/Placement.js.map +1 -1
- package/lib/cjs/internal/PackedFeatureTable.d.ts.map +1 -1
- package/lib/cjs/internal/PackedFeatureTable.js +1 -1
- package/lib/cjs/internal/PackedFeatureTable.js.map +1 -1
- package/lib/cjs/rpc/core/RpcConfiguration.d.ts +0 -3
- package/lib/cjs/rpc/core/RpcConfiguration.d.ts.map +1 -1
- package/lib/cjs/rpc/core/RpcConfiguration.js +10 -2
- package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
- package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +1 -1
- package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcRequest.js +1 -1
- package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
- package/lib/esm/AnalysisStyle.d.ts.map +1 -1
- package/lib/esm/AnalysisStyle.js +2 -0
- package/lib/esm/AnalysisStyle.js.map +1 -1
- package/lib/esm/BlobReader.d.ts.map +1 -1
- package/lib/esm/BlobReader.js +10 -2
- package/lib/esm/BlobReader.js.map +1 -1
- package/lib/esm/DisplayStyleSettings.d.ts.map +1 -1
- package/lib/esm/DisplayStyleSettings.js +2 -2
- package/lib/esm/DisplayStyleSettings.js.map +1 -1
- package/lib/esm/ECSqlTypes.js +1 -1
- package/lib/esm/ECSqlTypes.js.map +1 -1
- package/lib/esm/FeatureIndex.d.ts.map +1 -1
- package/lib/esm/FeatureIndex.js +2 -1
- package/lib/esm/FeatureIndex.js.map +1 -1
- package/lib/esm/GeometryParams.d.ts.map +1 -1
- package/lib/esm/GeometryParams.js +6 -0
- package/lib/esm/GeometryParams.js.map +1 -1
- package/lib/esm/Gradient.d.ts.map +1 -1
- package/lib/esm/Gradient.js +5 -0
- package/lib/esm/Gradient.js.map +1 -1
- package/lib/esm/HiddenLine.d.ts.map +1 -1
- package/lib/esm/HiddenLine.js +4 -1
- package/lib/esm/HiddenLine.js.map +1 -1
- package/lib/esm/IModel.d.ts.map +1 -1
- package/lib/esm/IModel.js +8 -8
- package/lib/esm/IModel.js.map +1 -1
- package/lib/esm/Localization.d.ts.map +1 -1
- package/lib/esm/Localization.js +3 -0
- package/lib/esm/Localization.js.map +1 -1
- package/lib/esm/TextureMapping.js +3 -3
- package/lib/esm/TextureMapping.js.map +1 -1
- package/lib/esm/ThematicDisplay.d.ts.map +1 -1
- package/lib/esm/ThematicDisplay.js +3 -1
- package/lib/esm/ThematicDisplay.js.map +1 -1
- package/lib/esm/Tween.d.ts +1 -1
- package/lib/esm/Tween.d.ts.map +1 -1
- package/lib/esm/Tween.js +4 -2
- package/lib/esm/Tween.js.map +1 -1
- package/lib/esm/geometry/AdditionalTransform.d.ts.map +1 -1
- package/lib/esm/geometry/AdditionalTransform.js +1 -0
- package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
- package/lib/esm/geometry/AreaPattern.d.ts.map +1 -1
- package/lib/esm/geometry/AreaPattern.js +13 -0
- package/lib/esm/geometry/AreaPattern.js.map +1 -1
- package/lib/esm/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
- package/lib/esm/geometry/CoordinateReferenceSystem.js +7 -0
- package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
- package/lib/esm/geometry/ElementGeometry.d.ts.map +1 -1
- package/lib/esm/geometry/ElementGeometry.js +20 -11
- package/lib/esm/geometry/ElementGeometry.js.map +1 -1
- package/lib/esm/geometry/ElementGeometryFB.d.ts.map +1 -1
- package/lib/esm/geometry/ElementGeometryFB.js +1 -0
- package/lib/esm/geometry/ElementGeometryFB.js.map +1 -1
- package/lib/esm/geometry/GeodeticDatum.d.ts.map +1 -1
- package/lib/esm/geometry/GeodeticDatum.js +7 -0
- package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
- package/lib/esm/geometry/GeometryStream.d.ts.map +1 -1
- package/lib/esm/geometry/GeometryStream.js +3 -3
- package/lib/esm/geometry/GeometryStream.js.map +1 -1
- package/lib/esm/geometry/LineStyle.d.ts.map +1 -1
- package/lib/esm/geometry/LineStyle.js +3 -0
- package/lib/esm/geometry/LineStyle.js.map +1 -1
- package/lib/esm/geometry/Placement.d.ts.map +1 -1
- package/lib/esm/geometry/Placement.js +2 -2
- package/lib/esm/geometry/Placement.js.map +1 -1
- package/lib/esm/internal/PackedFeatureTable.d.ts.map +1 -1
- package/lib/esm/internal/PackedFeatureTable.js +2 -2
- package/lib/esm/internal/PackedFeatureTable.js.map +1 -1
- package/lib/esm/rpc/core/RpcConfiguration.d.ts +0 -3
- package/lib/esm/rpc/core/RpcConfiguration.d.ts.map +1 -1
- package/lib/esm/rpc/core/RpcConfiguration.js +10 -2
- package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
- package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +1 -1
- package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcRequest.js +2 -2
- package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeodeticDatum.d.ts","sourceRoot":"","sources":["../../../src/geometry/GeodeticDatum.ts"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,EAAY,QAAQ,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,yCAAyC;IACzC,CAAC,EAAE,MAAM,CAAC;IACV,wCAAwC;IACxC,CAAC,EAAE,MAAM,CAAC;IACV,wCAAwC;IACxC,CAAC,EAAE,MAAM,CAAC;CACX;AAED;;GAEG;AACH,qBAAa,WAAY,YAAW,gBAAgB;IAClD,yCAAyC;IACzC,SAAgB,CAAC,EAAG,MAAM,CAAC;IAC3B,wCAAwC;IACxC,SAAgB,CAAC,EAAG,MAAM,CAAC;IAC3B,wCAAwC;IACxC,SAAgB,CAAC,EAAG,MAAM,CAAC;gBAER,IAAI,CAAC,EAAE,gBAAgB;IAQ1C;iBACa;WACC,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,WAAW;IAI3D;iBACa;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AAgB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrC;;OAEG;IACH,SAAgB,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9C;;;;;;;OAOG;IACH,SAAgB,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACjD;;;;;;;;OAQG;IACH,SAAgB,wBAAwB,CAAC,EAAE,qBAAqB,EAAE,CAAC;gBAEhD,KAAK,CAAC,EAAE,kBAAkB;IAuB7C;iBACa;WACC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,aAAa;IAI/D;iBACa;IACN,MAAM,IAAI,kBAAkB;IAuBnC;;kBAEc;IACP,MAAM,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;CAyC7C"}
|
|
@@ -207,6 +207,7 @@ class GridFileTransform {
|
|
|
207
207
|
return false;
|
|
208
208
|
if ((this.fallback === undefined) !== (other.fallback === undefined))
|
|
209
209
|
return false;
|
|
210
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
210
211
|
if (this.fallback && !this.fallback.equals(other.fallback))
|
|
211
212
|
return false;
|
|
212
213
|
return true;
|
|
@@ -281,22 +282,27 @@ class GeodeticTransform {
|
|
|
281
282
|
return false;
|
|
282
283
|
if ((this.sourceEllipsoid === undefined) !== (other.sourceEllipsoid === undefined))
|
|
283
284
|
return false;
|
|
285
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
284
286
|
if (this.sourceEllipsoid && !this.sourceEllipsoid.equals(other.sourceEllipsoid))
|
|
285
287
|
return false;
|
|
286
288
|
if ((this.targetEllipsoid === undefined) !== (other.targetEllipsoid === undefined))
|
|
287
289
|
return false;
|
|
290
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
288
291
|
if (this.targetEllipsoid && !this.targetEllipsoid.equals(other.targetEllipsoid))
|
|
289
292
|
return false;
|
|
290
293
|
if ((this.geocentric === undefined) !== (other.geocentric === undefined))
|
|
291
294
|
return false;
|
|
295
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
292
296
|
if (this.geocentric && !this.geocentric.equals(other.geocentric))
|
|
293
297
|
return false;
|
|
294
298
|
if ((this.positionalVector === undefined) !== (other.positionalVector === undefined))
|
|
295
299
|
return false;
|
|
300
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
296
301
|
if (this.positionalVector && !this.positionalVector.equals(other.positionalVector))
|
|
297
302
|
return false;
|
|
298
303
|
if ((this.gridFile === undefined) !== (other.gridFile === undefined))
|
|
299
304
|
return false;
|
|
305
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
300
306
|
if (this.gridFile && !this.gridFile.equals(other.gridFile))
|
|
301
307
|
return false;
|
|
302
308
|
return true;
|
|
@@ -474,6 +480,7 @@ class GeodeticDatum {
|
|
|
474
480
|
return false;
|
|
475
481
|
if ((this.ellipsoid === undefined) !== (other.ellipsoid === undefined))
|
|
476
482
|
return false;
|
|
483
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
477
484
|
if (this.ellipsoid && !this.ellipsoid.equals(other.ellipsoid))
|
|
478
485
|
return false;
|
|
479
486
|
if ((this.transforms === undefined) !== (other.transforms === undefined))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeodeticDatum.js","sourceRoot":"","sources":["../../../src/geometry/GeodeticDatum.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,yDAAyD;;;AAEzD,wDAAkE;AAClE,2DAAgF;AAehF;;GAEG;AACH,MAAa,WAAW;IACtB,yCAAyC;IACzB,CAAC,CAAU;IAC3B,wCAAwC;IACxB,CAAC,CAAU;IAC3B,wCAAwC;IACxB,CAAC,CAAU;IAE3B,YAAmB,IAAuB;QACxC,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YAChB,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC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K,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,GAAG;gBACnD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBACrD,OAAO,KAAK,CAAC;QACnB,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,wBAAwB,KAAK,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,KAAK,SAAS,CAAC;YAClG,OAAO,KAAK,CAAC;QAEf,IAAI,IAAI,CAAC,wBAAwB,IAAI,KAAK,CAAC,wBAAwB,EAAE,CAAC;YACpE,IAAI,IAAI,CAAC,wBAAwB,CAAC,MAAM,KAAK,KAAK,CAAC,wBAAwB,CAAC,MAAM;gBAChF,OAAO,KAAK,CAAC;YAEf,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,EAAE,GAAG;gBACjE,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;oBACjF,OAAO,KAAK,CAAC;QACnB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAxID,sCAwIC","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 Geometry\n */\n// cspell:ignore JSONXYZ, ETRF, OSGB, DHDN, NADCON, GEOCN\n\nimport { Geometry, Vector3d, XYAndZ } from \"@itwin/core-geometry\";\nimport { GeodeticEllipsoid, GeodeticEllipsoidProps } from \"./GeodeticEllipsoid\";\n\n/** Holds 3 components of a Positional Vector rotation definition in arc seconds\n * @public\n * @extensions\n */\nexport interface XyzRotationProps {\n /** X rotation component in arc second */\n x: number;\n /** Y rotation component in arc second*/\n y: number;\n /** Z rotation component in arc second*/\n z: number;\n}\n\n/** Hold 3 components data of a Positional Vector rotation definition in arc seconds\n * @public\n */\nexport class XyzRotation implements XyzRotationProps {\n /** X rotation component in arc second */\n public readonly x!: number;\n /** Y rotation component in arc second*/\n public readonly y!: number;\n /** Z rotation component in arc second*/\n public readonly z!: number;\n\n public constructor(data?: XyzRotationProps) {\n if (data) {\n this.x = data.x;\n this.y = data.y;\n this.z = data.z;\n }\n }\n\n /** Creates a Rotations object from JSON representation.\n * @public */\n public static fromJSON(data: XyzRotationProps): XyzRotation {\n return new XyzRotation(data);\n }\n\n /** Creates a JSON from the Rotations definition\n * @public */\n public toJSON(): XyzRotationProps {\n return { x: this.x, y: this.y, z: this.z };\n }\n\n /** Compares two geodetic rotations. It applies a minuscule angular tolerance\n * @public */\n public equals(other: XyzRotation): boolean {\n return (Math.abs(this.x - other.x) < Geometry.smallAngleSeconds &&\n Math.abs(this.y - other.y) < Geometry.smallAngleSeconds &&\n Math.abs(this.z - other.z) < Geometry.smallAngleSeconds);\n }\n}\n\n/** Type indicating the geodetic transformation method\n * @public\n * @extensions\n */\nexport type GeodeticTransformMethod =\n \"None\" |\n \"Geocentric\" |\n \"PositionalVector\" |\n \"GridFiles\" |\n \"MultipleRegression\" |\n \"Undefined\";\n\n/** This interface represents a geocentric (three parameters) geodetic transformation.\n * @public\n * @extensions\n */\nexport interface GeocentricTransformProps {\n /** The frame translation components in meters */\n delta: XYAndZ;\n}\n\n/** This class represents a geocentric (three parameters) geodetic transformation.\n * @public\n */\nexport class GeocentricTransform implements GeocentricTransformProps {\n /** The frame translation components in meters */\n public readonly delta: Vector3d;\n\n public constructor(data?: GeocentricTransformProps) {\n this.delta = data ? Vector3d.fromJSON(data.delta) : new Vector3d();\n }\n\n /** Creates a Geocentric Transform from JSON representation.\n * @public */\n public static fromJSON(data: GeocentricTransformProps): GeocentricTransform {\n return new GeocentricTransform(data);\n }\n\n /** Creates a JSON from the Geodetic GeocentricTransform definition\n * @public */\n public toJSON(): GeocentricTransformProps {\n return { delta: { x: this.delta.x, y: this.delta.y, z: this.delta.z } };\n }\n\n /** Compares two geodetic transforms. It applies a minuscule tolerance.\n * @public */\n public equals(other: GeocentricTransform): boolean {\n return (Math.abs(this.delta.x - other.delta.x) < Geometry.smallMetricDistance &&\n Math.abs(this.delta.y - other.delta.y) < Geometry.smallMetricDistance &&\n Math.abs(this.delta.z - other.delta.z) < Geometry.smallMetricDistance);\n }\n}\n\n/** This interface represents a positional vector (seven parameters) geodetic transformation corresponding to\n * EPSG operation 9606. Beware that the convention relative to rotation direction is different\n * from the Coordinate Frame operation (epsg 9607).\n * @public\n * @extensions\n */\nexport interface PositionalVectorTransformProps {\n /** The frame translation components in meters */\n delta: XYAndZ;\n /** The frame rotation components in arc seconds. The rotation sign convention is the one associated with\n * the operation EPSG:9606 following recommendation of ISO 19111 specifications */\n rotation: XyzRotationProps;\n /** Scale in parts per million. The scale effectively applied will be 1 plus scale divided by 1 000 000. */\n scalePPM: number;\n}\n\n/** This class represents a positional vector (seven parameters) geodetic transformation corresponding to\n * EPSG operation 9606. Beware that the convention relative to rotation direction is different\n * from the Coordinate Frame operation (epsg 9607).\n * @public\n */\nexport class PositionalVectorTransform implements PositionalVectorTransformProps {\n /** The frame translation components in meters */\n public readonly delta!: Vector3d;\n /** The frame rotation components in arc seconds. The rotation sign convention is the one associated with\n * the operation EPSG:9606 following recommendation of ISO 19111 specifications */\n public readonly rotation!: XyzRotation;\n /** Scale in parts per million. The scale effectively applied will be 1 plus scale divided by 1 000 000. */\n public readonly scalePPM!: number;\n\n public constructor(data?: PositionalVectorTransformProps) {\n if (data) {\n this.delta = data.delta ? Vector3d.fromJSON(data.delta) : new Vector3d();\n this.rotation = data.rotation ? XyzRotation.fromJSON(data.rotation) : new XyzRotation();\n this.scalePPM = data.scalePPM;\n }\n }\n\n /** Creates a Positional Vector Transform from JSON representation.\n * @public */\n public static fromJSON(data: PositionalVectorTransformProps): PositionalVectorTransform {\n return new PositionalVectorTransform(data);\n }\n\n /** Creates a JSON from the Positional Vector Transform definition\n * @public */\n public toJSON(): PositionalVectorTransformProps {\n return {\n delta: { x: this.delta.x, y: this.delta.y, z: this.delta.z },\n rotation: this.rotation.toJSON(),\n scalePPM: this.scalePPM,\n };\n }\n\n /** Compares two Positional Vector Transforms. It applies a minuscule tolerance to number compares.\n * @public */\n public equals(other: PositionalVectorTransform): boolean {\n if (Math.abs(this.delta.x - other.delta.x) > Geometry.smallMetricDistance ||\n Math.abs(this.delta.y - other.delta.y) > Geometry.smallMetricDistance ||\n Math.abs(this.delta.z - other.delta.z) > Geometry.smallMetricDistance ||\n Math.abs(this.scalePPM - other.scalePPM) > Geometry.smallFraction)\n return false;\n\n return this.rotation.equals(other.rotation);\n }\n}\n\n/** Type indicating the file format of the grid files.\n * @public\n * @extensions\n */\nexport type GridFileFormat =\n \"NONE\" |\n \"NTv1\" |\n \"NTv2\" |\n \"NADCON\" |\n \"FRENCH\" |\n \"JAPAN\" |\n \"ATS77\" |\n \"GEOCN\" |\n \"OSTN02\" |\n \"OSTN15\";\n\n/** type to indicate the grid file application direction.\n * @public\n * @extensions\n */\nexport type GridFileDirection = \"Direct\" | \"Inverse\";\n\n/** Grid file definition containing name of the file, the format and the direction it should be applied\n * @public\n * @extensions\n */\nexport interface GridFileDefinitionProps {\n /** Name of the grid shift file. This name is relative to the expected dictionary root document.\n * Typical grid shift file name will contain first the country name it applies to then possibly some sub path.\n * Example of existing grid files:\n * Germany/BETA2007.gsb or Brazil/SAD69_003.GSB but sometimes longer paths USA/NADCON/conus.l*s\n * Note that the file name can contain wildcards when the format requires more than one file. For example\n * the NADCON format makes use of a different file for latitude and longitude shifts thus the .l*s extension in the\n * file name above.\n * Forward slash is always used to separate the path components.\n */\n fileName: string;\n /** The grid file format */\n format: GridFileFormat;\n /** The grid file application direction */\n direction: GridFileDirection;\n}\n\n/** Grid file definition containing name of the file, the format and the direction it should be applied\n * @public\n */\nexport class GridFileDefinition implements GridFileDefinitionProps {\n /** Name of the grid shift file. This name is relative to the expected dictionary root document.\n * Typical grid shift file name will contain first the country name it applies to then possibly some sub path.\n * Example of existing grid files:\n * Germany/BETA2007.gsb or Brazil/SAD69_003.GSB but sometimes longer paths USA/NADCON/conus.l*s\n * Note that the file name can contain wildcards when the format requires more than one file. For example\n * the NADCON format makes use of a different file for latitude and longitude shifts thus the .l*s extension in the\n * file name above.\n * Forward slash is always used to separate the path components.\n */\n public readonly fileName: string;\n /** The grid file format */\n public readonly format: GridFileFormat;\n /** The grid file application direction */\n public readonly direction: GridFileDirection;\n\n public constructor(data?: GridFileDefinitionProps) {\n this.fileName = data ? data.fileName : \"\";\n this.format = data ? data.format : \"NTv2\";\n this.direction = data ? data.direction : \"Direct\";\n }\n\n /** Creates a Grid File Definition from JSON representation.\n * @public */\n public static fromJSON(data: GridFileDefinitionProps): GridFileDefinition {\n return new GridFileDefinition(data);\n }\n\n /** Creates a JSON from the Grid File Definition\n * @public */\n public toJSON(): GridFileDefinitionProps {\n return { fileName: this.fileName, format: this.format, direction: this.direction };\n }\n\n /** Compares two grid file definition. It is a strict compare operation not an equivalence test.\n * @public */\n public equals(other: GridFileDefinition): boolean {\n return (this.fileName === other.fileName && this.direction === other.direction && this.format === other.format);\n }\n}\n\n/** This interface represents a grid files based geodetic transformation.\n * @public\n * @extensions\n */\nexport interface GridFileTransformProps {\n /** The list of grid files. The order of file is meaningful, the first encountered that covers the extent of coordinate\n * transformation will be used. */\n files: GridFileDefinitionProps[];\n /** The positional vector fallback transformation used for extents not covered by the grid files */\n fallback?: PositionalVectorTransformProps;\n}\n\n/** This class represents a grid files based geodetic transformation.\n * @public\n */\nexport class GridFileTransform implements GridFileTransformProps {\n /** The list of grid files. The order of file is meaningful, the first encountered that covers the extent of coordinate\n * transformation will be used. */\n public readonly files: GridFileDefinition[];\n /** The positional vector fallback transformation used for extents not covered by the grid files */\n public readonly fallback?: PositionalVectorTransform;\n\n public constructor(data?: GridFileTransformProps) {\n this.files = [];\n if (data) {\n this.fallback = data.fallback ? PositionalVectorTransform.fromJSON(data.fallback) : undefined;\n if (Array.isArray(data.files)) {\n this.files = [];\n for (const item of data.files)\n this.files.push(GridFileDefinition.fromJSON(item));\n }\n }\n }\n\n /** Creates a Grid File Transform from JSON representation.\n * @public */\n public static fromJSON(data: GridFileTransformProps): GridFileTransform {\n return new GridFileTransform(data);\n }\n\n /** Creates a JSON from the Grid File Transform definition\n * @public */\n public toJSON(): GridFileTransformProps {\n const data: GridFileTransformProps = { files: [] };\n data.fallback = this.fallback ? this.fallback.toJSON() : undefined;\n if (Array.isArray(this.files)) {\n for (const item of this.files)\n data.files.push(item.toJSON());\n }\n return data;\n }\n\n /** Compares two Grid File Transforms. It is a strict compare operation not an equivalence test.\n * @public */\n public equals(other: GridFileTransform): boolean {\n if (this.files.length !== other.files.length)\n return false;\n\n for (let idx = 0; idx < this.files.length; ++idx)\n if (!this.files[idx].equals(other.files[idx]))\n return false;\n\n if ((this.fallback === undefined) !== (other.fallback === undefined))\n return false;\n\n if (this.fallback && !this.fallback.equals(other.fallback!))\n return false;\n\n return true;\n }\n}\n\n/** This interface represents a geodetic transformation that enables transforming longitude/latitude coordinates\n * from one datum to another.\n * @public\n * @extensions\n */\nexport interface GeodeticTransformProps {\n /** The method used by the geodetic transform */\n method: GeodeticTransformMethod;\n /** The complete definition of the source geodetic ellipsoid referred to by ellipsoidId.\n * The source ellipsoid identifier enables obtaining the shape of the Earth mathematical model\n * for the purpose of performing the transformation.\n */\n sourceEllipsoid?: GeodeticEllipsoidProps;\n /** The complete definition of the target geodetic ellipsoid referred to by ellipsoidId.\n * The target ellipsoid identifier enables obtaining the shape of the Earth mathematical model\n * for the purpose of performing the transformation.*/\n targetEllipsoid?: GeodeticEllipsoidProps;\n /** The id of the source datum. */\n sourceDatumId?: string;\n /** The id of the target datum. This id is useful to seach within a geodetic transform path for\n * a shortcut to another included datum.\n */\n targetDatumId?: string;\n /** When method is Geocentric this property contains the geocentric parameters */\n geocentric?: GeocentricTransformProps;\n /** When method is PositionalVector this property contains the positional vector parameters */\n positionalVector?: PositionalVectorTransformProps;\n /** When method is GridFiles this property contains the grid files parameters */\n gridFile?: GridFileTransformProps;\n}\n\n/** This class represents a geodetic transformation that enables transforming longitude/latitude coordinates\n * from one datum to another.\n * @public\n */\nexport class GeodeticTransform implements GeodeticTransformProps {\n /** The method used by the geodetic transform */\n public readonly method: GeodeticTransformMethod;\n /** The identifier of the source geodetic datum as stored in the dictionary or the service database.\n * This identifier is optional and informational only.\n */\n public readonly sourceEllipsoid?: GeodeticEllipsoid;\n /** The complete definition of the target geodetic ellipsoid referred to by ellipsoidId.\n * The target ellipsoid identifier enables obtaining the shape of the Earth mathematical model\n * for the purpose of performing the transformation.*/\n public readonly targetEllipsoid?: GeodeticEllipsoid;\n /** The id of the source datum. */\n public readonly sourceDatumId?: string;\n /** The id of the target datum. This id is useful to seach within a geodetic transform path for\n * a shortcut to another included datum.\n */\n public readonly targetDatumId?: string;\n /** When method is Geocentric this property contains the geocentric parameters */\n public readonly geocentric?: GeocentricTransform;\n /** When method is PositionalVector this property contains the positional vector parameters */\n public readonly positionalVector?: PositionalVectorTransform;\n /** When method is GridFiles this property contains the grid files parameters */\n public readonly gridFile?: GridFileTransform;\n\n public constructor(data?: GeodeticTransformProps) {\n this.method = \"None\";\n if (data) {\n this.method = data.method;\n this.sourceEllipsoid = data.sourceEllipsoid ? GeodeticEllipsoid.fromJSON(data.sourceEllipsoid) : undefined;\n this.targetEllipsoid = data.targetEllipsoid ? GeodeticEllipsoid.fromJSON(data.targetEllipsoid) : undefined;\n this.sourceDatumId = data.sourceDatumId;\n this.targetDatumId = data.targetDatumId;\n this.geocentric = data.geocentric ? GeocentricTransform.fromJSON(data.geocentric) : undefined;\n this.positionalVector = data.positionalVector ? PositionalVectorTransform.fromJSON(data.positionalVector) : undefined;\n this.gridFile = data.gridFile ? GridFileTransform.fromJSON(data.gridFile) : undefined;\n }\n }\n\n /** Creates a Geodetic Transform from JSON representation.\n * @public */\n public static fromJSON(data: GeodeticTransformProps): GeodeticTransform {\n return new GeodeticTransform(data);\n }\n\n /** Creates a JSON from the Geodetic Transform definition\n * @public */\n public toJSON(): GeodeticTransformProps {\n const data: GeodeticTransformProps = { method: this.method };\n data.sourceEllipsoid = this.sourceEllipsoid ? this.sourceEllipsoid.toJSON() : undefined;\n data.targetEllipsoid = this.targetEllipsoid ? this.targetEllipsoid.toJSON() : undefined;\n data.sourceDatumId = this.sourceDatumId;\n data.targetDatumId = this.targetDatumId;\n data.geocentric = this.geocentric ? this.geocentric.toJSON() : undefined;\n data.positionalVector = this.positionalVector ? this.positionalVector.toJSON() : undefined;\n data.gridFile = this.gridFile ? this.gridFile.toJSON() : undefined;\n return data;\n }\n\n /** Compares two geodetic Transforms. It is not an equivalence test since\n * descriptive information is strictly compared. A minuscule tolerance is applied to number compares.\n * @public */\n public equals(other: GeodeticTransform): boolean {\n if (this.method !== other.method)\n return false;\n\n if (this.sourceDatumId !== other.sourceDatumId || this.targetDatumId !== other.targetDatumId)\n return false;\n\n if ((this.sourceEllipsoid === undefined) !== (other.sourceEllipsoid === undefined))\n return false;\n if (this.sourceEllipsoid && !this.sourceEllipsoid.equals(other.sourceEllipsoid!))\n return false;\n\n if ((this.targetEllipsoid === undefined) !== (other.targetEllipsoid === undefined))\n return false;\n if (this.targetEllipsoid && !this.targetEllipsoid.equals(other.targetEllipsoid!))\n return false;\n\n if ((this.geocentric === undefined) !== (other.geocentric === undefined))\n return false;\n if (this.geocentric && !this.geocentric.equals(other.geocentric!))\n return false;\n\n if ((this.positionalVector === undefined) !== (other.positionalVector === undefined))\n return false;\n if (this.positionalVector && !this.positionalVector.equals(other.positionalVector!))\n return false;\n\n if ((this.gridFile === undefined) !== (other.gridFile === undefined))\n return false;\n if (this.gridFile && !this.gridFile.equals(other.gridFile!))\n return false;\n\n return true;\n }\n}\n\n/** This interface represents a geodetic datum transform path. It contains a list of transforms linking\n * a source to a target geodetic datum.\n * @public\n */\nexport interface GeodeticTransformPathProps {\n /** Source geodetic datum key name */\n sourceDatumId?: string;\n /** Target geodetic datum key name */\n targetDatumId?: string;\n /** The transformation path from source datum to target datum.\n */\n transforms?: GeodeticTransformProps[];\n}\n\n/** This class represents a geodetic datum transform path. It contains a list of transforms linking\n * a source to a target geodetic datum.\n * @public\n */\nexport class GeodeticTransformPath implements GeodeticTransformPathProps {\n /** Source geodetic datum key name */\n public readonly sourceDatumId?: string;\n /** Target geodetic datum key name */\n public readonly targetDatumId?: string;\n /** The transformation path from source datum to target datum.\n */\n public readonly transforms?: GeodeticTransform[];\n\n public constructor(_data?: GeodeticTransformPathProps) {\n if (_data) {\n this.sourceDatumId = _data.sourceDatumId;\n this.targetDatumId = _data.targetDatumId;\n if (Array.isArray(_data.transforms)) {\n this.transforms = [];\n for (const item of _data.transforms)\n this.transforms.push(GeodeticTransform.fromJSON(item));\n }\n }\n }\n\n /** Creates a Geodetic transform path from JSON representation.\n * @public */\n public static fromJSON(data: GeodeticTransformPathProps): GeodeticTransformPath {\n return new GeodeticTransformPath(data);\n }\n\n /** Creates a JSON from the Geodetic transform path definition\n * @public */\n public toJSON(): GeodeticTransformPathProps {\n const data: GeodeticTransformPathProps = {};\n data.sourceDatumId = this.sourceDatumId;\n data.targetDatumId = this.targetDatumId;\n if (Array.isArray(this.transforms)) {\n data.transforms = [];\n for (const item of this.transforms)\n data.transforms.push(item.toJSON());\n }\n return data;\n }\n\n /** Compares two Geodetic Transform Paths. It is a strict compare operation not an equivalence test.\n * It takes into account descriptive properties not only mathematical definition properties.\n * @public */\n public equals(other: GeodeticTransformPath): boolean {\n if (this.sourceDatumId !== other.sourceDatumId || this.targetDatumId !== other.targetDatumId)\n return false;\n\n if ((this.transforms === undefined) !== (other.transforms === undefined))\n return false;\n\n if (this.transforms && other.transforms) {\n if (this.transforms.length !== other.transforms.length)\n return false;\n\n for (let idx = 0; idx < this.transforms.length; ++idx)\n if (!this.transforms[idx].equals(other.transforms[idx]))\n return false;\n }\n return true;\n }\n}\n\n/** This interface represents a geodetic datum. Geodetic datums are based on an ellipsoid.\n * In addition to the ellipsoid definition they are the base for longitude/latitude coordinates.\n * Geodetic datums are the basis for geodetic transformations. Most geodetic datums are defined by specifying\n * the transformation to the common base WGS84 (or local equivalent). The transforms property can contain the\n * definition of the transformation path to WGS84.\n * Sometimes there exists transformation paths direct from one non-WGS84 datum to another non-WGS84. The current model\n * does not allow specifications of these special paths at the moment.\n * @public\n * @extensions\n */\nexport interface GeodeticDatumProps {\n /** GeodeticDatum key name */\n id?: string;\n /** Description */\n description?: string;\n /** If true then indicates the definition is deprecated. It should then be used for backward compatibility only.\n ** If false or undefined then the definition is not deprecated.\n */\n deprecated?: boolean;\n /** A textual description of the source of the geodetic datum definition. */\n source?: string;\n /** The EPSG code of the geodetic datum. If undefined then there is no EPSG code associated. */\n epsg?: number;\n /** The key name to the base Ellipsoid. */\n ellipsoidId?: string;\n /** The full definition of the geodetic ellipsoid associated to the datum. If undefined then the ellipsoidId must be used to fetch the definition from the dictionary, geographic coordinate system service or the backend */\n ellipsoid?: GeodeticEllipsoidProps;\n /** The transformation to WGS84. If null then there is no known transformation to WGS84. Although\n * this is rare it occurs in a few cases where the country charges for obtaining and using\n * the transformation and its parameters, or if the transformation is maintained secret for military reasons.\n * In this case the recommendation is to considered the geodetic datum to be coincident to WGS84 keeping\n * in mind imported global data such as Google Map or Bing Map data may be approximately located.\n * The list of transforms contains normally a single transform but there can be a sequence of transformations\n * required to transform to WGS84, such as the newer datum definitions for Slovakia or Switzerland.\n */\n transforms?: GeodeticTransformProps[];\n /** The optional list of transformation paths to other datum. These should only be used if the path to\n * these datum is not included in the transforms property definition of the transformation to WGS84.\n * It should not be used either if the transformation to the datum can be infered from the concatenation\n * of their individual paths to WGS84. These should be used to express an alternate shortcut path that is\n * inherent to the nature of the datum. As an example it is required to represent the transformation\n * from NAD27 to NAD83/2011 since NAD83/2011 is coincident to WGS84 yet the NAD27 datum to WGS84 path\n * only includes transformation to NAD83, making the path of transforms to NAD83/2011 not related\n * to the available paths to WGS84.\n */\n additionalTransformPaths?: GeodeticTransformPathProps[];\n}\n\n/** This class represents a geodetic datum. Geodetic datums are based on an ellipsoid.\n * In addition to the ellipsoid definition they are the base for longitude/latitude coordinates.\n * Geodetic datums are the basis for geodetic transformations. Most geodetic datums are defined by specifying\n * the transformation to the common base WGS84 (or local equivalent). The transforms property can contain the\n * definition of the transformation path to WGS84.\n * Sometimes there exists transformation paths direct from one non-WGS84 datum to another non-WGS84. The current model\n * does not allow specifications of these special paths at the moment.\n * @public\n */\nexport class GeodeticDatum implements GeodeticDatumProps {\n /** GeodeticDatum key name */\n public readonly id?: string;\n /** Description */\n public readonly description?: string;\n /** If true then indicates the definition is deprecated. It should then be used for backward compatibility only.\n * If false then the definition is not deprecated. Default is false.\n */\n public readonly deprecated: boolean;\n /** A textual description of the source of the geodetic datum definition. */\n public readonly source?: string;\n /** The EPSG code of the geodetic datum. If undefined then there is no EPSG code associated. */\n public readonly epsg?: number;\n /** The key name to the base Ellipsoid. */\n public readonly ellipsoidId?: string;\n /** The full definition of the geodetic ellipsoid associated to the datum. If undefined then the ellipsoidId must\n * be used to fetch the definition from the dictionary, geographic coordinate system service or the backend\n */\n public readonly ellipsoid?: GeodeticEllipsoid;\n /** The transformation to WGS84. If null then there is no known transformation to WGS84. Although\n * this is rare it occurs in a few cases where the country charges for obtaining and using\n * the transformation and its parameters, or if the transformation is maintained secret for military reasons.\n * In this case the recommendation is to considered the geodetic datum to be coincident to WGS84 keeping\n * in mind imported global data such as Google Map or Bing Map data may be approximately located.\n * The list of transforms contains normally a single transform but there can be a sequence of transformations\n * required to transform to WGS84, such as the newer datum definitions for Slovakia or Switzerland.\n */\n public readonly transforms?: GeodeticTransform[];\n /** The optional list of transformation paths to other datum. These should only be used if the path to\n * these datum is not included in the transforms property definition of the transformation to WGS84.\n * It should not be used either if the transformation to the datum can be infered from the concatenation\n * of their individual paths to WGS84. These should be used to express an alternate shortcut path that is\n * inherent to the nature of the datum. As an example it is required to represent the transformation\n * from NAD27 to NAD83/2011 since NAD83/2011 is coincident to WGS84 yet the NAD27 datum to WGS84 path\n * only includes transformation to NAD83, making the path of transforms to NAD83/2011 not related\n * to the available paths to WGS84.\n */\n public readonly additionalTransformPaths?: GeodeticTransformPath[];\n\n public constructor(_data?: GeodeticDatumProps) {\n this.deprecated = false;\n if (_data) {\n this.id = _data.id;\n this.description = _data.description;\n this.deprecated = _data.deprecated ?? false;\n this.source = _data.source;\n this.epsg = _data.epsg;\n this.ellipsoidId = _data.ellipsoidId;\n this.ellipsoid = _data.ellipsoid ? GeodeticEllipsoid.fromJSON(_data.ellipsoid) : undefined;\n if (Array.isArray(_data.transforms)) {\n this.transforms = [];\n for (const item of _data.transforms)\n this.transforms.push(GeodeticTransform.fromJSON(item));\n }\n if (Array.isArray(_data.additionalTransformPaths)) {\n this.additionalTransformPaths = [];\n for (const item of _data.additionalTransformPaths)\n this.additionalTransformPaths.push(GeodeticTransformPath.fromJSON(item));\n }\n }\n }\n\n /** Creates a Geodetic Datum from JSON representation.\n * @public */\n public static fromJSON(data: GeodeticDatumProps): GeodeticDatum {\n return new GeodeticDatum(data);\n }\n\n /** Creates a JSON from the Geodetic Datum definition\n * @public */\n public toJSON(): GeodeticDatumProps {\n const data: GeodeticDatumProps = {};\n data.id = this.id;\n data.description = this.description;\n /* We prefer to use the default undef instead of false value for deprecated value in Json */\n data.deprecated = (this.deprecated === false ? undefined : true);\n data.source = this.source;\n data.epsg = this.epsg;\n data.ellipsoidId = this.ellipsoidId;\n data.ellipsoid = this.ellipsoid ? this.ellipsoid.toJSON() : undefined;\n if (Array.isArray(this.transforms)) {\n data.transforms = [];\n for (const item of this.transforms)\n data.transforms.push(item.toJSON());\n }\n if (Array.isArray(this.additionalTransformPaths)) {\n data.additionalTransformPaths = [];\n for (const item of this.additionalTransformPaths)\n data.additionalTransformPaths.push(item.toJSON());\n }\n return data;\n }\n\n /** Compares two Geodetic Datums. It is a strict compare operation not an equivalence test.\n * It takes into account descriptive properties not only mathematical definition properties.\n * @public */\n public equals(other: GeodeticDatum): boolean {\n if (this.id !== other.id ||\n this.description !== other.description ||\n this.deprecated !== other.deprecated ||\n this.source !== other.source ||\n this.epsg !== other.epsg ||\n this.ellipsoidId !== other.ellipsoidId)\n return false;\n\n if ((this.ellipsoid === undefined) !== (other.ellipsoid === undefined))\n return false;\n\n if (this.ellipsoid && !this.ellipsoid.equals(other.ellipsoid!))\n return false;\n\n if ((this.transforms === undefined) !== (other.transforms === undefined))\n return false;\n\n if (this.transforms && other.transforms) {\n if (this.transforms.length !== other.transforms.length)\n return false;\n\n for (let idx = 0; idx < this.transforms.length; ++idx)\n if (!this.transforms[idx].equals(other.transforms[idx]))\n return false;\n }\n\n if ((this.additionalTransformPaths === undefined) !== (other.additionalTransformPaths === undefined))\n return false;\n\n if (this.additionalTransformPaths && other.additionalTransformPaths) {\n if (this.additionalTransformPaths.length !== other.additionalTransformPaths.length)\n return false;\n\n for (let idx = 0; idx < this.additionalTransformPaths.length; ++idx)\n if (!this.additionalTransformPaths[idx].equals(other.additionalTransformPaths[idx]))\n return false;\n }\n return true;\n }\n}\n\n"]}
|
|
1
|
+
{"version":3,"file":"GeodeticDatum.js","sourceRoot":"","sources":["../../../src/geometry/GeodeticDatum.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,yDAAyD;;;AAEzD,wDAAkE;AAClE,2DAAgF;AAehF;;GAEG;AACH,MAAa,WAAW;IACtB,yCAAyC;IACzB,CAAC,CAAU;IAC3B,wCAAwC;IACxB,CAAC,CAAU;IAC3B,wCAAwC;IACxB,CAAC,CAAU;IAE3B,YAAmB,IAAuB;QACxC,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;YAChB,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC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AAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,KAAK,CAAC,UAAU,CAAC,MAAM;gBACpD,OAAO,KAAK,CAAC;YAEf,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,GAAG;gBACnD,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;oBACrD,OAAO,KAAK,CAAC;QACnB,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,wBAAwB,KAAK,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,KAAK,SAAS,CAAC;YAClG,OAAO,KAAK,CAAC;QAEf,IAAI,IAAI,CAAC,wBAAwB,IAAI,KAAK,CAAC,wBAAwB,EAAE,CAAC;YACpE,IAAI,IAAI,CAAC,wBAAwB,CAAC,MAAM,KAAK,KAAK,CAAC,wBAAwB,CAAC,MAAM;gBAChF,OAAO,KAAK,CAAC;YAEf,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,EAAE,GAAG;gBACjE,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;oBACjF,OAAO,KAAK,CAAC;QACnB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAzID,sCAyIC","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 Geometry\n */\n// cspell:ignore JSONXYZ, ETRF, OSGB, DHDN, NADCON, GEOCN\n\nimport { Geometry, Vector3d, XYAndZ } from \"@itwin/core-geometry\";\nimport { GeodeticEllipsoid, GeodeticEllipsoidProps } from \"./GeodeticEllipsoid\";\n\n/** Holds 3 components of a Positional Vector rotation definition in arc seconds\n * @public\n * @extensions\n */\nexport interface XyzRotationProps {\n /** X rotation component in arc second */\n x: number;\n /** Y rotation component in arc second*/\n y: number;\n /** Z rotation component in arc second*/\n z: number;\n}\n\n/** Hold 3 components data of a Positional Vector rotation definition in arc seconds\n * @public\n */\nexport class XyzRotation implements XyzRotationProps {\n /** X rotation component in arc second */\n public readonly x!: number;\n /** Y rotation component in arc second*/\n public readonly y!: number;\n /** Z rotation component in arc second*/\n public readonly z!: number;\n\n public constructor(data?: XyzRotationProps) {\n if (data) {\n this.x = data.x;\n this.y = data.y;\n this.z = data.z;\n }\n }\n\n /** Creates a Rotations object from JSON representation.\n * @public */\n public static fromJSON(data: XyzRotationProps): XyzRotation {\n return new XyzRotation(data);\n }\n\n /** Creates a JSON from the Rotations definition\n * @public */\n public toJSON(): XyzRotationProps {\n return { x: this.x, y: this.y, z: this.z };\n }\n\n /** Compares two geodetic rotations. It applies a minuscule angular tolerance\n * @public */\n public equals(other: XyzRotation): boolean {\n return (Math.abs(this.x - other.x) < Geometry.smallAngleSeconds &&\n Math.abs(this.y - other.y) < Geometry.smallAngleSeconds &&\n Math.abs(this.z - other.z) < Geometry.smallAngleSeconds);\n }\n}\n\n/** Type indicating the geodetic transformation method\n * @public\n * @extensions\n */\nexport type GeodeticTransformMethod =\n \"None\" |\n \"Geocentric\" |\n \"PositionalVector\" |\n \"GridFiles\" |\n \"MultipleRegression\" |\n \"Undefined\";\n\n/** This interface represents a geocentric (three parameters) geodetic transformation.\n * @public\n * @extensions\n */\nexport interface GeocentricTransformProps {\n /** The frame translation components in meters */\n delta: XYAndZ;\n}\n\n/** This class represents a geocentric (three parameters) geodetic transformation.\n * @public\n */\nexport class GeocentricTransform implements GeocentricTransformProps {\n /** The frame translation components in meters */\n public readonly delta: Vector3d;\n\n public constructor(data?: GeocentricTransformProps) {\n this.delta = data ? Vector3d.fromJSON(data.delta) : new Vector3d();\n }\n\n /** Creates a Geocentric Transform from JSON representation.\n * @public */\n public static fromJSON(data: GeocentricTransformProps): GeocentricTransform {\n return new GeocentricTransform(data);\n }\n\n /** Creates a JSON from the Geodetic GeocentricTransform definition\n * @public */\n public toJSON(): GeocentricTransformProps {\n return { delta: { x: this.delta.x, y: this.delta.y, z: this.delta.z } };\n }\n\n /** Compares two geodetic transforms. It applies a minuscule tolerance.\n * @public */\n public equals(other: GeocentricTransform): boolean {\n return (Math.abs(this.delta.x - other.delta.x) < Geometry.smallMetricDistance &&\n Math.abs(this.delta.y - other.delta.y) < Geometry.smallMetricDistance &&\n Math.abs(this.delta.z - other.delta.z) < Geometry.smallMetricDistance);\n }\n}\n\n/** This interface represents a positional vector (seven parameters) geodetic transformation corresponding to\n * EPSG operation 9606. Beware that the convention relative to rotation direction is different\n * from the Coordinate Frame operation (epsg 9607).\n * @public\n * @extensions\n */\nexport interface PositionalVectorTransformProps {\n /** The frame translation components in meters */\n delta: XYAndZ;\n /** The frame rotation components in arc seconds. The rotation sign convention is the one associated with\n * the operation EPSG:9606 following recommendation of ISO 19111 specifications */\n rotation: XyzRotationProps;\n /** Scale in parts per million. The scale effectively applied will be 1 plus scale divided by 1 000 000. */\n scalePPM: number;\n}\n\n/** This class represents a positional vector (seven parameters) geodetic transformation corresponding to\n * EPSG operation 9606. Beware that the convention relative to rotation direction is different\n * from the Coordinate Frame operation (epsg 9607).\n * @public\n */\nexport class PositionalVectorTransform implements PositionalVectorTransformProps {\n /** The frame translation components in meters */\n public readonly delta!: Vector3d;\n /** The frame rotation components in arc seconds. The rotation sign convention is the one associated with\n * the operation EPSG:9606 following recommendation of ISO 19111 specifications */\n public readonly rotation!: XyzRotation;\n /** Scale in parts per million. The scale effectively applied will be 1 plus scale divided by 1 000 000. */\n public readonly scalePPM!: number;\n\n public constructor(data?: PositionalVectorTransformProps) {\n if (data) {\n this.delta = data.delta ? Vector3d.fromJSON(data.delta) : new Vector3d();\n this.rotation = data.rotation ? XyzRotation.fromJSON(data.rotation) : new XyzRotation();\n this.scalePPM = data.scalePPM;\n }\n }\n\n /** Creates a Positional Vector Transform from JSON representation.\n * @public */\n public static fromJSON(data: PositionalVectorTransformProps): PositionalVectorTransform {\n return new PositionalVectorTransform(data);\n }\n\n /** Creates a JSON from the Positional Vector Transform definition\n * @public */\n public toJSON(): PositionalVectorTransformProps {\n return {\n delta: { x: this.delta.x, y: this.delta.y, z: this.delta.z },\n rotation: this.rotation.toJSON(),\n scalePPM: this.scalePPM,\n };\n }\n\n /** Compares two Positional Vector Transforms. It applies a minuscule tolerance to number compares.\n * @public */\n public equals(other: PositionalVectorTransform): boolean {\n if (Math.abs(this.delta.x - other.delta.x) > Geometry.smallMetricDistance ||\n Math.abs(this.delta.y - other.delta.y) > Geometry.smallMetricDistance ||\n Math.abs(this.delta.z - other.delta.z) > Geometry.smallMetricDistance ||\n Math.abs(this.scalePPM - other.scalePPM) > Geometry.smallFraction)\n return false;\n\n return this.rotation.equals(other.rotation);\n }\n}\n\n/** Type indicating the file format of the grid files.\n * @public\n * @extensions\n */\nexport type GridFileFormat =\n \"NONE\" |\n \"NTv1\" |\n \"NTv2\" |\n \"NADCON\" |\n \"FRENCH\" |\n \"JAPAN\" |\n \"ATS77\" |\n \"GEOCN\" |\n \"OSTN02\" |\n \"OSTN15\";\n\n/** type to indicate the grid file application direction.\n * @public\n * @extensions\n */\nexport type GridFileDirection = \"Direct\" | \"Inverse\";\n\n/** Grid file definition containing name of the file, the format and the direction it should be applied\n * @public\n * @extensions\n */\nexport interface GridFileDefinitionProps {\n /** Name of the grid shift file. This name is relative to the expected dictionary root document.\n * Typical grid shift file name will contain first the country name it applies to then possibly some sub path.\n * Example of existing grid files:\n * Germany/BETA2007.gsb or Brazil/SAD69_003.GSB but sometimes longer paths USA/NADCON/conus.l*s\n * Note that the file name can contain wildcards when the format requires more than one file. For example\n * the NADCON format makes use of a different file for latitude and longitude shifts thus the .l*s extension in the\n * file name above.\n * Forward slash is always used to separate the path components.\n */\n fileName: string;\n /** The grid file format */\n format: GridFileFormat;\n /** The grid file application direction */\n direction: GridFileDirection;\n}\n\n/** Grid file definition containing name of the file, the format and the direction it should be applied\n * @public\n */\nexport class GridFileDefinition implements GridFileDefinitionProps {\n /** Name of the grid shift file. This name is relative to the expected dictionary root document.\n * Typical grid shift file name will contain first the country name it applies to then possibly some sub path.\n * Example of existing grid files:\n * Germany/BETA2007.gsb or Brazil/SAD69_003.GSB but sometimes longer paths USA/NADCON/conus.l*s\n * Note that the file name can contain wildcards when the format requires more than one file. For example\n * the NADCON format makes use of a different file for latitude and longitude shifts thus the .l*s extension in the\n * file name above.\n * Forward slash is always used to separate the path components.\n */\n public readonly fileName: string;\n /** The grid file format */\n public readonly format: GridFileFormat;\n /** The grid file application direction */\n public readonly direction: GridFileDirection;\n\n public constructor(data?: GridFileDefinitionProps) {\n this.fileName = data ? data.fileName : \"\";\n this.format = data ? data.format : \"NTv2\";\n this.direction = data ? data.direction : \"Direct\";\n }\n\n /** Creates a Grid File Definition from JSON representation.\n * @public */\n public static fromJSON(data: GridFileDefinitionProps): GridFileDefinition {\n return new GridFileDefinition(data);\n }\n\n /** Creates a JSON from the Grid File Definition\n * @public */\n public toJSON(): GridFileDefinitionProps {\n return { fileName: this.fileName, format: this.format, direction: this.direction };\n }\n\n /** Compares two grid file definition. It is a strict compare operation not an equivalence test.\n * @public */\n public equals(other: GridFileDefinition): boolean {\n return (this.fileName === other.fileName && this.direction === other.direction && this.format === other.format);\n }\n}\n\n/** This interface represents a grid files based geodetic transformation.\n * @public\n * @extensions\n */\nexport interface GridFileTransformProps {\n /** The list of grid files. The order of file is meaningful, the first encountered that covers the extent of coordinate\n * transformation will be used. */\n files: GridFileDefinitionProps[];\n /** The positional vector fallback transformation used for extents not covered by the grid files */\n fallback?: PositionalVectorTransformProps;\n}\n\n/** This class represents a grid files based geodetic transformation.\n * @public\n */\nexport class GridFileTransform implements GridFileTransformProps {\n /** The list of grid files. The order of file is meaningful, the first encountered that covers the extent of coordinate\n * transformation will be used. */\n public readonly files: GridFileDefinition[];\n /** The positional vector fallback transformation used for extents not covered by the grid files */\n public readonly fallback?: PositionalVectorTransform;\n\n public constructor(data?: GridFileTransformProps) {\n this.files = [];\n if (data) {\n this.fallback = data.fallback ? PositionalVectorTransform.fromJSON(data.fallback) : undefined;\n if (Array.isArray(data.files)) {\n this.files = [];\n for (const item of data.files)\n this.files.push(GridFileDefinition.fromJSON(item));\n }\n }\n }\n\n /** Creates a Grid File Transform from JSON representation.\n * @public */\n public static fromJSON(data: GridFileTransformProps): GridFileTransform {\n return new GridFileTransform(data);\n }\n\n /** Creates a JSON from the Grid File Transform definition\n * @public */\n public toJSON(): GridFileTransformProps {\n const data: GridFileTransformProps = { files: [] };\n data.fallback = this.fallback ? this.fallback.toJSON() : undefined;\n if (Array.isArray(this.files)) {\n for (const item of this.files)\n data.files.push(item.toJSON());\n }\n return data;\n }\n\n /** Compares two Grid File Transforms. It is a strict compare operation not an equivalence test.\n * @public */\n public equals(other: GridFileTransform): boolean {\n if (this.files.length !== other.files.length)\n return false;\n\n for (let idx = 0; idx < this.files.length; ++idx)\n if (!this.files[idx].equals(other.files[idx]))\n return false;\n\n if ((this.fallback === undefined) !== (other.fallback === undefined))\n return false;\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.fallback && !this.fallback.equals(other.fallback!))\n return false;\n\n return true;\n }\n}\n\n/** This interface represents a geodetic transformation that enables transforming longitude/latitude coordinates\n * from one datum to another.\n * @public\n * @extensions\n */\nexport interface GeodeticTransformProps {\n /** The method used by the geodetic transform */\n method: GeodeticTransformMethod;\n /** The complete definition of the source geodetic ellipsoid referred to by ellipsoidId.\n * The source ellipsoid identifier enables obtaining the shape of the Earth mathematical model\n * for the purpose of performing the transformation.\n */\n sourceEllipsoid?: GeodeticEllipsoidProps;\n /** The complete definition of the target geodetic ellipsoid referred to by ellipsoidId.\n * The target ellipsoid identifier enables obtaining the shape of the Earth mathematical model\n * for the purpose of performing the transformation.*/\n targetEllipsoid?: GeodeticEllipsoidProps;\n /** The id of the source datum. */\n sourceDatumId?: string;\n /** The id of the target datum. This id is useful to seach within a geodetic transform path for\n * a shortcut to another included datum.\n */\n targetDatumId?: string;\n /** When method is Geocentric this property contains the geocentric parameters */\n geocentric?: GeocentricTransformProps;\n /** When method is PositionalVector this property contains the positional vector parameters */\n positionalVector?: PositionalVectorTransformProps;\n /** When method is GridFiles this property contains the grid files parameters */\n gridFile?: GridFileTransformProps;\n}\n\n/** This class represents a geodetic transformation that enables transforming longitude/latitude coordinates\n * from one datum to another.\n * @public\n */\nexport class GeodeticTransform implements GeodeticTransformProps {\n /** The method used by the geodetic transform */\n public readonly method: GeodeticTransformMethod;\n /** The identifier of the source geodetic datum as stored in the dictionary or the service database.\n * This identifier is optional and informational only.\n */\n public readonly sourceEllipsoid?: GeodeticEllipsoid;\n /** The complete definition of the target geodetic ellipsoid referred to by ellipsoidId.\n * The target ellipsoid identifier enables obtaining the shape of the Earth mathematical model\n * for the purpose of performing the transformation.*/\n public readonly targetEllipsoid?: GeodeticEllipsoid;\n /** The id of the source datum. */\n public readonly sourceDatumId?: string;\n /** The id of the target datum. This id is useful to seach within a geodetic transform path for\n * a shortcut to another included datum.\n */\n public readonly targetDatumId?: string;\n /** When method is Geocentric this property contains the geocentric parameters */\n public readonly geocentric?: GeocentricTransform;\n /** When method is PositionalVector this property contains the positional vector parameters */\n public readonly positionalVector?: PositionalVectorTransform;\n /** When method is GridFiles this property contains the grid files parameters */\n public readonly gridFile?: GridFileTransform;\n\n public constructor(data?: GeodeticTransformProps) {\n this.method = \"None\";\n if (data) {\n this.method = data.method;\n this.sourceEllipsoid = data.sourceEllipsoid ? GeodeticEllipsoid.fromJSON(data.sourceEllipsoid) : undefined;\n this.targetEllipsoid = data.targetEllipsoid ? GeodeticEllipsoid.fromJSON(data.targetEllipsoid) : undefined;\n this.sourceDatumId = data.sourceDatumId;\n this.targetDatumId = data.targetDatumId;\n this.geocentric = data.geocentric ? GeocentricTransform.fromJSON(data.geocentric) : undefined;\n this.positionalVector = data.positionalVector ? PositionalVectorTransform.fromJSON(data.positionalVector) : undefined;\n this.gridFile = data.gridFile ? GridFileTransform.fromJSON(data.gridFile) : undefined;\n }\n }\n\n /** Creates a Geodetic Transform from JSON representation.\n * @public */\n public static fromJSON(data: GeodeticTransformProps): GeodeticTransform {\n return new GeodeticTransform(data);\n }\n\n /** Creates a JSON from the Geodetic Transform definition\n * @public */\n public toJSON(): GeodeticTransformProps {\n const data: GeodeticTransformProps = { method: this.method };\n data.sourceEllipsoid = this.sourceEllipsoid ? this.sourceEllipsoid.toJSON() : undefined;\n data.targetEllipsoid = this.targetEllipsoid ? this.targetEllipsoid.toJSON() : undefined;\n data.sourceDatumId = this.sourceDatumId;\n data.targetDatumId = this.targetDatumId;\n data.geocentric = this.geocentric ? this.geocentric.toJSON() : undefined;\n data.positionalVector = this.positionalVector ? this.positionalVector.toJSON() : undefined;\n data.gridFile = this.gridFile ? this.gridFile.toJSON() : undefined;\n return data;\n }\n\n /** Compares two geodetic Transforms. It is not an equivalence test since\n * descriptive information is strictly compared. A minuscule tolerance is applied to number compares.\n * @public */\n public equals(other: GeodeticTransform): boolean {\n if (this.method !== other.method)\n return false;\n\n if (this.sourceDatumId !== other.sourceDatumId || this.targetDatumId !== other.targetDatumId)\n return false;\n\n if ((this.sourceEllipsoid === undefined) !== (other.sourceEllipsoid === undefined))\n return false;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.sourceEllipsoid && !this.sourceEllipsoid.equals(other.sourceEllipsoid!))\n return false;\n\n if ((this.targetEllipsoid === undefined) !== (other.targetEllipsoid === undefined))\n return false;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.targetEllipsoid && !this.targetEllipsoid.equals(other.targetEllipsoid!))\n return false;\n\n if ((this.geocentric === undefined) !== (other.geocentric === undefined))\n return false;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.geocentric && !this.geocentric.equals(other.geocentric!))\n return false;\n\n if ((this.positionalVector === undefined) !== (other.positionalVector === undefined))\n return false;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.positionalVector && !this.positionalVector.equals(other.positionalVector!))\n return false;\n\n if ((this.gridFile === undefined) !== (other.gridFile === undefined))\n return false;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.gridFile && !this.gridFile.equals(other.gridFile!))\n return false;\n\n return true;\n }\n}\n\n/** This interface represents a geodetic datum transform path. It contains a list of transforms linking\n * a source to a target geodetic datum.\n * @public\n */\nexport interface GeodeticTransformPathProps {\n /** Source geodetic datum key name */\n sourceDatumId?: string;\n /** Target geodetic datum key name */\n targetDatumId?: string;\n /** The transformation path from source datum to target datum.\n */\n transforms?: GeodeticTransformProps[];\n}\n\n/** This class represents a geodetic datum transform path. It contains a list of transforms linking\n * a source to a target geodetic datum.\n * @public\n */\nexport class GeodeticTransformPath implements GeodeticTransformPathProps {\n /** Source geodetic datum key name */\n public readonly sourceDatumId?: string;\n /** Target geodetic datum key name */\n public readonly targetDatumId?: string;\n /** The transformation path from source datum to target datum.\n */\n public readonly transforms?: GeodeticTransform[];\n\n public constructor(_data?: GeodeticTransformPathProps) {\n if (_data) {\n this.sourceDatumId = _data.sourceDatumId;\n this.targetDatumId = _data.targetDatumId;\n if (Array.isArray(_data.transforms)) {\n this.transforms = [];\n for (const item of _data.transforms)\n this.transforms.push(GeodeticTransform.fromJSON(item));\n }\n }\n }\n\n /** Creates a Geodetic transform path from JSON representation.\n * @public */\n public static fromJSON(data: GeodeticTransformPathProps): GeodeticTransformPath {\n return new GeodeticTransformPath(data);\n }\n\n /** Creates a JSON from the Geodetic transform path definition\n * @public */\n public toJSON(): GeodeticTransformPathProps {\n const data: GeodeticTransformPathProps = {};\n data.sourceDatumId = this.sourceDatumId;\n data.targetDatumId = this.targetDatumId;\n if (Array.isArray(this.transforms)) {\n data.transforms = [];\n for (const item of this.transforms)\n data.transforms.push(item.toJSON());\n }\n return data;\n }\n\n /** Compares two Geodetic Transform Paths. It is a strict compare operation not an equivalence test.\n * It takes into account descriptive properties not only mathematical definition properties.\n * @public */\n public equals(other: GeodeticTransformPath): boolean {\n if (this.sourceDatumId !== other.sourceDatumId || this.targetDatumId !== other.targetDatumId)\n return false;\n\n if ((this.transforms === undefined) !== (other.transforms === undefined))\n return false;\n\n if (this.transforms && other.transforms) {\n if (this.transforms.length !== other.transforms.length)\n return false;\n\n for (let idx = 0; idx < this.transforms.length; ++idx)\n if (!this.transforms[idx].equals(other.transforms[idx]))\n return false;\n }\n return true;\n }\n}\n\n/** This interface represents a geodetic datum. Geodetic datums are based on an ellipsoid.\n * In addition to the ellipsoid definition they are the base for longitude/latitude coordinates.\n * Geodetic datums are the basis for geodetic transformations. Most geodetic datums are defined by specifying\n * the transformation to the common base WGS84 (or local equivalent). The transforms property can contain the\n * definition of the transformation path to WGS84.\n * Sometimes there exists transformation paths direct from one non-WGS84 datum to another non-WGS84. The current model\n * does not allow specifications of these special paths at the moment.\n * @public\n * @extensions\n */\nexport interface GeodeticDatumProps {\n /** GeodeticDatum key name */\n id?: string;\n /** Description */\n description?: string;\n /** If true then indicates the definition is deprecated. It should then be used for backward compatibility only.\n ** If false or undefined then the definition is not deprecated.\n */\n deprecated?: boolean;\n /** A textual description of the source of the geodetic datum definition. */\n source?: string;\n /** The EPSG code of the geodetic datum. If undefined then there is no EPSG code associated. */\n epsg?: number;\n /** The key name to the base Ellipsoid. */\n ellipsoidId?: string;\n /** The full definition of the geodetic ellipsoid associated to the datum. If undefined then the ellipsoidId must be used to fetch the definition from the dictionary, geographic coordinate system service or the backend */\n ellipsoid?: GeodeticEllipsoidProps;\n /** The transformation to WGS84. If null then there is no known transformation to WGS84. Although\n * this is rare it occurs in a few cases where the country charges for obtaining and using\n * the transformation and its parameters, or if the transformation is maintained secret for military reasons.\n * In this case the recommendation is to considered the geodetic datum to be coincident to WGS84 keeping\n * in mind imported global data such as Google Map or Bing Map data may be approximately located.\n * The list of transforms contains normally a single transform but there can be a sequence of transformations\n * required to transform to WGS84, such as the newer datum definitions for Slovakia or Switzerland.\n */\n transforms?: GeodeticTransformProps[];\n /** The optional list of transformation paths to other datum. These should only be used if the path to\n * these datum is not included in the transforms property definition of the transformation to WGS84.\n * It should not be used either if the transformation to the datum can be infered from the concatenation\n * of their individual paths to WGS84. These should be used to express an alternate shortcut path that is\n * inherent to the nature of the datum. As an example it is required to represent the transformation\n * from NAD27 to NAD83/2011 since NAD83/2011 is coincident to WGS84 yet the NAD27 datum to WGS84 path\n * only includes transformation to NAD83, making the path of transforms to NAD83/2011 not related\n * to the available paths to WGS84.\n */\n additionalTransformPaths?: GeodeticTransformPathProps[];\n}\n\n/** This class represents a geodetic datum. Geodetic datums are based on an ellipsoid.\n * In addition to the ellipsoid definition they are the base for longitude/latitude coordinates.\n * Geodetic datums are the basis for geodetic transformations. Most geodetic datums are defined by specifying\n * the transformation to the common base WGS84 (or local equivalent). The transforms property can contain the\n * definition of the transformation path to WGS84.\n * Sometimes there exists transformation paths direct from one non-WGS84 datum to another non-WGS84. The current model\n * does not allow specifications of these special paths at the moment.\n * @public\n */\nexport class GeodeticDatum implements GeodeticDatumProps {\n /** GeodeticDatum key name */\n public readonly id?: string;\n /** Description */\n public readonly description?: string;\n /** If true then indicates the definition is deprecated. It should then be used for backward compatibility only.\n * If false then the definition is not deprecated. Default is false.\n */\n public readonly deprecated: boolean;\n /** A textual description of the source of the geodetic datum definition. */\n public readonly source?: string;\n /** The EPSG code of the geodetic datum. If undefined then there is no EPSG code associated. */\n public readonly epsg?: number;\n /** The key name to the base Ellipsoid. */\n public readonly ellipsoidId?: string;\n /** The full definition of the geodetic ellipsoid associated to the datum. If undefined then the ellipsoidId must\n * be used to fetch the definition from the dictionary, geographic coordinate system service or the backend\n */\n public readonly ellipsoid?: GeodeticEllipsoid;\n /** The transformation to WGS84. If null then there is no known transformation to WGS84. Although\n * this is rare it occurs in a few cases where the country charges for obtaining and using\n * the transformation and its parameters, or if the transformation is maintained secret for military reasons.\n * In this case the recommendation is to considered the geodetic datum to be coincident to WGS84 keeping\n * in mind imported global data such as Google Map or Bing Map data may be approximately located.\n * The list of transforms contains normally a single transform but there can be a sequence of transformations\n * required to transform to WGS84, such as the newer datum definitions for Slovakia or Switzerland.\n */\n public readonly transforms?: GeodeticTransform[];\n /** The optional list of transformation paths to other datum. These should only be used if the path to\n * these datum is not included in the transforms property definition of the transformation to WGS84.\n * It should not be used either if the transformation to the datum can be infered from the concatenation\n * of their individual paths to WGS84. These should be used to express an alternate shortcut path that is\n * inherent to the nature of the datum. As an example it is required to represent the transformation\n * from NAD27 to NAD83/2011 since NAD83/2011 is coincident to WGS84 yet the NAD27 datum to WGS84 path\n * only includes transformation to NAD83, making the path of transforms to NAD83/2011 not related\n * to the available paths to WGS84.\n */\n public readonly additionalTransformPaths?: GeodeticTransformPath[];\n\n public constructor(_data?: GeodeticDatumProps) {\n this.deprecated = false;\n if (_data) {\n this.id = _data.id;\n this.description = _data.description;\n this.deprecated = _data.deprecated ?? false;\n this.source = _data.source;\n this.epsg = _data.epsg;\n this.ellipsoidId = _data.ellipsoidId;\n this.ellipsoid = _data.ellipsoid ? GeodeticEllipsoid.fromJSON(_data.ellipsoid) : undefined;\n if (Array.isArray(_data.transforms)) {\n this.transforms = [];\n for (const item of _data.transforms)\n this.transforms.push(GeodeticTransform.fromJSON(item));\n }\n if (Array.isArray(_data.additionalTransformPaths)) {\n this.additionalTransformPaths = [];\n for (const item of _data.additionalTransformPaths)\n this.additionalTransformPaths.push(GeodeticTransformPath.fromJSON(item));\n }\n }\n }\n\n /** Creates a Geodetic Datum from JSON representation.\n * @public */\n public static fromJSON(data: GeodeticDatumProps): GeodeticDatum {\n return new GeodeticDatum(data);\n }\n\n /** Creates a JSON from the Geodetic Datum definition\n * @public */\n public toJSON(): GeodeticDatumProps {\n const data: GeodeticDatumProps = {};\n data.id = this.id;\n data.description = this.description;\n /* We prefer to use the default undef instead of false value for deprecated value in Json */\n data.deprecated = (this.deprecated === false ? undefined : true);\n data.source = this.source;\n data.epsg = this.epsg;\n data.ellipsoidId = this.ellipsoidId;\n data.ellipsoid = this.ellipsoid ? this.ellipsoid.toJSON() : undefined;\n if (Array.isArray(this.transforms)) {\n data.transforms = [];\n for (const item of this.transforms)\n data.transforms.push(item.toJSON());\n }\n if (Array.isArray(this.additionalTransformPaths)) {\n data.additionalTransformPaths = [];\n for (const item of this.additionalTransformPaths)\n data.additionalTransformPaths.push(item.toJSON());\n }\n return data;\n }\n\n /** Compares two Geodetic Datums. It is a strict compare operation not an equivalence test.\n * It takes into account descriptive properties not only mathematical definition properties.\n * @public */\n public equals(other: GeodeticDatum): boolean {\n if (this.id !== other.id ||\n this.description !== other.description ||\n this.deprecated !== other.deprecated ||\n this.source !== other.source ||\n this.epsg !== other.epsg ||\n this.ellipsoidId !== other.ellipsoidId)\n return false;\n\n if ((this.ellipsoid === undefined) !== (other.ellipsoid === undefined))\n return false;\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.ellipsoid && !this.ellipsoid.equals(other.ellipsoid!))\n return false;\n\n if ((this.transforms === undefined) !== (other.transforms === undefined))\n return false;\n\n if (this.transforms && other.transforms) {\n if (this.transforms.length !== other.transforms.length)\n return false;\n\n for (let idx = 0; idx < this.transforms.length; ++idx)\n if (!this.transforms[idx].equals(other.transforms[idx]))\n return false;\n }\n\n if ((this.additionalTransformPaths === undefined) !== (other.additionalTransformPaths === undefined))\n return false;\n\n if (this.additionalTransformPaths && other.additionalTransformPaths) {\n if (this.additionalTransformPaths.length !== other.additionalTransformPaths.length)\n return false;\n\n for (let idx = 0; idx < this.additionalTransformPaths.length; ++idx)\n if (!this.additionalTransformPaths[idx].equals(other.additionalTransformPaths[idx]))\n return false;\n }\n return true;\n }\n}\n\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeometryStream.d.ts","sourceRoot":"","sources":["../../../src/geomet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|
this.geomParams = typeof appearance === "string" ? new GeometryParams_1.GeometryParams(appearance) : appearance;
|
|
294
294
|
this.localToWorld = localToWorld;
|
|
295
295
|
}
|
|
296
|
-
get primitive() { return this._primitive; }
|
|
296
|
+
get primitive() { return (0, core_bentley_1.expectDefined)(this._primitive); }
|
|
297
297
|
set primitive(primitive) { this._primitive = primitive; }
|
|
298
298
|
setGeometryQuery(geometry) { this._primitive = { type: "geometryQuery", geometry }; }
|
|
299
299
|
setTextString(textString) { this._primitive = { type: "textString", textString }; }
|
|
@@ -366,7 +366,7 @@ class GeometryStreamIterator {
|
|
|
366
366
|
let transform;
|
|
367
367
|
if (element.placement !== undefined) {
|
|
368
368
|
const origin = core_geometry_1.Point3d.createFrom(core_geometry_1.Point2d.fromJSON(element.placement.origin));
|
|
369
|
-
const matrix = core_geometry_1.Matrix3d.createRotationAroundVector(core_geometry_1.Vector3d.unitZ(), core_geometry_1.Angle.fromJSON(element.placement.angle));
|
|
369
|
+
const matrix = (0, core_bentley_1.expectDefined)(core_geometry_1.Matrix3d.createRotationAroundVector(core_geometry_1.Vector3d.unitZ(), core_geometry_1.Angle.fromJSON(element.placement.angle)));
|
|
370
370
|
transform = core_geometry_1.Transform.createOriginAndMatrix(origin, matrix);
|
|
371
371
|
}
|
|
372
372
|
return new GeometryStreamIterator(element.geom, element.category, transform);
|