@itwin/core-common 5.2.0-dev.3 → 5.2.0-dev.31

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.
Files changed (220) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/lib/cjs/AnalysisStyle.d.ts.map +1 -1
  3. package/lib/cjs/AnalysisStyle.js +2 -0
  4. package/lib/cjs/AnalysisStyle.js.map +1 -1
  5. package/lib/cjs/BlobReader.d.ts.map +1 -1
  6. package/lib/cjs/BlobReader.js +10 -2
  7. package/lib/cjs/BlobReader.js.map +1 -1
  8. package/lib/cjs/BriefcaseTypes.d.ts +2 -0
  9. package/lib/cjs/BriefcaseTypes.d.ts.map +1 -1
  10. package/lib/cjs/BriefcaseTypes.js.map +1 -1
  11. package/lib/cjs/DisplayStyleSettings.d.ts.map +1 -1
  12. package/lib/cjs/DisplayStyleSettings.js +1 -1
  13. package/lib/cjs/DisplayStyleSettings.js.map +1 -1
  14. package/lib/cjs/ECSqlTypes.js +1 -1
  15. package/lib/cjs/ECSqlTypes.js.map +1 -1
  16. package/lib/cjs/ElementProps.d.ts +8 -0
  17. package/lib/cjs/ElementProps.d.ts.map +1 -1
  18. package/lib/cjs/ElementProps.js.map +1 -1
  19. package/lib/cjs/FeatureIndex.d.ts.map +1 -1
  20. package/lib/cjs/FeatureIndex.js +2 -1
  21. package/lib/cjs/FeatureIndex.js.map +1 -1
  22. package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
  23. package/lib/cjs/FeatureSymbology.js +0 -2
  24. package/lib/cjs/FeatureSymbology.js.map +1 -1
  25. package/lib/cjs/GeometryParams.d.ts.map +1 -1
  26. package/lib/cjs/GeometryParams.js +6 -0
  27. package/lib/cjs/GeometryParams.js.map +1 -1
  28. package/lib/cjs/Gradient.d.ts.map +1 -1
  29. package/lib/cjs/Gradient.js +5 -0
  30. package/lib/cjs/Gradient.js.map +1 -1
  31. package/lib/cjs/HiddenLine.d.ts.map +1 -1
  32. package/lib/cjs/HiddenLine.js +4 -1
  33. package/lib/cjs/HiddenLine.js.map +1 -1
  34. package/lib/cjs/IModel.d.ts.map +1 -1
  35. package/lib/cjs/IModel.js +7 -7
  36. package/lib/cjs/IModel.js.map +1 -1
  37. package/lib/cjs/Localization.d.ts.map +1 -1
  38. package/lib/cjs/Localization.js +3 -0
  39. package/lib/cjs/Localization.js.map +1 -1
  40. package/lib/cjs/TextureMapping.js +2 -2
  41. package/lib/cjs/TextureMapping.js.map +1 -1
  42. package/lib/cjs/ThematicDisplay.d.ts.map +1 -1
  43. package/lib/cjs/ThematicDisplay.js +3 -1
  44. package/lib/cjs/ThematicDisplay.js.map +1 -1
  45. package/lib/cjs/Tween.d.ts +1 -1
  46. package/lib/cjs/Tween.d.ts.map +1 -1
  47. package/lib/cjs/Tween.js +4 -2
  48. package/lib/cjs/Tween.js.map +1 -1
  49. package/lib/cjs/annotation/TextAnnotation.d.ts +1 -1
  50. package/lib/cjs/annotation/TextAnnotation.d.ts.map +1 -1
  51. package/lib/cjs/annotation/TextAnnotation.js +1 -1
  52. package/lib/cjs/annotation/TextAnnotation.js.map +1 -1
  53. package/lib/cjs/annotation/TextBlock.d.ts +17 -68
  54. package/lib/cjs/annotation/TextBlock.d.ts.map +1 -1
  55. package/lib/cjs/annotation/TextBlock.js +18 -33
  56. package/lib/cjs/annotation/TextBlock.js.map +1 -1
  57. package/lib/cjs/annotation/TextField.d.ts +86 -0
  58. package/lib/cjs/annotation/TextField.d.ts.map +1 -0
  59. package/lib/cjs/annotation/TextField.js +10 -0
  60. package/lib/cjs/annotation/TextField.js.map +1 -0
  61. package/lib/cjs/core-common.d.ts +1 -0
  62. package/lib/cjs/core-common.d.ts.map +1 -1
  63. package/lib/cjs/core-common.js +1 -0
  64. package/lib/cjs/core-common.js.map +1 -1
  65. package/lib/cjs/geometry/AdditionalTransform.d.ts.map +1 -1
  66. package/lib/cjs/geometry/AdditionalTransform.js +1 -0
  67. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  68. package/lib/cjs/geometry/AreaPattern.d.ts.map +1 -1
  69. package/lib/cjs/geometry/AreaPattern.js +13 -0
  70. package/lib/cjs/geometry/AreaPattern.js.map +1 -1
  71. package/lib/cjs/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
  72. package/lib/cjs/geometry/CoordinateReferenceSystem.js +7 -0
  73. package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
  74. package/lib/cjs/geometry/ElementGeometry.d.ts.map +1 -1
  75. package/lib/cjs/geometry/ElementGeometry.js +19 -10
  76. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  77. package/lib/cjs/geometry/ElementGeometryFB.d.ts.map +1 -1
  78. package/lib/cjs/geometry/ElementGeometryFB.js +1 -0
  79. package/lib/cjs/geometry/ElementGeometryFB.js.map +1 -1
  80. package/lib/cjs/geometry/GeodeticDatum.d.ts.map +1 -1
  81. package/lib/cjs/geometry/GeodeticDatum.js +7 -0
  82. package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
  83. package/lib/cjs/geometry/GeometryStream.d.ts.map +1 -1
  84. package/lib/cjs/geometry/GeometryStream.js +2 -2
  85. package/lib/cjs/geometry/GeometryStream.js.map +1 -1
  86. package/lib/cjs/geometry/LineStyle.d.ts.map +1 -1
  87. package/lib/cjs/geometry/LineStyle.js +3 -0
  88. package/lib/cjs/geometry/LineStyle.js.map +1 -1
  89. package/lib/cjs/geometry/Placement.d.ts.map +1 -1
  90. package/lib/cjs/geometry/Placement.js +1 -1
  91. package/lib/cjs/geometry/Placement.js.map +1 -1
  92. package/lib/cjs/internal/PackedFeatureTable.d.ts.map +1 -1
  93. package/lib/cjs/internal/PackedFeatureTable.js +1 -1
  94. package/lib/cjs/internal/PackedFeatureTable.js.map +1 -1
  95. package/lib/cjs/internal/annotations/FieldFormatter.d.ts +18 -0
  96. package/lib/cjs/internal/annotations/FieldFormatter.d.ts.map +1 -0
  97. package/lib/cjs/internal/annotations/FieldFormatter.js +66 -0
  98. package/lib/cjs/internal/annotations/FieldFormatter.js.map +1 -0
  99. package/lib/cjs/internal/cross-package.d.ts +1 -0
  100. package/lib/cjs/internal/cross-package.d.ts.map +1 -1
  101. package/lib/cjs/internal/cross-package.js +4 -1
  102. package/lib/cjs/internal/cross-package.js.map +1 -1
  103. package/lib/cjs/rpc/core/RpcConfiguration.d.ts +0 -3
  104. package/lib/cjs/rpc/core/RpcConfiguration.d.ts.map +1 -1
  105. package/lib/cjs/rpc/core/RpcConfiguration.js +10 -2
  106. package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
  107. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js +1 -1
  108. package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  109. package/lib/cjs/rpc/web/WebAppRpcRequest.js +1 -1
  110. package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
  111. package/lib/esm/AnalysisStyle.d.ts.map +1 -1
  112. package/lib/esm/AnalysisStyle.js +2 -0
  113. package/lib/esm/AnalysisStyle.js.map +1 -1
  114. package/lib/esm/BlobReader.d.ts.map +1 -1
  115. package/lib/esm/BlobReader.js +10 -2
  116. package/lib/esm/BlobReader.js.map +1 -1
  117. package/lib/esm/BriefcaseTypes.d.ts +2 -0
  118. package/lib/esm/BriefcaseTypes.d.ts.map +1 -1
  119. package/lib/esm/BriefcaseTypes.js.map +1 -1
  120. package/lib/esm/DisplayStyleSettings.d.ts.map +1 -1
  121. package/lib/esm/DisplayStyleSettings.js +2 -2
  122. package/lib/esm/DisplayStyleSettings.js.map +1 -1
  123. package/lib/esm/ECSqlTypes.js +1 -1
  124. package/lib/esm/ECSqlTypes.js.map +1 -1
  125. package/lib/esm/ElementProps.d.ts +8 -0
  126. package/lib/esm/ElementProps.d.ts.map +1 -1
  127. package/lib/esm/ElementProps.js.map +1 -1
  128. package/lib/esm/FeatureIndex.d.ts.map +1 -1
  129. package/lib/esm/FeatureIndex.js +2 -1
  130. package/lib/esm/FeatureIndex.js.map +1 -1
  131. package/lib/esm/FeatureSymbology.d.ts.map +1 -1
  132. package/lib/esm/FeatureSymbology.js +0 -2
  133. package/lib/esm/FeatureSymbology.js.map +1 -1
  134. package/lib/esm/GeometryParams.d.ts.map +1 -1
  135. package/lib/esm/GeometryParams.js +6 -0
  136. package/lib/esm/GeometryParams.js.map +1 -1
  137. package/lib/esm/Gradient.d.ts.map +1 -1
  138. package/lib/esm/Gradient.js +5 -0
  139. package/lib/esm/Gradient.js.map +1 -1
  140. package/lib/esm/HiddenLine.d.ts.map +1 -1
  141. package/lib/esm/HiddenLine.js +4 -1
  142. package/lib/esm/HiddenLine.js.map +1 -1
  143. package/lib/esm/IModel.d.ts.map +1 -1
  144. package/lib/esm/IModel.js +8 -8
  145. package/lib/esm/IModel.js.map +1 -1
  146. package/lib/esm/Localization.d.ts.map +1 -1
  147. package/lib/esm/Localization.js +3 -0
  148. package/lib/esm/Localization.js.map +1 -1
  149. package/lib/esm/TextureMapping.js +3 -3
  150. package/lib/esm/TextureMapping.js.map +1 -1
  151. package/lib/esm/ThematicDisplay.d.ts.map +1 -1
  152. package/lib/esm/ThematicDisplay.js +3 -1
  153. package/lib/esm/ThematicDisplay.js.map +1 -1
  154. package/lib/esm/Tween.d.ts +1 -1
  155. package/lib/esm/Tween.d.ts.map +1 -1
  156. package/lib/esm/Tween.js +4 -2
  157. package/lib/esm/Tween.js.map +1 -1
  158. package/lib/esm/annotation/TextAnnotation.d.ts +1 -1
  159. package/lib/esm/annotation/TextAnnotation.d.ts.map +1 -1
  160. package/lib/esm/annotation/TextAnnotation.js +1 -1
  161. package/lib/esm/annotation/TextAnnotation.js.map +1 -1
  162. package/lib/esm/annotation/TextBlock.d.ts +17 -68
  163. package/lib/esm/annotation/TextBlock.d.ts.map +1 -1
  164. package/lib/esm/annotation/TextBlock.js +18 -33
  165. package/lib/esm/annotation/TextBlock.js.map +1 -1
  166. package/lib/esm/annotation/TextField.d.ts +86 -0
  167. package/lib/esm/annotation/TextField.d.ts.map +1 -0
  168. package/lib/esm/annotation/TextField.js +9 -0
  169. package/lib/esm/annotation/TextField.js.map +1 -0
  170. package/lib/esm/core-common.d.ts +1 -0
  171. package/lib/esm/core-common.d.ts.map +1 -1
  172. package/lib/esm/core-common.js +1 -0
  173. package/lib/esm/core-common.js.map +1 -1
  174. package/lib/esm/geometry/AdditionalTransform.d.ts.map +1 -1
  175. package/lib/esm/geometry/AdditionalTransform.js +1 -0
  176. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  177. package/lib/esm/geometry/AreaPattern.d.ts.map +1 -1
  178. package/lib/esm/geometry/AreaPattern.js +13 -0
  179. package/lib/esm/geometry/AreaPattern.js.map +1 -1
  180. package/lib/esm/geometry/CoordinateReferenceSystem.d.ts.map +1 -1
  181. package/lib/esm/geometry/CoordinateReferenceSystem.js +7 -0
  182. package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
  183. package/lib/esm/geometry/ElementGeometry.d.ts.map +1 -1
  184. package/lib/esm/geometry/ElementGeometry.js +20 -11
  185. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  186. package/lib/esm/geometry/ElementGeometryFB.d.ts.map +1 -1
  187. package/lib/esm/geometry/ElementGeometryFB.js +1 -0
  188. package/lib/esm/geometry/ElementGeometryFB.js.map +1 -1
  189. package/lib/esm/geometry/GeodeticDatum.d.ts.map +1 -1
  190. package/lib/esm/geometry/GeodeticDatum.js +7 -0
  191. package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
  192. package/lib/esm/geometry/GeometryStream.d.ts.map +1 -1
  193. package/lib/esm/geometry/GeometryStream.js +3 -3
  194. package/lib/esm/geometry/GeometryStream.js.map +1 -1
  195. package/lib/esm/geometry/LineStyle.d.ts.map +1 -1
  196. package/lib/esm/geometry/LineStyle.js +3 -0
  197. package/lib/esm/geometry/LineStyle.js.map +1 -1
  198. package/lib/esm/geometry/Placement.d.ts.map +1 -1
  199. package/lib/esm/geometry/Placement.js +2 -2
  200. package/lib/esm/geometry/Placement.js.map +1 -1
  201. package/lib/esm/internal/PackedFeatureTable.d.ts.map +1 -1
  202. package/lib/esm/internal/PackedFeatureTable.js +2 -2
  203. package/lib/esm/internal/PackedFeatureTable.js.map +1 -1
  204. package/lib/esm/internal/annotations/FieldFormatter.d.ts +18 -0
  205. package/lib/esm/internal/annotations/FieldFormatter.d.ts.map +1 -0
  206. package/lib/esm/internal/annotations/FieldFormatter.js +62 -0
  207. package/lib/esm/internal/annotations/FieldFormatter.js.map +1 -0
  208. package/lib/esm/internal/cross-package.d.ts +1 -0
  209. package/lib/esm/internal/cross-package.d.ts.map +1 -1
  210. package/lib/esm/internal/cross-package.js +1 -0
  211. package/lib/esm/internal/cross-package.js.map +1 -1
  212. package/lib/esm/rpc/core/RpcConfiguration.d.ts +0 -3
  213. package/lib/esm/rpc/core/RpcConfiguration.d.ts.map +1 -1
  214. package/lib/esm/rpc/core/RpcConfiguration.js +10 -2
  215. package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
  216. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js +1 -1
  217. package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
  218. package/lib/esm/rpc/web/WebAppRpcRequest.js +2 -2
  219. package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
  220. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"CoordinateReferenceSystem.js","sourceRoot":"","sources":["../../../src/geometry/CoordinateReferenceSystem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,0CAA0C;;;AAE1C,mDAAoE;AACpE,2DAAgF;AAChF,6CAAgG;AAChG,+DAAsF;AAsBtF;;GAEG;AACH,MAAa,mBAAmB;IAC9B,8EAA8E;IAC9D,SAAS,CAAiB;IAC1C;;;;+CAI2C;IAC3B,SAAS,CAAiB;IAE1C,YAAmB,IAA+B;QAChD,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,SAAS,GAAG,2BAAc,CAAC,QAAQ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AK,CAAC,KAAK,CAAC,WAAW,KAAK,SAAS,CAAC;YACxE,OAAO,KAAK,CAAC;QAEf,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,WAAY,CAAC;YAClE,OAAO,KAAK,CAAC;QAEf,IAAI,CAAC,IAAI,CAAC,mBAAmB,KAAK,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,KAAK,SAAS,CAAC;YACxF,OAAO,KAAK,CAAC;QAEf,IAAI,IAAI,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAoB,CAAC;YAC1F,OAAO,KAAK,CAAC;QAEf,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAhED,sCAgEC","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 NAVD, NGVD, NSRS, Helmert\n\nimport { GeodeticDatum, GeodeticDatumProps } from \"./GeodeticDatum\";\nimport { GeodeticEllipsoid, GeodeticEllipsoidProps } from \"./GeodeticEllipsoid\";\nimport { Carto2DDegrees, Carto2DDegreesProps, Projection, ProjectionProps } from \"./Projection\";\nimport { AdditionalTransform, AdditionalTransformProps } from \"./AdditionalTransform\";\n/** This type indicates possible linear and angular units supported.\n * @public\n * @extensions\n*/\nexport type UnitType = \"Meter\" | \"InternationalFoot\" | \"USSurveyFoot\" | \"Degree\" | \"Unsupported\";\n\n/** The extent in latitude, longitude bounds where a horizontal CRS is applicable\n * @public\n * @extensions\n*/\nexport interface HorizontalCRSExtentProps {\n /** The South West point in latitude and longitude in degrees for the user-defined extent of the CRS */\n southWest: Carto2DDegreesProps;\n /** The North East point in latitude in longitude in degrees for the user-defined extent of the CRS.\n The latitude of the North East must be greater or equal to the latitude of the South West point\n It is possible, however, for the longitude of the South West corner to have greater value than the\n longitude of the North East point such as when the west longitude is located on the other side\n of the -180/180 degree longitude line.*/\n northEast: Carto2DDegreesProps;\n}\n\n/** The extent in latitude, longitude bounds where a horizontal CRS is applicable\n * @public\n */\nexport class HorizontalCRSExtent implements HorizontalCRSExtentProps {\n /** The latitude minimum and maximum for the user-defined extent of the CRS */\n public readonly southWest: Carto2DDegrees;\n /** The North East point in latitude in longitude in degrees for the user-defined extent of the CRS.\n The latitude of the North East must be greater or equal to the latitude of the South West point\n It is possible, however, for the longitude of the South West corner to have greater value than the\n longitude of the North East point such as when the west longitude is located on the other side\n of the -180/180 degree longitude line.*/\n public readonly northEast: Carto2DDegrees;\n\n public constructor(data?: HorizontalCRSExtentProps) {\n if (data) {\n this.southWest = Carto2DDegrees.fromJSON(data.southWest);\n this.northEast = Carto2DDegrees.fromJSON(data.northEast);\n if (this.northEast.latitude < this.southWest.latitude)\n this.northEast.latitude = this.southWest.latitude;\n } else {\n this.southWest = new Carto2DDegrees();\n this.northEast = new Carto2DDegrees();\n }\n }\n\n /** Creates an extent object from JSON representation.\n * @public */\n public static fromJSON(data: HorizontalCRSExtentProps): HorizontalCRSExtent {\n return new HorizontalCRSExtent(data);\n }\n\n /** Creates a JSON from the Extent definition\n * @public */\n public toJSON(): HorizontalCRSExtentProps {\n return { southWest: this.southWest.toJSON(), northEast: this.northEast.toJSON() };\n }\n\n /** Compares two Extents. It applies a minuscule tolerance to comparing numbers.\n * @public */\n public equals(other: HorizontalCRSExtent): boolean {\n return this.southWest.equals(other.southWest) && this.northEast.equals(other.northEast);\n }\n}\n\n/** Horizontal Geographic Coordinate Reference System definition\n * @public\n * @extensions\n */\nexport interface HorizontalCRSProps {\n /** The identifier of the horizontal CRS as stored in the dictionary or the service database */\n id?: string;\n /** Used only for user-defined definitions that will typically use a GUID as id. A display name for the CRS that allows\n * a human to understand the nature of the definition\n */\n name?: string;\n /** Description */\n description?: string;\n /** A textual description of the source of the CRS definition. */\n source?: 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 /** The EPSG code of the CRS. If undefined then there is no EPSG code associated. */\n epsg?: number;\n /** The identifier of the geodetic datum as stored in the dictionary or the service database. */\n datumId?: string;\n /** The complete definition of the geodetic datum referred to by datumId. It can also be used if the datum is not stored\n * in either service or dictionary.\n */\n datum?: GeodeticDatumProps;\n /** The identifier of the geodetic ellipsoid as stored in the dictionary or the service database. This property is exclusive\n * of having datumId and datum properties undefined.\n */\n ellipsoidId?: string;\n /** The complete definition of the geodetic datum referred to by datumId. It can also be used if the datum is not stored\n * in either service or dictionary\n */\n ellipsoid?: GeodeticEllipsoidProps;\n /** The text indicating the unit used. */\n unit?: UnitType;\n /** Projection including projection parameters. */\n projection?: ProjectionProps;\n /** Extent representing the domain of application of the CRS. */\n extent?: HorizontalCRSExtentProps;\n}\n\n/** Horizontal Geographic Coordinate reference System implementation.\n * An horizontal CRS defines the portion which is horizontal to the Earth surface (within the deformation brought by the projection process).\n * There are two major classes of Horizontal Coordinate Reference Systems:\n * - The projected CRS which rely on a projection to flatten the coordinate system space into axises using linear\n * units (meter, US Survey Feet, ...) relative to some origin.\n * - The non projected CRS (also named geographic CRS by EPSG nomenclature) that does\n * not require a projection (projection method = None) and horizontal coordinates are expressed\n * as longitude and latitude (see [[Cartographic]])\n * Horizontal Coordinate Systems rely on a projection to flatten the surface of an ellipsoid (see [[GeodeticEllipsoid]]) which is\n * the mathematical model of the Earth surface.\n * Explanations in more details of the various concepts can be obtained from other sources including the page on the subject\n * on itwinJS.org (see https://www.itwinjs.org/learning/geolocation/?term=coordinate+system).\n * A few details are still required to grasp the model. Geographic Coordinate Reference Systems rely on the concept of geodetic datums\n * (see [[GeodeticDatum]]) to convert latitude/longitude from one frame of reference to another. Such geodetic datum will bind the ellipsoid\n * and possibly define transformation steps required to convert from the currently used geodetic datum to the common datum WGS84\n * used for worldwide data (such as most popular imagery data sources). If there are no rules established to convert to WGS84\n * or if those rules are secret then the horizontal CRS can be datum-less and must make direct use of the ellipsoid\n * to define the earth surface.\n * For this purpose either the geodetic datum must be specified using either datumId or datum properties or both. If\n * both these values are undefined then it is possible to define the ellipsoid using properties ellipsoidId or ellipsoid or both.\n * These two pairs of properties are mutually exclusive with datum related properties having precedence. If a datum or datumId is set then\n * ellipsoid properties will automatically be undefined. If datumId or datum is defined then attempts to set ellipsoidId or ellipsoid\n * will fail silently, the values remaining undefined. The ellipsoidId will not be a repeat of the ellipsoidId property part of the\n * geodetic datum definition.\n * @public\n */\nexport class HorizontalCRS implements HorizontalCRSProps {\n /** The identifier of the horizontal CRS as stored in the dictionary or the service database */\n public readonly id?: string;\n /** Used only for user-defined definitions that will typically use a GUID as id. A display name for the CRS that allows\n ** a human to understand the nature of the definition\n */\n public readonly name?: string;\n /** Description */\n public readonly description?: string;\n /** The source of the CRS definition. */\n public readonly source?: 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 /** The EPSG code of the CRS. If undefined then there is no EPSG code associated. */\n public readonly epsg?: number;\n /** The identifier of the geodetic datum as stored in the dictionary or the service database. */\n public readonly datumId?: string;\n /** The complete definition of the geodetic datum referred to by datumId. It can also be used if the datum is not stored\n * in either service or dictionary.\n */\n public readonly datum?: GeodeticDatum;\n\n /** The identifier of the geodetic ellipsoid as stored in the dictionary or the service database. This property is exclusive\n * of having datumId and datum properties undefined.\n */\n public readonly ellipsoidId?: string;\n /** The complete definition of the geodetic ellipsoid referred to by ellipsoidId. It can also be used if the ellipsoid is not stored\n * in either service or dictionary. This property is exclusive\n * of having datumId and datum properties undefined.\n */\n public readonly ellipsoid?: GeodeticEllipsoid;\n /** The text indicating the unit used. */\n public readonly unit?: UnitType;\n /** Projection including projection parameters. */\n public readonly projection?: Projection;\n /** Extent representing the domain of application of the CRS. */\n public readonly extent?: HorizontalCRSExtent;\n\n public constructor(_data?: HorizontalCRSProps) {\n this.deprecated = false;\n if (_data) {\n this.id = _data.id;\n this.description = _data.description;\n this.source = _data.source;\n this.deprecated = _data.deprecated ?? false;\n this.epsg = _data.epsg;\n this.datumId = _data.datumId;\n this.datum = _data.datum ? GeodeticDatum.fromJSON(_data.datum) : undefined;\n if (!this.datumId && !this.datum) {\n this.ellipsoidId = _data.ellipsoidId;\n this.ellipsoid = _data.ellipsoid ? GeodeticEllipsoid.fromJSON(_data.ellipsoid) : undefined;\n }\n this.unit = _data.unit;\n this.projection = _data.projection ? Projection.fromJSON(_data.projection) : undefined;\n this.extent = _data.extent ? HorizontalCRSExtent.fromJSON(_data.extent) : undefined;\n }\n }\n\n /** Creates an Horizontal CRS from JSON representation.\n * @public */\n public static fromJSON(data: HorizontalCRSProps): HorizontalCRS {\n return new HorizontalCRS(data);\n }\n\n /** Creates a JSON from the Horizontal CRS definition\n * @public */\n public toJSON(): HorizontalCRSProps {\n const data: HorizontalCRSProps = {};\n data.id = this.id;\n data.description = this.description;\n data.source = this.source;\n /* We prefer to use the default undef instead of false value for deprecated in Json */\n if (this.deprecated)\n data.deprecated = true;\n\n data.epsg = this.epsg;\n data.datumId = this.datumId;\n if (this.datum)\n data.datum = this.datum.toJSON();\n\n data.ellipsoidId = this.ellipsoidId;\n if (this.ellipsoid)\n data.ellipsoid = this.ellipsoid.toJSON();\n\n data.unit = this.unit;\n if (this.projection)\n data.projection = this.projection.toJSON();\n\n if (this.extent)\n data.extent = this.extent.toJSON();\n\n return data;\n }\n\n /** Compares two horizontal CRS. It is not an equivalence test as descriptive properties are also compared\n * but number compares are applied a minuscule tolerance.\n * @public */\n public equals(other: HorizontalCRS): boolean {\n if (this.id !== other.id ||\n this.description !== other.description ||\n this.source !== other.source ||\n this.deprecated !== other.deprecated ||\n this.epsg !== other.epsg ||\n this.datumId !== other.datumId ||\n this.ellipsoidId !== other.ellipsoidId ||\n this.unit !== other.unit)\n return false;\n\n if ((this.datum === undefined) !== (other.datum === undefined))\n return false;\n\n if (this.datum && !this.datum.equals(other.datum!))\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.projection === undefined) !== (other.projection === undefined))\n return false;\n\n if (this.projection && !this.projection.equals(other.projection!))\n return false;\n\n if ((this.extent === undefined) !== (other.extent === undefined))\n return false;\n\n if (this.extent && !this.extent.equals(other.extent!))\n return false;\n\n return true;\n }\n}\n\n/** Vertical Geographic Coordinate reference System definition\n * @public\n * @extensions\n */\nexport interface VerticalCRSProps {\n /** Vertical CRS Key name.\n * @see [[VerticalCRS.id]]\n */\n id: \"GEOID\" | \"ELLIPSOID\" | \"NGVD29\" | \"NAVD88\" | \"LOCAL_ELLIPSOID\";\n}\n\n/** Vertical Coordinate reference System implementation.\n * The VerticalCRS contains currently a single identifier property of string type. Although\n * we currently only support five distinct key values \"GEOID\", \"ELLIPSOID\", \"NAVD88\", \"NGVD29\" and \"LOCAL_ELLIPSOID\"\n * we expect to support a broader set in the future including, eventually, user defined vertical CRS\n * which will require additional parameters to be added.\n * @public\n*/\nexport class VerticalCRS implements VerticalCRSProps {\n /** Vertical CRS Key name. The only supported values are currently \"GEOID\", \"ELLIPSOID\", \"NAVD88\", \"NGVD29\" and \"LOCAL_ELLIPSOID\".\n * GEOID indicates elevations are to be interpreted relative to the local Geoid of the dataset. It can also be considered to be Mean Sea Level.\n * NAVD88 is the local geoid model for the USA. This vertical datum can only be used if the horizontal portion is based on a\n * datum variation of NAD83, NAD27, NSRS2007 and NSRS2011.\n * NGVD29 is the former local geoid model for the USA. This vertical datum can only be used if the horizontal portion is based on a\n * datum variation of NAD83, NAD27, NSRS2007 and NSRS2011.\n * ELLIPSOID indicates that elevations are relative to the surface of the WGS84(or current coincident) ellipsoid.\n * LOCAL_ELLIPSOID indicates that elevations are relative to the surface of the local ellipsoid used by the horizontal CRS. It can only\n * be used for datums that are not considered coincident vertically with WGS84. Use of this vertical datum is strongly discouraged.\n */\n public readonly id: \"GEOID\" | \"ELLIPSOID\" | \"NGVD29\" | \"NAVD88\" | \"LOCAL_ELLIPSOID\";\n\n public constructor(data?: VerticalCRSProps) {\n this.id = \"GEOID\";\n if (data)\n this.id = data.id;\n }\n\n /** Creates a Vertical CRS from JSON representation.\n * @public */\n public static fromJSON(data: VerticalCRSProps): VerticalCRS {\n return new VerticalCRS(data);\n }\n\n /** Creates a JSON from the Vertical CRS definition\n * @public */\n public toJSON(): VerticalCRSProps {\n return { id: this.id };\n }\n\n /** Compares two vertical CRS.\n * @public */\n public equals(other: VerticalCRS): boolean {\n return (this.id === other.id);\n }\n}\n\n/** Geographic Coordinate Reference System definition that includes the horizontal and vertical definitions as well as an optional\n * additional transformation.\n * @see [[GeographicCRS]].\n * @public\n * @extensions\n */\nexport interface GeographicCRSProps {\n /** The horizontal portion of the geographic coordinate reference system. */\n horizontalCRS?: HorizontalCRSProps;\n /** The vertical portion of the geographic coordinate reference system. */\n verticalCRS?: VerticalCRSProps;\n /** The optional additional transform the geographic coordinate reference system. */\n additionalTransform?: AdditionalTransformProps;\n}\n\n/** Geographic Coordinate Reference System implementation. This is the class that indicates the definition of a Geographic\n * coordinate reference system comprised of three components: Horizontal and Vertical and an optional additional transform.\n * The vertical component (see [[VerticalCRS]]) is the simplest portion containing a simple identifier as a string.\n * The optional additional transform of which, currently, only the type Helmert 2D with Z offset [[Helmert2DWithZOffset]] is supported\n * defines a transformation of x,y, and z cartesian coordinate of the projection to the final\n * Geographic Coordinate Reference System cartesian coordinates.\n * The horizontal component contains a list of identification and documentation properties as well as\n * defining details possibly including the projection with method and parameters, the definition of the datum, ellipsoid, extent and so on.\n * The principle of describing a Geographic CRS is that the definition may be incomplete. The whole set of classes related to geographic\n * coordinate reference system classes ([[GeodeticEllipsoid]], [[GeodeticDatum]], [[Projection]], [[GeodeticTransform]], ...) are designed\n * so that they can be parsed from incomplete JSON fragments, or produce incomplete JSON fragments such as would be\n * generated from a request to a REST API to a server when select OData clauses are used.\n * Often GeographicCRS would knowingly be created incomplete but with sufficient information to perform conversion from some\n * reprojection engine (the present set of classes do not provide any GeographicCRS conversion).\n * For example the following definitions are quite sufficient to request conversion to or from by a reprojection engine:\n * { horizontalCRS: {id: \"LL84\"}, verticalCRS: {id:\"GEOID\"}\n * or\n * { horizontalCRS: {datumId: \"WGS84\", projection: {method: \"None\"}}, verticalCRS: \"ELLIPSOID\"}\n * The reprojection engine will use the engine internal dictionary to obtain the details if it can.\n * Some definitions will originate from other sources (a parsed WKT for example) and the reprojection engine will require\n * all mathematical and operational details to perform any conversion (descriptive information are ignored in the conversion process).\n * @note see important detailed explanation in the [[HorizontalCRS]], [[VerticalCRS]] and [[AdditionalTransform]] documentation.\n * @note Earth Centered, Earth Fixed coordinate system (ECEF) is a full 3D cartesian system that unambiguously\n * expressed coordinates relative to the Earth Center. Since there is no horizontal portion independent from\n * the vertical portion this system cannot be represented by a GeographicCRS and remains a separate concept.\n * @public\n*/\nexport class GeographicCRS implements GeographicCRSProps {\n /** The horizontal portion of the geographic coordinate reference system. */\n public readonly horizontalCRS?: HorizontalCRS;\n /** The vertical portion of the geographic coordinate reference system. */\n public readonly verticalCRS?: VerticalCRS;\n /** The optional additional transform the geographic coordinate reference system. */\n public readonly additionalTransform?: AdditionalTransform;\n\n public constructor(data?: GeographicCRSProps) {\n if (data) {\n this.horizontalCRS = data.horizontalCRS ? HorizontalCRS.fromJSON(data.horizontalCRS) : undefined;\n this.verticalCRS = data.verticalCRS ? VerticalCRS.fromJSON(data.verticalCRS) : undefined;\n this.additionalTransform = data.additionalTransform ? AdditionalTransform.fromJSON(data.additionalTransform) : undefined;\n }\n }\n\n /** Creates a Geographic CRS from JSON representation.\n * @public */\n public static fromJSON(data: GeographicCRSProps): GeographicCRS {\n return new GeographicCRS(data);\n }\n\n /** Creates a JSON from the Geographic CRS definition\n * @public */\n public toJSON(): GeographicCRSProps {\n const data: GeographicCRSProps = {};\n if (this.horizontalCRS)\n data.horizontalCRS = this.horizontalCRS.toJSON();\n\n if (this.verticalCRS)\n data.verticalCRS = this.verticalCRS.toJSON();\n\n if (this.additionalTransform)\n data.additionalTransform = this.additionalTransform.toJSON();\n\n return data;\n }\n\n /** Compares two Geographic CRS. It is a strict compare operation not an equivalence test though\n * number compares are applied a minuscule tolerance.\n * It takes into account descriptive properties not only mathematical definition properties.\n * @public\n */\n public equals(other: GeographicCRS): boolean {\n if ((this.horizontalCRS === undefined) !== (other.horizontalCRS === undefined))\n return false;\n\n if (this.horizontalCRS && !this.horizontalCRS.equals(other.horizontalCRS!))\n return false;\n\n if ((this.verticalCRS === undefined) !== (other.verticalCRS === undefined))\n return false;\n\n if (this.verticalCRS && !this.verticalCRS.equals(other.verticalCRS!))\n return false;\n\n if ((this.additionalTransform === undefined) !== (other.additionalTransform === undefined))\n return false;\n\n if (this.additionalTransform && !this.additionalTransform.equals(other.additionalTransform!))\n return false;\n\n return true;\n }\n}\n\n"]}
1
+ {"version":3,"file":"CoordinateReferenceSystem.js","sourceRoot":"","sources":["../../../src/geometry/CoordinateReferenceSystem.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;AACH,0CAA0C;;;AAE1C,mDAAoE;AACpE,2DAAgF;AAChF,6CAAgG;AAChG,+DAAsF;AAsBtF;;GAEG;AACH,MAAa,mBAAmB;IAC9B,8EAA8E;IAC9D,SAAS,CAAiB;IAC1C;;;;+CAI2C;IAC3B,SAAS,CAAiB;IAE1C,YAAmB,IAA+B;QAChD,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,CAAC,SAAS,GAAG,2BAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzD,IAAI,CAAC,SAAS,GAAG,2BAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzD,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ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,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,WAAY,CAAC;YAClE,OAAO,KAAK,CAAC;QAEf,IAAI,CAAC,IAAI,CAAC,mBAAmB,KAAK,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,KAAK,SAAS,CAAC;YACxF,OAAO,KAAK,CAAC;QAEf,oEAAoE;QACpE,IAAI,IAAI,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAoB,CAAC;YAC1F,OAAO,KAAK,CAAC;QAEf,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAnED,sCAmEC","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 NAVD, NGVD, NSRS, Helmert\n\nimport { GeodeticDatum, GeodeticDatumProps } from \"./GeodeticDatum\";\nimport { GeodeticEllipsoid, GeodeticEllipsoidProps } from \"./GeodeticEllipsoid\";\nimport { Carto2DDegrees, Carto2DDegreesProps, Projection, ProjectionProps } from \"./Projection\";\nimport { AdditionalTransform, AdditionalTransformProps } from \"./AdditionalTransform\";\n/** This type indicates possible linear and angular units supported.\n * @public\n * @extensions\n*/\nexport type UnitType = \"Meter\" | \"InternationalFoot\" | \"USSurveyFoot\" | \"Degree\" | \"Unsupported\";\n\n/** The extent in latitude, longitude bounds where a horizontal CRS is applicable\n * @public\n * @extensions\n*/\nexport interface HorizontalCRSExtentProps {\n /** The South West point in latitude and longitude in degrees for the user-defined extent of the CRS */\n southWest: Carto2DDegreesProps;\n /** The North East point in latitude in longitude in degrees for the user-defined extent of the CRS.\n The latitude of the North East must be greater or equal to the latitude of the South West point\n It is possible, however, for the longitude of the South West corner to have greater value than the\n longitude of the North East point such as when the west longitude is located on the other side\n of the -180/180 degree longitude line.*/\n northEast: Carto2DDegreesProps;\n}\n\n/** The extent in latitude, longitude bounds where a horizontal CRS is applicable\n * @public\n */\nexport class HorizontalCRSExtent implements HorizontalCRSExtentProps {\n /** The latitude minimum and maximum for the user-defined extent of the CRS */\n public readonly southWest: Carto2DDegrees;\n /** The North East point in latitude in longitude in degrees for the user-defined extent of the CRS.\n The latitude of the North East must be greater or equal to the latitude of the South West point\n It is possible, however, for the longitude of the South West corner to have greater value than the\n longitude of the North East point such as when the west longitude is located on the other side\n of the -180/180 degree longitude line.*/\n public readonly northEast: Carto2DDegrees;\n\n public constructor(data?: HorizontalCRSExtentProps) {\n if (data) {\n this.southWest = Carto2DDegrees.fromJSON(data.southWest);\n this.northEast = Carto2DDegrees.fromJSON(data.northEast);\n if (this.northEast.latitude < this.southWest.latitude)\n this.northEast.latitude = this.southWest.latitude;\n } else {\n this.southWest = new Carto2DDegrees();\n this.northEast = new Carto2DDegrees();\n }\n }\n\n /** Creates an extent object from JSON representation.\n * @public */\n public static fromJSON(data: HorizontalCRSExtentProps): HorizontalCRSExtent {\n return new HorizontalCRSExtent(data);\n }\n\n /** Creates a JSON from the Extent definition\n * @public */\n public toJSON(): HorizontalCRSExtentProps {\n return { southWest: this.southWest.toJSON(), northEast: this.northEast.toJSON() };\n }\n\n /** Compares two Extents. It applies a minuscule tolerance to comparing numbers.\n * @public */\n public equals(other: HorizontalCRSExtent): boolean {\n return this.southWest.equals(other.southWest) && this.northEast.equals(other.northEast);\n }\n}\n\n/** Horizontal Geographic Coordinate Reference System definition\n * @public\n * @extensions\n */\nexport interface HorizontalCRSProps {\n /** The identifier of the horizontal CRS as stored in the dictionary or the service database */\n id?: string;\n /** Used only for user-defined definitions that will typically use a GUID as id. A display name for the CRS that allows\n * a human to understand the nature of the definition\n */\n name?: string;\n /** Description */\n description?: string;\n /** A textual description of the source of the CRS definition. */\n source?: 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 /** The EPSG code of the CRS. If undefined then there is no EPSG code associated. */\n epsg?: number;\n /** The identifier of the geodetic datum as stored in the dictionary or the service database. */\n datumId?: string;\n /** The complete definition of the geodetic datum referred to by datumId. It can also be used if the datum is not stored\n * in either service or dictionary.\n */\n datum?: GeodeticDatumProps;\n /** The identifier of the geodetic ellipsoid as stored in the dictionary or the service database. This property is exclusive\n * of having datumId and datum properties undefined.\n */\n ellipsoidId?: string;\n /** The complete definition of the geodetic datum referred to by datumId. It can also be used if the datum is not stored\n * in either service or dictionary\n */\n ellipsoid?: GeodeticEllipsoidProps;\n /** The text indicating the unit used. */\n unit?: UnitType;\n /** Projection including projection parameters. */\n projection?: ProjectionProps;\n /** Extent representing the domain of application of the CRS. */\n extent?: HorizontalCRSExtentProps;\n}\n\n/** Horizontal Geographic Coordinate reference System implementation.\n * An horizontal CRS defines the portion which is horizontal to the Earth surface (within the deformation brought by the projection process).\n * There are two major classes of Horizontal Coordinate Reference Systems:\n * - The projected CRS which rely on a projection to flatten the coordinate system space into axises using linear\n * units (meter, US Survey Feet, ...) relative to some origin.\n * - The non projected CRS (also named geographic CRS by EPSG nomenclature) that does\n * not require a projection (projection method = None) and horizontal coordinates are expressed\n * as longitude and latitude (see [[Cartographic]])\n * Horizontal Coordinate Systems rely on a projection to flatten the surface of an ellipsoid (see [[GeodeticEllipsoid]]) which is\n * the mathematical model of the Earth surface.\n * Explanations in more details of the various concepts can be obtained from other sources including the page on the subject\n * on itwinJS.org (see https://www.itwinjs.org/learning/geolocation/?term=coordinate+system).\n * A few details are still required to grasp the model. Geographic Coordinate Reference Systems rely on the concept of geodetic datums\n * (see [[GeodeticDatum]]) to convert latitude/longitude from one frame of reference to another. Such geodetic datum will bind the ellipsoid\n * and possibly define transformation steps required to convert from the currently used geodetic datum to the common datum WGS84\n * used for worldwide data (such as most popular imagery data sources). If there are no rules established to convert to WGS84\n * or if those rules are secret then the horizontal CRS can be datum-less and must make direct use of the ellipsoid\n * to define the earth surface.\n * For this purpose either the geodetic datum must be specified using either datumId or datum properties or both. If\n * both these values are undefined then it is possible to define the ellipsoid using properties ellipsoidId or ellipsoid or both.\n * These two pairs of properties are mutually exclusive with datum related properties having precedence. If a datum or datumId is set then\n * ellipsoid properties will automatically be undefined. If datumId or datum is defined then attempts to set ellipsoidId or ellipsoid\n * will fail silently, the values remaining undefined. The ellipsoidId will not be a repeat of the ellipsoidId property part of the\n * geodetic datum definition.\n * @public\n */\nexport class HorizontalCRS implements HorizontalCRSProps {\n /** The identifier of the horizontal CRS as stored in the dictionary or the service database */\n public readonly id?: string;\n /** Used only for user-defined definitions that will typically use a GUID as id. A display name for the CRS that allows\n ** a human to understand the nature of the definition\n */\n public readonly name?: string;\n /** Description */\n public readonly description?: string;\n /** The source of the CRS definition. */\n public readonly source?: 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 /** The EPSG code of the CRS. If undefined then there is no EPSG code associated. */\n public readonly epsg?: number;\n /** The identifier of the geodetic datum as stored in the dictionary or the service database. */\n public readonly datumId?: string;\n /** The complete definition of the geodetic datum referred to by datumId. It can also be used if the datum is not stored\n * in either service or dictionary.\n */\n public readonly datum?: GeodeticDatum;\n\n /** The identifier of the geodetic ellipsoid as stored in the dictionary or the service database. This property is exclusive\n * of having datumId and datum properties undefined.\n */\n public readonly ellipsoidId?: string;\n /** The complete definition of the geodetic ellipsoid referred to by ellipsoidId. It can also be used if the ellipsoid is not stored\n * in either service or dictionary. This property is exclusive\n * of having datumId and datum properties undefined.\n */\n public readonly ellipsoid?: GeodeticEllipsoid;\n /** The text indicating the unit used. */\n public readonly unit?: UnitType;\n /** Projection including projection parameters. */\n public readonly projection?: Projection;\n /** Extent representing the domain of application of the CRS. */\n public readonly extent?: HorizontalCRSExtent;\n\n public constructor(_data?: HorizontalCRSProps) {\n this.deprecated = false;\n if (_data) {\n this.id = _data.id;\n this.description = _data.description;\n this.source = _data.source;\n this.deprecated = _data.deprecated ?? false;\n this.epsg = _data.epsg;\n this.datumId = _data.datumId;\n this.datum = _data.datum ? GeodeticDatum.fromJSON(_data.datum) : undefined;\n if (!this.datumId && !this.datum) {\n this.ellipsoidId = _data.ellipsoidId;\n this.ellipsoid = _data.ellipsoid ? GeodeticEllipsoid.fromJSON(_data.ellipsoid) : undefined;\n }\n this.unit = _data.unit;\n this.projection = _data.projection ? Projection.fromJSON(_data.projection) : undefined;\n this.extent = _data.extent ? HorizontalCRSExtent.fromJSON(_data.extent) : undefined;\n }\n }\n\n /** Creates an Horizontal CRS from JSON representation.\n * @public */\n public static fromJSON(data: HorizontalCRSProps): HorizontalCRS {\n return new HorizontalCRS(data);\n }\n\n /** Creates a JSON from the Horizontal CRS definition\n * @public */\n public toJSON(): HorizontalCRSProps {\n const data: HorizontalCRSProps = {};\n data.id = this.id;\n data.description = this.description;\n data.source = this.source;\n /* We prefer to use the default undef instead of false value for deprecated in Json */\n if (this.deprecated)\n data.deprecated = true;\n\n data.epsg = this.epsg;\n data.datumId = this.datumId;\n if (this.datum)\n data.datum = this.datum.toJSON();\n\n data.ellipsoidId = this.ellipsoidId;\n if (this.ellipsoid)\n data.ellipsoid = this.ellipsoid.toJSON();\n\n data.unit = this.unit;\n if (this.projection)\n data.projection = this.projection.toJSON();\n\n if (this.extent)\n data.extent = this.extent.toJSON();\n\n return data;\n }\n\n /** Compares two horizontal CRS. It is not an equivalence test as descriptive properties are also compared\n * but number compares are applied a minuscule tolerance.\n * @public */\n public equals(other: HorizontalCRS): boolean {\n if (this.id !== other.id ||\n this.description !== other.description ||\n this.source !== other.source ||\n this.deprecated !== other.deprecated ||\n this.epsg !== other.epsg ||\n this.datumId !== other.datumId ||\n this.ellipsoidId !== other.ellipsoidId ||\n this.unit !== other.unit)\n return false;\n\n if ((this.datum === undefined) !== (other.datum === undefined))\n return false;\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.datum && !this.datum.equals(other.datum!))\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.projection === undefined) !== (other.projection === undefined))\n return false;\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.projection && !this.projection.equals(other.projection!))\n return false;\n\n if ((this.extent === undefined) !== (other.extent === undefined))\n return false;\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.extent && !this.extent.equals(other.extent!))\n return false;\n\n return true;\n }\n}\n\n/** Vertical Geographic Coordinate reference System definition\n * @public\n * @extensions\n */\nexport interface VerticalCRSProps {\n /** Vertical CRS Key name.\n * @see [[VerticalCRS.id]]\n */\n id: \"GEOID\" | \"ELLIPSOID\" | \"NGVD29\" | \"NAVD88\" | \"LOCAL_ELLIPSOID\";\n}\n\n/** Vertical Coordinate reference System implementation.\n * The VerticalCRS contains currently a single identifier property of string type. Although\n * we currently only support five distinct key values \"GEOID\", \"ELLIPSOID\", \"NAVD88\", \"NGVD29\" and \"LOCAL_ELLIPSOID\"\n * we expect to support a broader set in the future including, eventually, user defined vertical CRS\n * which will require additional parameters to be added.\n * @public\n*/\nexport class VerticalCRS implements VerticalCRSProps {\n /** Vertical CRS Key name. The only supported values are currently \"GEOID\", \"ELLIPSOID\", \"NAVD88\", \"NGVD29\" and \"LOCAL_ELLIPSOID\".\n * GEOID indicates elevations are to be interpreted relative to the local Geoid of the dataset. It can also be considered to be Mean Sea Level.\n * NAVD88 is the local geoid model for the USA. This vertical datum can only be used if the horizontal portion is based on a\n * datum variation of NAD83, NAD27, NSRS2007 and NSRS2011.\n * NGVD29 is the former local geoid model for the USA. This vertical datum can only be used if the horizontal portion is based on a\n * datum variation of NAD83, NAD27, NSRS2007 and NSRS2011.\n * ELLIPSOID indicates that elevations are relative to the surface of the WGS84(or current coincident) ellipsoid.\n * LOCAL_ELLIPSOID indicates that elevations are relative to the surface of the local ellipsoid used by the horizontal CRS. It can only\n * be used for datums that are not considered coincident vertically with WGS84. Use of this vertical datum is strongly discouraged.\n */\n public readonly id: \"GEOID\" | \"ELLIPSOID\" | \"NGVD29\" | \"NAVD88\" | \"LOCAL_ELLIPSOID\";\n\n public constructor(data?: VerticalCRSProps) {\n this.id = \"GEOID\";\n if (data)\n this.id = data.id;\n }\n\n /** Creates a Vertical CRS from JSON representation.\n * @public */\n public static fromJSON(data: VerticalCRSProps): VerticalCRS {\n return new VerticalCRS(data);\n }\n\n /** Creates a JSON from the Vertical CRS definition\n * @public */\n public toJSON(): VerticalCRSProps {\n return { id: this.id };\n }\n\n /** Compares two vertical CRS.\n * @public */\n public equals(other: VerticalCRS): boolean {\n return (this.id === other.id);\n }\n}\n\n/** Geographic Coordinate Reference System definition that includes the horizontal and vertical definitions as well as an optional\n * additional transformation.\n * @see [[GeographicCRS]].\n * @public\n * @extensions\n */\nexport interface GeographicCRSProps {\n /** The horizontal portion of the geographic coordinate reference system. */\n horizontalCRS?: HorizontalCRSProps;\n /** The vertical portion of the geographic coordinate reference system. */\n verticalCRS?: VerticalCRSProps;\n /** The optional additional transform the geographic coordinate reference system. */\n additionalTransform?: AdditionalTransformProps;\n}\n\n/** Geographic Coordinate Reference System implementation. This is the class that indicates the definition of a Geographic\n * coordinate reference system comprised of three components: Horizontal and Vertical and an optional additional transform.\n * The vertical component (see [[VerticalCRS]]) is the simplest portion containing a simple identifier as a string.\n * The optional additional transform of which, currently, only the type Helmert 2D with Z offset [[Helmert2DWithZOffset]] is supported\n * defines a transformation of x,y, and z cartesian coordinate of the projection to the final\n * Geographic Coordinate Reference System cartesian coordinates.\n * The horizontal component contains a list of identification and documentation properties as well as\n * defining details possibly including the projection with method and parameters, the definition of the datum, ellipsoid, extent and so on.\n * The principle of describing a Geographic CRS is that the definition may be incomplete. The whole set of classes related to geographic\n * coordinate reference system classes ([[GeodeticEllipsoid]], [[GeodeticDatum]], [[Projection]], [[GeodeticTransform]], ...) are designed\n * so that they can be parsed from incomplete JSON fragments, or produce incomplete JSON fragments such as would be\n * generated from a request to a REST API to a server when select OData clauses are used.\n * Often GeographicCRS would knowingly be created incomplete but with sufficient information to perform conversion from some\n * reprojection engine (the present set of classes do not provide any GeographicCRS conversion).\n * For example the following definitions are quite sufficient to request conversion to or from by a reprojection engine:\n * { horizontalCRS: {id: \"LL84\"}, verticalCRS: {id:\"GEOID\"}\n * or\n * { horizontalCRS: {datumId: \"WGS84\", projection: {method: \"None\"}}, verticalCRS: \"ELLIPSOID\"}\n * The reprojection engine will use the engine internal dictionary to obtain the details if it can.\n * Some definitions will originate from other sources (a parsed WKT for example) and the reprojection engine will require\n * all mathematical and operational details to perform any conversion (descriptive information are ignored in the conversion process).\n * @note see important detailed explanation in the [[HorizontalCRS]], [[VerticalCRS]] and [[AdditionalTransform]] documentation.\n * @note Earth Centered, Earth Fixed coordinate system (ECEF) is a full 3D cartesian system that unambiguously\n * expressed coordinates relative to the Earth Center. Since there is no horizontal portion independent from\n * the vertical portion this system cannot be represented by a GeographicCRS and remains a separate concept.\n * @public\n*/\nexport class GeographicCRS implements GeographicCRSProps {\n /** The horizontal portion of the geographic coordinate reference system. */\n public readonly horizontalCRS?: HorizontalCRS;\n /** The vertical portion of the geographic coordinate reference system. */\n public readonly verticalCRS?: VerticalCRS;\n /** The optional additional transform the geographic coordinate reference system. */\n public readonly additionalTransform?: AdditionalTransform;\n\n public constructor(data?: GeographicCRSProps) {\n if (data) {\n this.horizontalCRS = data.horizontalCRS ? HorizontalCRS.fromJSON(data.horizontalCRS) : undefined;\n this.verticalCRS = data.verticalCRS ? VerticalCRS.fromJSON(data.verticalCRS) : undefined;\n this.additionalTransform = data.additionalTransform ? AdditionalTransform.fromJSON(data.additionalTransform) : undefined;\n }\n }\n\n /** Creates a Geographic CRS from JSON representation.\n * @public */\n public static fromJSON(data: GeographicCRSProps): GeographicCRS {\n return new GeographicCRS(data);\n }\n\n /** Creates a JSON from the Geographic CRS definition\n * @public */\n public toJSON(): GeographicCRSProps {\n const data: GeographicCRSProps = {};\n if (this.horizontalCRS)\n data.horizontalCRS = this.horizontalCRS.toJSON();\n\n if (this.verticalCRS)\n data.verticalCRS = this.verticalCRS.toJSON();\n\n if (this.additionalTransform)\n data.additionalTransform = this.additionalTransform.toJSON();\n\n return data;\n }\n\n /** Compares two Geographic CRS. It is a strict compare operation not an equivalence test though\n * number compares are applied a minuscule tolerance.\n * It takes into account descriptive properties not only mathematical definition properties.\n * @public\n */\n public equals(other: GeographicCRS): boolean {\n if ((this.horizontalCRS === undefined) !== (other.horizontalCRS === undefined))\n return false;\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.horizontalCRS && !this.horizontalCRS.equals(other.horizontalCRS!))\n return false;\n\n if ((this.verticalCRS === undefined) !== (other.verticalCRS === undefined))\n return false;\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.verticalCRS && !this.verticalCRS.equals(other.verticalCRS!))\n return false;\n\n if ((this.additionalTransform === undefined) !== (other.additionalTransform === undefined))\n return false;\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n if (this.additionalTransform && !this.additionalTransform.equals(other.additionalTransform!))\n return false;\n\n return true;\n }\n}\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ElementGeometry.d.ts","sourceRoot":"","sources":["../../../src/geometry/ElementGeometry.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAQ,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,KAAK,EAA+E,aAAa,EAA6E,OAAO,EAAE,OAAO,EAAiE,OAAO,EAAkB,SAAS,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAGvW,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,EAA8C,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAI/F,OAAO,EAAE,U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AiB,CAAC,KAAK,EAAE,wBAAwB,GAAG,mBAAmB,GAAG,SAAS,CAgBlG;IAED,qHAAqH;IACrH,SAAgB,mBAAmB,CAAC,IAAI,EAAE,mBAAmB,GAAG,wBAAwB,GAAG,SAAS,CAqBnG;IAED,mEAAmE;IACnE,SAAgB,WAAW,CAAC,aAAa,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,CAQ9E;IAED,6FAA6F;IAC7F,SAAgB,qBAAqB,CAAC,IAAI,EAAE,YAAY,GAAG,mBAAmB,GAAG,SAAS,CAIzF;CACF"}
@@ -294,7 +294,7 @@ var ElementGeometry;
294
294
  this.localToWorld = localToWorld;
295
295
  this._applyLocalToWorld = applyLocalToWorld ? !localToWorld.isIdentity : false;
296
296
  }
297
- get value() { return this._value; }
297
+ get value() { return (0, core_bentley_1.expectDefined)(this._value); }
298
298
  set value(value) { this._value = value; }
299
299
  get outputTransform() {
300
300
  return this._applyLocalToWorld ? this.localToWorld : undefined;
@@ -697,8 +697,10 @@ var ElementGeometry;
697
697
  const buffer = new flatbuffers_1.flatbuffers.ByteBuffer(entry.data);
698
698
  const ppfb = ElementGeometryFB_1.EGFBAccessors.PointPrimitive.getRootAsPointPrimitive(buffer);
699
699
  const pts = [];
700
- for (let i = 0; i < ppfb.coordsLength(); i++)
701
- pts.push(core_geometry_1.Point3d.create(ppfb.coords(i).x(), ppfb.coords(i).y(), ppfb.coords(i).z()));
700
+ for (let i = 0; i < ppfb.coordsLength(); i++) {
701
+ const coord = (0, core_bentley_1.expectNotNull)(ppfb.coords(i));
702
+ pts.push(core_geometry_1.Point3d.create(coord.x(), coord.y(), coord.z()));
703
+ }
702
704
  if (0 === pts.length)
703
705
  return undefined;
704
706
  if (undefined !== localToWorld)
@@ -716,8 +718,10 @@ var ElementGeometry;
716
718
  const buffer = new flatbuffers_1.flatbuffers.ByteBuffer(entry.data);
717
719
  const ppfb = ElementGeometryFB_1.EGFBAccessors.PointPrimitive2d.getRootAsPointPrimitive2d(buffer);
718
720
  const pts = [];
719
- for (let i = 0; i < ppfb.coordsLength(); i++)
720
- pts.push(core_geometry_1.Point3d.create(ppfb.coords(i).x(), ppfb.coords(i).y()));
721
+ for (let i = 0; i < ppfb.coordsLength(); i++) {
722
+ const coord = (0, core_bentley_1.expectNotNull)(ppfb.coords(i));
723
+ pts.push(core_geometry_1.Point3d.create(coord.x(), coord.y()));
724
+ }
721
725
  if (0 === pts.length)
722
726
  return undefined;
723
727
  if (undefined !== localToWorld)
@@ -734,9 +738,12 @@ var ElementGeometry;
734
738
  case ElementGeometryOpcode.ArcPrimitive: {
735
739
  const buffer = new flatbuffers_1.flatbuffers.ByteBuffer(entry.data);
736
740
  const ppfb = ElementGeometryFB_1.EGFBAccessors.ArcPrimitive.getRootAsArcPrimitive(buffer);
737
- const center = core_geometry_1.Point3d.create(ppfb.center().x(), ppfb.center().y(), ppfb.center().z());
738
- const vector0 = core_geometry_1.Vector3d.create(ppfb.vector0().x(), ppfb.vector0().y(), ppfb.vector0().z());
739
- const vector90 = core_geometry_1.Vector3d.create(ppfb.vector90().x(), ppfb.vector90().y(), ppfb.vector90().z());
741
+ const ppfbCenter = (0, core_bentley_1.expectNotNull)(ppfb.center());
742
+ const center = core_geometry_1.Point3d.create(ppfbCenter.x(), ppfbCenter.y(), ppfbCenter.z());
743
+ const ppfbVector0 = (0, core_bentley_1.expectNotNull)(ppfb.vector0());
744
+ const vector0 = core_geometry_1.Vector3d.create(ppfbVector0.x(), ppfbVector0.y(), ppfbVector0.z());
745
+ const ppfbVector90 = (0, core_bentley_1.expectNotNull)(ppfb.vector90());
746
+ const vector90 = core_geometry_1.Vector3d.create(ppfbVector90.x(), ppfbVector90.y(), ppfbVector90.z());
740
747
  const arc = core_geometry_1.Arc3d.create(center, vector0, vector90, core_geometry_1.AngleSweep.createStartSweepRadians(ppfb.start(), ppfb.sweep()));
741
748
  if (undefined !== localToWorld && !arc.tryTransformInPlace(localToWorld))
742
749
  return undefined;
@@ -1758,8 +1765,10 @@ var ElementGeometry;
1758
1765
  const ppfb = ElementGeometryFB_1.EGFBAccessors.PointPrimitive.getRootAsPointPrimitive(buffer);
1759
1766
  if (2 !== ppfb.coordsLength())
1760
1767
  return undefined;
1761
- const low = core_geometry_1.Point3d.create(ppfb.coords(0).x(), ppfb.coords(0).y(), ppfb.coords(0).z());
1762
- const high = core_geometry_1.Point3d.create(ppfb.coords(1).x(), ppfb.coords(1).y(), ppfb.coords(1).z());
1768
+ const coord0 = (0, core_bentley_1.expectNotNull)(ppfb.coords(0));
1769
+ const low = core_geometry_1.Point3d.create(coord0.x(), coord0.y(), coord0.z());
1770
+ const coord1 = (0, core_bentley_1.expectNotNull)(ppfb.coords(1));
1771
+ const high = core_geometry_1.Point3d.create(coord1.x(), coord1.y(), coord1.z());
1763
1772
  return core_geometry_1.Range3d.create(low, high);
1764
1773
  }
1765
1774
  ElementGeometry.toSubGraphicRange = toSubGraphicRange;