@itwin/core-orbitgt 3.0.0-dev.100

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 (818) hide show
  1. package/CHANGELOG.md +515 -0
  2. package/lib/cjs/core-orbitgt.d.ts +27 -0
  3. package/lib/cjs/core-orbitgt.d.ts.map +1 -0
  4. package/lib/cjs/core-orbitgt.js +59 -0
  5. package/lib/cjs/core-orbitgt.js.map +1 -0
  6. package/lib/cjs/pointcloud/format/opc/AttributeMask.d.ts +31 -0
  7. package/lib/cjs/pointcloud/format/opc/AttributeMask.d.ts.map +1 -0
  8. package/lib/cjs/pointcloud/format/opc/AttributeMask.js +48 -0
  9. package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -0
  10. package/lib/cjs/pointcloud/format/opc/AttributeReader.d.ts +64 -0
  11. package/lib/cjs/pointcloud/format/opc/AttributeReader.d.ts.map +1 -0
  12. package/lib/cjs/pointcloud/format/opc/AttributeReader.js +25 -0
  13. package/lib/cjs/pointcloud/format/opc/AttributeReader.js.map +1 -0
  14. package/lib/cjs/pointcloud/format/opc/BlockRecord.d.ts +55 -0
  15. package/lib/cjs/pointcloud/format/opc/BlockRecord.d.ts.map +1 -0
  16. package/lib/cjs/pointcloud/format/opc/BlockRecord.js +85 -0
  17. package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -0
  18. package/lib/cjs/pointcloud/format/opc/ContainerFile.d.ts +86 -0
  19. package/lib/cjs/pointcloud/format/opc/ContainerFile.d.ts.map +1 -0
  20. package/lib/cjs/pointcloud/format/opc/ContainerFile.js +200 -0
  21. package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -0
  22. package/lib/cjs/pointcloud/format/opc/ContainerFilePart.d.ts +56 -0
  23. package/lib/cjs/pointcloud/format/opc/ContainerFilePart.d.ts.map +1 -0
  24. package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js +76 -0
  25. package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -0
  26. package/lib/cjs/pointcloud/format/opc/DirectoryReader.d.ts +76 -0
  27. package/lib/cjs/pointcloud/format/opc/DirectoryReader.d.ts.map +1 -0
  28. package/lib/cjs/pointcloud/format/opc/DirectoryReader.js +170 -0
  29. package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -0
  30. package/lib/cjs/pointcloud/format/opc/DirectoryRecord.d.ts +60 -0
  31. package/lib/cjs/pointcloud/format/opc/DirectoryRecord.d.ts.map +1 -0
  32. package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js +90 -0
  33. package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -0
  34. package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +107 -0
  35. package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.d.ts.map +1 -0
  36. package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js +198 -0
  37. package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -0
  38. package/lib/cjs/pointcloud/format/opc/FileAccess.d.ts +40 -0
  39. package/lib/cjs/pointcloud/format/opc/FileAccess.d.ts.map +1 -0
  40. package/lib/cjs/pointcloud/format/opc/FileAccess.js +49 -0
  41. package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -0
  42. package/lib/cjs/pointcloud/format/opc/FileReader.d.ts +119 -0
  43. package/lib/cjs/pointcloud/format/opc/FileReader.d.ts.map +1 -0
  44. package/lib/cjs/pointcloud/format/opc/FileReader.js +249 -0
  45. package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -0
  46. package/lib/cjs/pointcloud/format/opc/FileRecord.d.ts +90 -0
  47. package/lib/cjs/pointcloud/format/opc/FileRecord.d.ts.map +1 -0
  48. package/lib/cjs/pointcloud/format/opc/FileRecord.js +126 -0
  49. package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -0
  50. package/lib/cjs/pointcloud/format/opc/GeometryReader.d.ts +80 -0
  51. package/lib/cjs/pointcloud/format/opc/GeometryReader.d.ts.map +1 -0
  52. package/lib/cjs/pointcloud/format/opc/GeometryReader.js +164 -0
  53. package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -0
  54. package/lib/cjs/pointcloud/format/opc/GeometryRecord.d.ts +54 -0
  55. package/lib/cjs/pointcloud/format/opc/GeometryRecord.d.ts.map +1 -0
  56. package/lib/cjs/pointcloud/format/opc/GeometryRecord.js +108 -0
  57. package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -0
  58. package/lib/cjs/pointcloud/format/opc/OPCReader.d.ts +158 -0
  59. package/lib/cjs/pointcloud/format/opc/OPCReader.d.ts.map +1 -0
  60. package/lib/cjs/pointcloud/format/opc/OPCReader.js +320 -0
  61. package/lib/cjs/pointcloud/format/opc/OPCReader.js.map +1 -0
  62. package/lib/cjs/pointcloud/format/opc/PointReader.d.ts +73 -0
  63. package/lib/cjs/pointcloud/format/opc/PointReader.d.ts.map +1 -0
  64. package/lib/cjs/pointcloud/format/opc/PointReader.js +153 -0
  65. package/lib/cjs/pointcloud/format/opc/PointReader.js.map +1 -0
  66. package/lib/cjs/pointcloud/format/opc/TileReadBuffer.d.ts +64 -0
  67. package/lib/cjs/pointcloud/format/opc/TileReadBuffer.d.ts.map +1 -0
  68. package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js +93 -0
  69. package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js.map +1 -0
  70. package/lib/cjs/pointcloud/format/opc/TileRecord.d.ts +89 -0
  71. package/lib/cjs/pointcloud/format/opc/TileRecord.d.ts.map +1 -0
  72. package/lib/cjs/pointcloud/format/opc/TileRecord.js +162 -0
  73. package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -0
  74. package/lib/cjs/pointcloud/model/AttributeTypes.d.ts +38 -0
  75. package/lib/cjs/pointcloud/model/AttributeTypes.d.ts.map +1 -0
  76. package/lib/cjs/pointcloud/model/AttributeTypes.js +65 -0
  77. package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -0
  78. package/lib/cjs/pointcloud/model/AttributeValue.d.ts +248 -0
  79. package/lib/cjs/pointcloud/model/AttributeValue.d.ts.map +1 -0
  80. package/lib/cjs/pointcloud/model/AttributeValue.js +509 -0
  81. package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -0
  82. package/lib/cjs/pointcloud/model/BlockIndex.d.ts +50 -0
  83. package/lib/cjs/pointcloud/model/BlockIndex.d.ts.map +1 -0
  84. package/lib/cjs/pointcloud/model/BlockIndex.js +49 -0
  85. package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -0
  86. package/lib/cjs/pointcloud/model/CloudPoint.d.ts +211 -0
  87. package/lib/cjs/pointcloud/model/CloudPoint.d.ts.map +1 -0
  88. package/lib/cjs/pointcloud/model/CloudPoint.js +319 -0
  89. package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -0
  90. package/lib/cjs/pointcloud/model/Grid.d.ts +92 -0
  91. package/lib/cjs/pointcloud/model/Grid.d.ts.map +1 -0
  92. package/lib/cjs/pointcloud/model/Grid.js +130 -0
  93. package/lib/cjs/pointcloud/model/Grid.js.map +1 -0
  94. package/lib/cjs/pointcloud/model/GridIndex.d.ts +67 -0
  95. package/lib/cjs/pointcloud/model/GridIndex.d.ts.map +1 -0
  96. package/lib/cjs/pointcloud/model/GridIndex.js +94 -0
  97. package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -0
  98. package/lib/cjs/pointcloud/model/PointAttribute.d.ts +209 -0
  99. package/lib/cjs/pointcloud/model/PointAttribute.d.ts.map +1 -0
  100. package/lib/cjs/pointcloud/model/PointAttribute.js +375 -0
  101. package/lib/cjs/pointcloud/model/PointAttribute.js.map +1 -0
  102. package/lib/cjs/pointcloud/model/PointCloudReader.d.ts +157 -0
  103. package/lib/cjs/pointcloud/model/PointCloudReader.d.ts.map +1 -0
  104. package/lib/cjs/pointcloud/model/PointCloudReader.js +190 -0
  105. package/lib/cjs/pointcloud/model/PointCloudReader.js.map +1 -0
  106. package/lib/cjs/pointcloud/model/PointData.d.ts +18 -0
  107. package/lib/cjs/pointcloud/model/PointData.d.ts.map +1 -0
  108. package/lib/cjs/pointcloud/model/PointData.js +25 -0
  109. package/lib/cjs/pointcloud/model/PointData.js.map +1 -0
  110. package/lib/cjs/pointcloud/model/PointDataRaw.d.ts +35 -0
  111. package/lib/cjs/pointcloud/model/PointDataRaw.d.ts.map +1 -0
  112. package/lib/cjs/pointcloud/model/PointDataRaw.js +70 -0
  113. package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -0
  114. package/lib/cjs/pointcloud/model/ReadRequest.d.ts +176 -0
  115. package/lib/cjs/pointcloud/model/ReadRequest.d.ts.map +1 -0
  116. package/lib/cjs/pointcloud/model/ReadRequest.js +240 -0
  117. package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -0
  118. package/lib/cjs/pointcloud/model/StandardAttributes.d.ts +41 -0
  119. package/lib/cjs/pointcloud/model/StandardAttributes.d.ts.map +1 -0
  120. package/lib/cjs/pointcloud/model/StandardAttributes.js +48 -0
  121. package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -0
  122. package/lib/cjs/pointcloud/model/TileIndex.d.ts +48 -0
  123. package/lib/cjs/pointcloud/model/TileIndex.d.ts.map +1 -0
  124. package/lib/cjs/pointcloud/model/TileIndex.js +48 -0
  125. package/lib/cjs/pointcloud/model/TileIndex.js.map +1 -0
  126. package/lib/cjs/pointcloud/render/AViewRequest.d.ts +39 -0
  127. package/lib/cjs/pointcloud/render/AViewRequest.d.ts.map +1 -0
  128. package/lib/cjs/pointcloud/render/AViewRequest.js +25 -0
  129. package/lib/cjs/pointcloud/render/AViewRequest.js.map +1 -0
  130. package/lib/cjs/pointcloud/render/Block.d.ts +68 -0
  131. package/lib/cjs/pointcloud/render/Block.d.ts.map +1 -0
  132. package/lib/cjs/pointcloud/render/Block.js +120 -0
  133. package/lib/cjs/pointcloud/render/Block.js.map +1 -0
  134. package/lib/cjs/pointcloud/render/DataManager.d.ts +137 -0
  135. package/lib/cjs/pointcloud/render/DataManager.d.ts.map +1 -0
  136. package/lib/cjs/pointcloud/render/DataManager.js +343 -0
  137. package/lib/cjs/pointcloud/render/DataManager.js.map +1 -0
  138. package/lib/cjs/pointcloud/render/FrameData.d.ts +31 -0
  139. package/lib/cjs/pointcloud/render/FrameData.d.ts.map +1 -0
  140. package/lib/cjs/pointcloud/render/FrameData.js +40 -0
  141. package/lib/cjs/pointcloud/render/FrameData.js.map +1 -0
  142. package/lib/cjs/pointcloud/render/Level.d.ts +91 -0
  143. package/lib/cjs/pointcloud/render/Level.d.ts.map +1 -0
  144. package/lib/cjs/pointcloud/render/Level.js +120 -0
  145. package/lib/cjs/pointcloud/render/Level.js.map +1 -0
  146. package/lib/cjs/pointcloud/render/TileLoadSorter.d.ts +61 -0
  147. package/lib/cjs/pointcloud/render/TileLoadSorter.d.ts.map +1 -0
  148. package/lib/cjs/pointcloud/render/TileLoadSorter.js +100 -0
  149. package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -0
  150. package/lib/cjs/pointcloud/render/ViewTree.d.ts +114 -0
  151. package/lib/cjs/pointcloud/render/ViewTree.d.ts.map +1 -0
  152. package/lib/cjs/pointcloud/render/ViewTree.js +364 -0
  153. package/lib/cjs/pointcloud/render/ViewTree.js.map +1 -0
  154. package/lib/cjs/spatial/crs/CRSEngine.d.ts +56 -0
  155. package/lib/cjs/spatial/crs/CRSEngine.d.ts.map +1 -0
  156. package/lib/cjs/spatial/crs/CRSEngine.js +94 -0
  157. package/lib/cjs/spatial/crs/CRSEngine.js.map +1 -0
  158. package/lib/cjs/spatial/crs/CRSManager.d.ts +50 -0
  159. package/lib/cjs/spatial/crs/CRSManager.d.ts.map +1 -0
  160. package/lib/cjs/spatial/crs/CRSManager.js +110 -0
  161. package/lib/cjs/spatial/crs/CRSManager.js.map +1 -0
  162. package/lib/cjs/spatial/ecrs/Axis.d.ts +78 -0
  163. package/lib/cjs/spatial/ecrs/Axis.d.ts.map +1 -0
  164. package/lib/cjs/spatial/ecrs/Axis.js +94 -0
  165. package/lib/cjs/spatial/ecrs/Axis.js.map +1 -0
  166. package/lib/cjs/spatial/ecrs/CRS.d.ts +448 -0
  167. package/lib/cjs/spatial/ecrs/CRS.d.ts.map +1 -0
  168. package/lib/cjs/spatial/ecrs/CRS.js +931 -0
  169. package/lib/cjs/spatial/ecrs/CRS.js.map +1 -0
  170. package/lib/cjs/spatial/ecrs/CoordinateSystem.d.ts +143 -0
  171. package/lib/cjs/spatial/ecrs/CoordinateSystem.d.ts.map +1 -0
  172. package/lib/cjs/spatial/ecrs/CoordinateSystem.js +327 -0
  173. package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -0
  174. package/lib/cjs/spatial/ecrs/DataFileUnit.d.ts +11 -0
  175. package/lib/cjs/spatial/ecrs/DataFileUnit.d.ts.map +1 -0
  176. package/lib/cjs/spatial/ecrs/DataFileUnit.js +105 -0
  177. package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -0
  178. package/lib/cjs/spatial/ecrs/Datum.d.ts +112 -0
  179. package/lib/cjs/spatial/ecrs/Datum.d.ts.map +1 -0
  180. package/lib/cjs/spatial/ecrs/Datum.js +167 -0
  181. package/lib/cjs/spatial/ecrs/Datum.js.map +1 -0
  182. package/lib/cjs/spatial/ecrs/Ellipsoid.d.ts +189 -0
  183. package/lib/cjs/spatial/ecrs/Ellipsoid.d.ts.map +1 -0
  184. package/lib/cjs/spatial/ecrs/Ellipsoid.js +337 -0
  185. package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -0
  186. package/lib/cjs/spatial/ecrs/OnlineEngine.d.ts +49 -0
  187. package/lib/cjs/spatial/ecrs/OnlineEngine.d.ts.map +1 -0
  188. package/lib/cjs/spatial/ecrs/OnlineEngine.js +103 -0
  189. package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -0
  190. package/lib/cjs/spatial/ecrs/OnlineRegistry.d.ts +38 -0
  191. package/lib/cjs/spatial/ecrs/OnlineRegistry.d.ts.map +1 -0
  192. package/lib/cjs/spatial/ecrs/OnlineRegistry.js +77 -0
  193. package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -0
  194. package/lib/cjs/spatial/ecrs/Operation.d.ts +192 -0
  195. package/lib/cjs/spatial/ecrs/Operation.d.ts.map +1 -0
  196. package/lib/cjs/spatial/ecrs/Operation.js +346 -0
  197. package/lib/cjs/spatial/ecrs/Operation.js.map +1 -0
  198. package/lib/cjs/spatial/ecrs/OperationMethod.d.ts +72 -0
  199. package/lib/cjs/spatial/ecrs/OperationMethod.d.ts.map +1 -0
  200. package/lib/cjs/spatial/ecrs/OperationMethod.js +76 -0
  201. package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -0
  202. package/lib/cjs/spatial/ecrs/ParameterValue.d.ts +50 -0
  203. package/lib/cjs/spatial/ecrs/ParameterValue.d.ts.map +1 -0
  204. package/lib/cjs/spatial/ecrs/ParameterValue.js +66 -0
  205. package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -0
  206. package/lib/cjs/spatial/ecrs/ParameterValueList.d.ts +73 -0
  207. package/lib/cjs/spatial/ecrs/ParameterValueList.d.ts.map +1 -0
  208. package/lib/cjs/spatial/ecrs/ParameterValueList.js +121 -0
  209. package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -0
  210. package/lib/cjs/spatial/ecrs/PrimeMeridian.d.ts +79 -0
  211. package/lib/cjs/spatial/ecrs/PrimeMeridian.d.ts.map +1 -0
  212. package/lib/cjs/spatial/ecrs/PrimeMeridian.js +109 -0
  213. package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -0
  214. package/lib/cjs/spatial/ecrs/Registry.d.ts +110 -0
  215. package/lib/cjs/spatial/ecrs/Registry.d.ts.map +1 -0
  216. package/lib/cjs/spatial/ecrs/Registry.js +208 -0
  217. package/lib/cjs/spatial/ecrs/Registry.js.map +1 -0
  218. package/lib/cjs/spatial/ecrs/Transform.d.ts +78 -0
  219. package/lib/cjs/spatial/ecrs/Transform.d.ts.map +1 -0
  220. package/lib/cjs/spatial/ecrs/Transform.js +397 -0
  221. package/lib/cjs/spatial/ecrs/Transform.js.map +1 -0
  222. package/lib/cjs/spatial/ecrs/Unit.d.ts +171 -0
  223. package/lib/cjs/spatial/ecrs/Unit.d.ts.map +1 -0
  224. package/lib/cjs/spatial/ecrs/Unit.js +337 -0
  225. package/lib/cjs/spatial/ecrs/Unit.js.map +1 -0
  226. package/lib/cjs/spatial/ecrs/VerticalModel.d.ts +70 -0
  227. package/lib/cjs/spatial/ecrs/VerticalModel.d.ts.map +1 -0
  228. package/lib/cjs/spatial/ecrs/VerticalModel.js +89 -0
  229. package/lib/cjs/spatial/ecrs/VerticalModel.js.map +1 -0
  230. package/lib/cjs/spatial/ecrs/WellKnownText.d.ts +154 -0
  231. package/lib/cjs/spatial/ecrs/WellKnownText.d.ts.map +1 -0
  232. package/lib/cjs/spatial/ecrs/WellKnownText.js +495 -0
  233. package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -0
  234. package/lib/cjs/spatial/ecrs/WellKnownTextNode.d.ts +70 -0
  235. package/lib/cjs/spatial/ecrs/WellKnownTextNode.d.ts.map +1 -0
  236. package/lib/cjs/spatial/ecrs/WellKnownTextNode.js +129 -0
  237. package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -0
  238. package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.d.ts +102 -0
  239. package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.d.ts.map +1 -0
  240. package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js +163 -0
  241. package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -0
  242. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts +80 -0
  243. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts.map +1 -0
  244. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js +126 -0
  245. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -0
  246. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts +48 -0
  247. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts.map +1 -0
  248. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +74 -0
  249. package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -0
  250. package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.d.ts +73 -0
  251. package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.d.ts.map +1 -0
  252. package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js +130 -0
  253. package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -0
  254. package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.d.ts +121 -0
  255. package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.d.ts.map +1 -0
  256. package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js +180 -0
  257. package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -0
  258. package/lib/cjs/spatial/ecrs/projection/Mercator1SP.d.ts +74 -0
  259. package/lib/cjs/spatial/ecrs/projection/Mercator1SP.d.ts.map +1 -0
  260. package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js +113 -0
  261. package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -0
  262. package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.d.ts +97 -0
  263. package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.d.ts.map +1 -0
  264. package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js +174 -0
  265. package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -0
  266. package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.d.ts +124 -0
  267. package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.d.ts.map +1 -0
  268. package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js +209 -0
  269. package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -0
  270. package/lib/cjs/spatial/ecrs/projection/TransverseMercator.d.ts +109 -0
  271. package/lib/cjs/spatial/ecrs/projection/TransverseMercator.d.ts.map +1 -0
  272. package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js +184 -0
  273. package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -0
  274. package/lib/cjs/spatial/ecrs/transformation/PositionVector.d.ts +91 -0
  275. package/lib/cjs/spatial/ecrs/transformation/PositionVector.d.ts.map +1 -0
  276. package/lib/cjs/spatial/ecrs/transformation/PositionVector.js +131 -0
  277. package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -0
  278. package/lib/cjs/spatial/geom/Bounds.d.ts +34 -0
  279. package/lib/cjs/spatial/geom/Bounds.d.ts.map +1 -0
  280. package/lib/cjs/spatial/geom/Bounds.js +157 -0
  281. package/lib/cjs/spatial/geom/Bounds.js.map +1 -0
  282. package/lib/cjs/spatial/geom/Coordinate.d.ts +62 -0
  283. package/lib/cjs/spatial/geom/Coordinate.d.ts.map +1 -0
  284. package/lib/cjs/spatial/geom/Coordinate.js +187 -0
  285. package/lib/cjs/spatial/geom/Coordinate.js.map +1 -0
  286. package/lib/cjs/spatial/geom/Line.d.ts +226 -0
  287. package/lib/cjs/spatial/geom/Line.d.ts.map +1 -0
  288. package/lib/cjs/spatial/geom/Line.js +433 -0
  289. package/lib/cjs/spatial/geom/Line.js.map +1 -0
  290. package/lib/cjs/spatial/geom/Transform.d.ts +341 -0
  291. package/lib/cjs/spatial/geom/Transform.d.ts.map +1 -0
  292. package/lib/cjs/spatial/geom/Transform.js +749 -0
  293. package/lib/cjs/spatial/geom/Transform.js.map +1 -0
  294. package/lib/cjs/system/buffer/ABuffer.d.ts +52 -0
  295. package/lib/cjs/system/buffer/ABuffer.d.ts.map +1 -0
  296. package/lib/cjs/system/buffer/ABuffer.js +91 -0
  297. package/lib/cjs/system/buffer/ABuffer.js.map +1 -0
  298. package/lib/cjs/system/buffer/Float32Buffer.d.ts +47 -0
  299. package/lib/cjs/system/buffer/Float32Buffer.d.ts.map +1 -0
  300. package/lib/cjs/system/buffer/Float32Buffer.js +61 -0
  301. package/lib/cjs/system/buffer/Float32Buffer.js.map +1 -0
  302. package/lib/cjs/system/buffer/LittleEndian.d.ts +150 -0
  303. package/lib/cjs/system/buffer/LittleEndian.d.ts.map +1 -0
  304. package/lib/cjs/system/buffer/LittleEndian.js +304 -0
  305. package/lib/cjs/system/buffer/LittleEndian.js.map +1 -0
  306. package/lib/cjs/system/buffer/Uint16Buffer.d.ts +50 -0
  307. package/lib/cjs/system/buffer/Uint16Buffer.d.ts.map +1 -0
  308. package/lib/cjs/system/buffer/Uint16Buffer.js +66 -0
  309. package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -0
  310. package/lib/cjs/system/buffer/Uint8Buffer.d.ts +50 -0
  311. package/lib/cjs/system/buffer/Uint8Buffer.d.ts.map +1 -0
  312. package/lib/cjs/system/buffer/Uint8Buffer.js +66 -0
  313. package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -0
  314. package/lib/cjs/system/collection/AList.d.ts +31 -0
  315. package/lib/cjs/system/collection/AList.d.ts.map +1 -0
  316. package/lib/cjs/system/collection/AList.js +71 -0
  317. package/lib/cjs/system/collection/AList.js.map +1 -0
  318. package/lib/cjs/system/collection/IntMap.d.ts +19 -0
  319. package/lib/cjs/system/collection/IntMap.d.ts.map +1 -0
  320. package/lib/cjs/system/collection/IntMap.js +36 -0
  321. package/lib/cjs/system/collection/IntMap.js.map +1 -0
  322. package/lib/cjs/system/collection/StringMap.d.ts +27 -0
  323. package/lib/cjs/system/collection/StringMap.d.ts.map +1 -0
  324. package/lib/cjs/system/collection/StringMap.js +64 -0
  325. package/lib/cjs/system/collection/StringMap.js.map +1 -0
  326. package/lib/cjs/system/io/ABufferInStream.d.ts +30 -0
  327. package/lib/cjs/system/io/ABufferInStream.d.ts.map +1 -0
  328. package/lib/cjs/system/io/ABufferInStream.js +47 -0
  329. package/lib/cjs/system/io/ABufferInStream.js.map +1 -0
  330. package/lib/cjs/system/io/InStream.d.ts +24 -0
  331. package/lib/cjs/system/io/InStream.d.ts.map +1 -0
  332. package/lib/cjs/system/io/InStream.js +35 -0
  333. package/lib/cjs/system/io/InStream.js.map +1 -0
  334. package/lib/cjs/system/io/OutStream.d.ts +24 -0
  335. package/lib/cjs/system/io/OutStream.d.ts.map +1 -0
  336. package/lib/cjs/system/io/OutStream.js +34 -0
  337. package/lib/cjs/system/io/OutStream.js.map +1 -0
  338. package/lib/cjs/system/runtime/ALong.d.ts +330 -0
  339. package/lib/cjs/system/runtime/ALong.d.ts.map +1 -0
  340. package/lib/cjs/system/runtime/ALong.js +688 -0
  341. package/lib/cjs/system/runtime/ALong.js.map +1 -0
  342. package/lib/cjs/system/runtime/ASystem.d.ts +15 -0
  343. package/lib/cjs/system/runtime/ASystem.d.ts.map +1 -0
  344. package/lib/cjs/system/runtime/ASystem.js +32 -0
  345. package/lib/cjs/system/runtime/ASystem.js.map +1 -0
  346. package/lib/cjs/system/runtime/Downloader.d.ts +18 -0
  347. package/lib/cjs/system/runtime/Downloader.d.ts.map +1 -0
  348. package/lib/cjs/system/runtime/Downloader.js +39 -0
  349. package/lib/cjs/system/runtime/Downloader.js.map +1 -0
  350. package/lib/cjs/system/runtime/DownloaderNode.d.ts +19 -0
  351. package/lib/cjs/system/runtime/DownloaderNode.d.ts.map +1 -0
  352. package/lib/cjs/system/runtime/DownloaderNode.js +130 -0
  353. package/lib/cjs/system/runtime/DownloaderNode.js.map +1 -0
  354. package/lib/cjs/system/runtime/DownloaderXhr.d.ts +19 -0
  355. package/lib/cjs/system/runtime/DownloaderXhr.d.ts.map +1 -0
  356. package/lib/cjs/system/runtime/DownloaderXhr.js +132 -0
  357. package/lib/cjs/system/runtime/DownloaderXhr.js.map +1 -0
  358. package/lib/cjs/system/runtime/Message.d.ts +17 -0
  359. package/lib/cjs/system/runtime/Message.d.ts.map +1 -0
  360. package/lib/cjs/system/runtime/Message.js +40 -0
  361. package/lib/cjs/system/runtime/Message.js.map +1 -0
  362. package/lib/cjs/system/runtime/Numbers.d.ts +35 -0
  363. package/lib/cjs/system/runtime/Numbers.d.ts.map +1 -0
  364. package/lib/cjs/system/runtime/Numbers.js +88 -0
  365. package/lib/cjs/system/runtime/Numbers.js.map +1 -0
  366. package/lib/cjs/system/runtime/Strings.d.ts +50 -0
  367. package/lib/cjs/system/runtime/Strings.d.ts.map +1 -0
  368. package/lib/cjs/system/runtime/Strings.js +189 -0
  369. package/lib/cjs/system/runtime/Strings.js.map +1 -0
  370. package/lib/cjs/system/runtime/iComparator.d.ts +13 -0
  371. package/lib/cjs/system/runtime/iComparator.d.ts.map +1 -0
  372. package/lib/cjs/system/runtime/iComparator.js +10 -0
  373. package/lib/cjs/system/runtime/iComparator.js.map +1 -0
  374. package/lib/cjs/system/storage/CacheList.d.ts +40 -0
  375. package/lib/cjs/system/storage/CacheList.d.ts.map +1 -0
  376. package/lib/cjs/system/storage/CacheList.js +81 -0
  377. package/lib/cjs/system/storage/CacheList.js.map +1 -0
  378. package/lib/cjs/system/storage/CachedItem.d.ts +22 -0
  379. package/lib/cjs/system/storage/CachedItem.d.ts.map +1 -0
  380. package/lib/cjs/system/storage/CachedItem.js +26 -0
  381. package/lib/cjs/system/storage/CachedItem.js.map +1 -0
  382. package/lib/cjs/system/storage/ContentLoader.d.ts +65 -0
  383. package/lib/cjs/system/storage/ContentLoader.d.ts.map +1 -0
  384. package/lib/cjs/system/storage/ContentLoader.js +96 -0
  385. package/lib/cjs/system/storage/ContentLoader.js.map +1 -0
  386. package/lib/cjs/system/storage/FileContent.d.ts +20 -0
  387. package/lib/cjs/system/storage/FileContent.d.ts.map +1 -0
  388. package/lib/cjs/system/storage/FileContent.js +25 -0
  389. package/lib/cjs/system/storage/FileContent.js.map +1 -0
  390. package/lib/cjs/system/storage/FileRange.d.ts +21 -0
  391. package/lib/cjs/system/storage/FileRange.d.ts.map +1 -0
  392. package/lib/cjs/system/storage/FileRange.js +25 -0
  393. package/lib/cjs/system/storage/FileRange.js.map +1 -0
  394. package/lib/cjs/system/storage/FileStorage.d.ts +45 -0
  395. package/lib/cjs/system/storage/FileStorage.d.ts.map +1 -0
  396. package/lib/cjs/system/storage/FileStorage.js +63 -0
  397. package/lib/cjs/system/storage/FileStorage.js.map +1 -0
  398. package/lib/cjs/system/storage/NodeFS.d.ts +42 -0
  399. package/lib/cjs/system/storage/NodeFS.d.ts.map +1 -0
  400. package/lib/cjs/system/storage/NodeFS.js +80 -0
  401. package/lib/cjs/system/storage/NodeFS.js.map +1 -0
  402. package/lib/cjs/system/storage/PageCachedFile.d.ts +55 -0
  403. package/lib/cjs/system/storage/PageCachedFile.d.ts.map +1 -0
  404. package/lib/cjs/system/storage/PageCachedFile.js +166 -0
  405. package/lib/cjs/system/storage/PageCachedFile.js.map +1 -0
  406. package/lib/cjs/system/storage/UrlFS.d.ts +54 -0
  407. package/lib/cjs/system/storage/UrlFS.d.ts.map +1 -0
  408. package/lib/cjs/system/storage/UrlFS.js +115 -0
  409. package/lib/cjs/system/storage/UrlFS.js.map +1 -0
  410. package/lib/esm/core-orbitgt.d.ts +27 -0
  411. package/lib/esm/core-orbitgt.d.ts.map +1 -0
  412. package/lib/esm/core-orbitgt.js +32 -0
  413. package/lib/esm/core-orbitgt.js.map +1 -0
  414. package/lib/esm/pointcloud/format/opc/AttributeMask.d.ts +31 -0
  415. package/lib/esm/pointcloud/format/opc/AttributeMask.d.ts.map +1 -0
  416. package/lib/esm/pointcloud/format/opc/AttributeMask.js +44 -0
  417. package/lib/esm/pointcloud/format/opc/AttributeMask.js.map +1 -0
  418. package/lib/esm/pointcloud/format/opc/AttributeReader.d.ts +64 -0
  419. package/lib/esm/pointcloud/format/opc/AttributeReader.d.ts.map +1 -0
  420. package/lib/esm/pointcloud/format/opc/AttributeReader.js +21 -0
  421. package/lib/esm/pointcloud/format/opc/AttributeReader.js.map +1 -0
  422. package/lib/esm/pointcloud/format/opc/BlockRecord.d.ts +55 -0
  423. package/lib/esm/pointcloud/format/opc/BlockRecord.d.ts.map +1 -0
  424. package/lib/esm/pointcloud/format/opc/BlockRecord.js +81 -0
  425. package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -0
  426. package/lib/esm/pointcloud/format/opc/ContainerFile.d.ts +86 -0
  427. package/lib/esm/pointcloud/format/opc/ContainerFile.d.ts.map +1 -0
  428. package/lib/esm/pointcloud/format/opc/ContainerFile.js +196 -0
  429. package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -0
  430. package/lib/esm/pointcloud/format/opc/ContainerFilePart.d.ts +56 -0
  431. package/lib/esm/pointcloud/format/opc/ContainerFilePart.d.ts.map +1 -0
  432. package/lib/esm/pointcloud/format/opc/ContainerFilePart.js +72 -0
  433. package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -0
  434. package/lib/esm/pointcloud/format/opc/DirectoryReader.d.ts +76 -0
  435. package/lib/esm/pointcloud/format/opc/DirectoryReader.d.ts.map +1 -0
  436. package/lib/esm/pointcloud/format/opc/DirectoryReader.js +166 -0
  437. package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -0
  438. package/lib/esm/pointcloud/format/opc/DirectoryRecord.d.ts +60 -0
  439. package/lib/esm/pointcloud/format/opc/DirectoryRecord.d.ts.map +1 -0
  440. package/lib/esm/pointcloud/format/opc/DirectoryRecord.js +86 -0
  441. package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -0
  442. package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +107 -0
  443. package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.d.ts.map +1 -0
  444. package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js +194 -0
  445. package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -0
  446. package/lib/esm/pointcloud/format/opc/FileAccess.d.ts +40 -0
  447. package/lib/esm/pointcloud/format/opc/FileAccess.d.ts.map +1 -0
  448. package/lib/esm/pointcloud/format/opc/FileAccess.js +45 -0
  449. package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -0
  450. package/lib/esm/pointcloud/format/opc/FileReader.d.ts +119 -0
  451. package/lib/esm/pointcloud/format/opc/FileReader.d.ts.map +1 -0
  452. package/lib/esm/pointcloud/format/opc/FileReader.js +245 -0
  453. package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -0
  454. package/lib/esm/pointcloud/format/opc/FileRecord.d.ts +90 -0
  455. package/lib/esm/pointcloud/format/opc/FileRecord.d.ts.map +1 -0
  456. package/lib/esm/pointcloud/format/opc/FileRecord.js +122 -0
  457. package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -0
  458. package/lib/esm/pointcloud/format/opc/GeometryReader.d.ts +80 -0
  459. package/lib/esm/pointcloud/format/opc/GeometryReader.d.ts.map +1 -0
  460. package/lib/esm/pointcloud/format/opc/GeometryReader.js +160 -0
  461. package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -0
  462. package/lib/esm/pointcloud/format/opc/GeometryRecord.d.ts +54 -0
  463. package/lib/esm/pointcloud/format/opc/GeometryRecord.d.ts.map +1 -0
  464. package/lib/esm/pointcloud/format/opc/GeometryRecord.js +104 -0
  465. package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -0
  466. package/lib/esm/pointcloud/format/opc/OPCReader.d.ts +158 -0
  467. package/lib/esm/pointcloud/format/opc/OPCReader.d.ts.map +1 -0
  468. package/lib/esm/pointcloud/format/opc/OPCReader.js +316 -0
  469. package/lib/esm/pointcloud/format/opc/OPCReader.js.map +1 -0
  470. package/lib/esm/pointcloud/format/opc/PointReader.d.ts +73 -0
  471. package/lib/esm/pointcloud/format/opc/PointReader.d.ts.map +1 -0
  472. package/lib/esm/pointcloud/format/opc/PointReader.js +149 -0
  473. package/lib/esm/pointcloud/format/opc/PointReader.js.map +1 -0
  474. package/lib/esm/pointcloud/format/opc/TileReadBuffer.d.ts +64 -0
  475. package/lib/esm/pointcloud/format/opc/TileReadBuffer.d.ts.map +1 -0
  476. package/lib/esm/pointcloud/format/opc/TileReadBuffer.js +89 -0
  477. package/lib/esm/pointcloud/format/opc/TileReadBuffer.js.map +1 -0
  478. package/lib/esm/pointcloud/format/opc/TileRecord.d.ts +89 -0
  479. package/lib/esm/pointcloud/format/opc/TileRecord.d.ts.map +1 -0
  480. package/lib/esm/pointcloud/format/opc/TileRecord.js +158 -0
  481. package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -0
  482. package/lib/esm/pointcloud/model/AttributeTypes.d.ts +38 -0
  483. package/lib/esm/pointcloud/model/AttributeTypes.d.ts.map +1 -0
  484. package/lib/esm/pointcloud/model/AttributeTypes.js +61 -0
  485. package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -0
  486. package/lib/esm/pointcloud/model/AttributeValue.d.ts +248 -0
  487. package/lib/esm/pointcloud/model/AttributeValue.d.ts.map +1 -0
  488. package/lib/esm/pointcloud/model/AttributeValue.js +505 -0
  489. package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -0
  490. package/lib/esm/pointcloud/model/BlockIndex.d.ts +50 -0
  491. package/lib/esm/pointcloud/model/BlockIndex.d.ts.map +1 -0
  492. package/lib/esm/pointcloud/model/BlockIndex.js +45 -0
  493. package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -0
  494. package/lib/esm/pointcloud/model/CloudPoint.d.ts +211 -0
  495. package/lib/esm/pointcloud/model/CloudPoint.d.ts.map +1 -0
  496. package/lib/esm/pointcloud/model/CloudPoint.js +315 -0
  497. package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -0
  498. package/lib/esm/pointcloud/model/Grid.d.ts +92 -0
  499. package/lib/esm/pointcloud/model/Grid.d.ts.map +1 -0
  500. package/lib/esm/pointcloud/model/Grid.js +126 -0
  501. package/lib/esm/pointcloud/model/Grid.js.map +1 -0
  502. package/lib/esm/pointcloud/model/GridIndex.d.ts +67 -0
  503. package/lib/esm/pointcloud/model/GridIndex.d.ts.map +1 -0
  504. package/lib/esm/pointcloud/model/GridIndex.js +90 -0
  505. package/lib/esm/pointcloud/model/GridIndex.js.map +1 -0
  506. package/lib/esm/pointcloud/model/PointAttribute.d.ts +209 -0
  507. package/lib/esm/pointcloud/model/PointAttribute.d.ts.map +1 -0
  508. package/lib/esm/pointcloud/model/PointAttribute.js +371 -0
  509. package/lib/esm/pointcloud/model/PointAttribute.js.map +1 -0
  510. package/lib/esm/pointcloud/model/PointCloudReader.d.ts +157 -0
  511. package/lib/esm/pointcloud/model/PointCloudReader.d.ts.map +1 -0
  512. package/lib/esm/pointcloud/model/PointCloudReader.js +186 -0
  513. package/lib/esm/pointcloud/model/PointCloudReader.js.map +1 -0
  514. package/lib/esm/pointcloud/model/PointData.d.ts +18 -0
  515. package/lib/esm/pointcloud/model/PointData.d.ts.map +1 -0
  516. package/lib/esm/pointcloud/model/PointData.js +21 -0
  517. package/lib/esm/pointcloud/model/PointData.js.map +1 -0
  518. package/lib/esm/pointcloud/model/PointDataRaw.d.ts +35 -0
  519. package/lib/esm/pointcloud/model/PointDataRaw.d.ts.map +1 -0
  520. package/lib/esm/pointcloud/model/PointDataRaw.js +66 -0
  521. package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -0
  522. package/lib/esm/pointcloud/model/ReadRequest.d.ts +176 -0
  523. package/lib/esm/pointcloud/model/ReadRequest.d.ts.map +1 -0
  524. package/lib/esm/pointcloud/model/ReadRequest.js +236 -0
  525. package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -0
  526. package/lib/esm/pointcloud/model/StandardAttributes.d.ts +41 -0
  527. package/lib/esm/pointcloud/model/StandardAttributes.d.ts.map +1 -0
  528. package/lib/esm/pointcloud/model/StandardAttributes.js +44 -0
  529. package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -0
  530. package/lib/esm/pointcloud/model/TileIndex.d.ts +48 -0
  531. package/lib/esm/pointcloud/model/TileIndex.d.ts.map +1 -0
  532. package/lib/esm/pointcloud/model/TileIndex.js +44 -0
  533. package/lib/esm/pointcloud/model/TileIndex.js.map +1 -0
  534. package/lib/esm/pointcloud/render/AViewRequest.d.ts +39 -0
  535. package/lib/esm/pointcloud/render/AViewRequest.d.ts.map +1 -0
  536. package/lib/esm/pointcloud/render/AViewRequest.js +21 -0
  537. package/lib/esm/pointcloud/render/AViewRequest.js.map +1 -0
  538. package/lib/esm/pointcloud/render/Block.d.ts +68 -0
  539. package/lib/esm/pointcloud/render/Block.d.ts.map +1 -0
  540. package/lib/esm/pointcloud/render/Block.js +116 -0
  541. package/lib/esm/pointcloud/render/Block.js.map +1 -0
  542. package/lib/esm/pointcloud/render/DataManager.d.ts +137 -0
  543. package/lib/esm/pointcloud/render/DataManager.d.ts.map +1 -0
  544. package/lib/esm/pointcloud/render/DataManager.js +339 -0
  545. package/lib/esm/pointcloud/render/DataManager.js.map +1 -0
  546. package/lib/esm/pointcloud/render/FrameData.d.ts +31 -0
  547. package/lib/esm/pointcloud/render/FrameData.d.ts.map +1 -0
  548. package/lib/esm/pointcloud/render/FrameData.js +36 -0
  549. package/lib/esm/pointcloud/render/FrameData.js.map +1 -0
  550. package/lib/esm/pointcloud/render/Level.d.ts +91 -0
  551. package/lib/esm/pointcloud/render/Level.d.ts.map +1 -0
  552. package/lib/esm/pointcloud/render/Level.js +116 -0
  553. package/lib/esm/pointcloud/render/Level.js.map +1 -0
  554. package/lib/esm/pointcloud/render/TileLoadSorter.d.ts +61 -0
  555. package/lib/esm/pointcloud/render/TileLoadSorter.d.ts.map +1 -0
  556. package/lib/esm/pointcloud/render/TileLoadSorter.js +96 -0
  557. package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -0
  558. package/lib/esm/pointcloud/render/ViewTree.d.ts +114 -0
  559. package/lib/esm/pointcloud/render/ViewTree.d.ts.map +1 -0
  560. package/lib/esm/pointcloud/render/ViewTree.js +360 -0
  561. package/lib/esm/pointcloud/render/ViewTree.js.map +1 -0
  562. package/lib/esm/spatial/crs/CRSEngine.d.ts +56 -0
  563. package/lib/esm/spatial/crs/CRSEngine.d.ts.map +1 -0
  564. package/lib/esm/spatial/crs/CRSEngine.js +90 -0
  565. package/lib/esm/spatial/crs/CRSEngine.js.map +1 -0
  566. package/lib/esm/spatial/crs/CRSManager.d.ts +50 -0
  567. package/lib/esm/spatial/crs/CRSManager.d.ts.map +1 -0
  568. package/lib/esm/spatial/crs/CRSManager.js +106 -0
  569. package/lib/esm/spatial/crs/CRSManager.js.map +1 -0
  570. package/lib/esm/spatial/ecrs/Axis.d.ts +78 -0
  571. package/lib/esm/spatial/ecrs/Axis.d.ts.map +1 -0
  572. package/lib/esm/spatial/ecrs/Axis.js +90 -0
  573. package/lib/esm/spatial/ecrs/Axis.js.map +1 -0
  574. package/lib/esm/spatial/ecrs/CRS.d.ts +448 -0
  575. package/lib/esm/spatial/ecrs/CRS.d.ts.map +1 -0
  576. package/lib/esm/spatial/ecrs/CRS.js +927 -0
  577. package/lib/esm/spatial/ecrs/CRS.js.map +1 -0
  578. package/lib/esm/spatial/ecrs/CoordinateSystem.d.ts +143 -0
  579. package/lib/esm/spatial/ecrs/CoordinateSystem.d.ts.map +1 -0
  580. package/lib/esm/spatial/ecrs/CoordinateSystem.js +323 -0
  581. package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -0
  582. package/lib/esm/spatial/ecrs/DataFileUnit.d.ts +11 -0
  583. package/lib/esm/spatial/ecrs/DataFileUnit.d.ts.map +1 -0
  584. package/lib/esm/spatial/ecrs/DataFileUnit.js +101 -0
  585. package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -0
  586. package/lib/esm/spatial/ecrs/Datum.d.ts +112 -0
  587. package/lib/esm/spatial/ecrs/Datum.d.ts.map +1 -0
  588. package/lib/esm/spatial/ecrs/Datum.js +163 -0
  589. package/lib/esm/spatial/ecrs/Datum.js.map +1 -0
  590. package/lib/esm/spatial/ecrs/Ellipsoid.d.ts +189 -0
  591. package/lib/esm/spatial/ecrs/Ellipsoid.d.ts.map +1 -0
  592. package/lib/esm/spatial/ecrs/Ellipsoid.js +333 -0
  593. package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -0
  594. package/lib/esm/spatial/ecrs/OnlineEngine.d.ts +49 -0
  595. package/lib/esm/spatial/ecrs/OnlineEngine.d.ts.map +1 -0
  596. package/lib/esm/spatial/ecrs/OnlineEngine.js +99 -0
  597. package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -0
  598. package/lib/esm/spatial/ecrs/OnlineRegistry.d.ts +38 -0
  599. package/lib/esm/spatial/ecrs/OnlineRegistry.d.ts.map +1 -0
  600. package/lib/esm/spatial/ecrs/OnlineRegistry.js +73 -0
  601. package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -0
  602. package/lib/esm/spatial/ecrs/Operation.d.ts +192 -0
  603. package/lib/esm/spatial/ecrs/Operation.d.ts.map +1 -0
  604. package/lib/esm/spatial/ecrs/Operation.js +342 -0
  605. package/lib/esm/spatial/ecrs/Operation.js.map +1 -0
  606. package/lib/esm/spatial/ecrs/OperationMethod.d.ts +72 -0
  607. package/lib/esm/spatial/ecrs/OperationMethod.d.ts.map +1 -0
  608. package/lib/esm/spatial/ecrs/OperationMethod.js +72 -0
  609. package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -0
  610. package/lib/esm/spatial/ecrs/ParameterValue.d.ts +50 -0
  611. package/lib/esm/spatial/ecrs/ParameterValue.d.ts.map +1 -0
  612. package/lib/esm/spatial/ecrs/ParameterValue.js +62 -0
  613. package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -0
  614. package/lib/esm/spatial/ecrs/ParameterValueList.d.ts +73 -0
  615. package/lib/esm/spatial/ecrs/ParameterValueList.d.ts.map +1 -0
  616. package/lib/esm/spatial/ecrs/ParameterValueList.js +117 -0
  617. package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -0
  618. package/lib/esm/spatial/ecrs/PrimeMeridian.d.ts +79 -0
  619. package/lib/esm/spatial/ecrs/PrimeMeridian.d.ts.map +1 -0
  620. package/lib/esm/spatial/ecrs/PrimeMeridian.js +105 -0
  621. package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -0
  622. package/lib/esm/spatial/ecrs/Registry.d.ts +110 -0
  623. package/lib/esm/spatial/ecrs/Registry.d.ts.map +1 -0
  624. package/lib/esm/spatial/ecrs/Registry.js +204 -0
  625. package/lib/esm/spatial/ecrs/Registry.js.map +1 -0
  626. package/lib/esm/spatial/ecrs/Transform.d.ts +78 -0
  627. package/lib/esm/spatial/ecrs/Transform.d.ts.map +1 -0
  628. package/lib/esm/spatial/ecrs/Transform.js +393 -0
  629. package/lib/esm/spatial/ecrs/Transform.js.map +1 -0
  630. package/lib/esm/spatial/ecrs/Unit.d.ts +171 -0
  631. package/lib/esm/spatial/ecrs/Unit.d.ts.map +1 -0
  632. package/lib/esm/spatial/ecrs/Unit.js +333 -0
  633. package/lib/esm/spatial/ecrs/Unit.js.map +1 -0
  634. package/lib/esm/spatial/ecrs/VerticalModel.d.ts +70 -0
  635. package/lib/esm/spatial/ecrs/VerticalModel.d.ts.map +1 -0
  636. package/lib/esm/spatial/ecrs/VerticalModel.js +85 -0
  637. package/lib/esm/spatial/ecrs/VerticalModel.js.map +1 -0
  638. package/lib/esm/spatial/ecrs/WellKnownText.d.ts +154 -0
  639. package/lib/esm/spatial/ecrs/WellKnownText.d.ts.map +1 -0
  640. package/lib/esm/spatial/ecrs/WellKnownText.js +491 -0
  641. package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -0
  642. package/lib/esm/spatial/ecrs/WellKnownTextNode.d.ts +70 -0
  643. package/lib/esm/spatial/ecrs/WellKnownTextNode.d.ts.map +1 -0
  644. package/lib/esm/spatial/ecrs/WellKnownTextNode.js +125 -0
  645. package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -0
  646. package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.d.ts +102 -0
  647. package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.d.ts.map +1 -0
  648. package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js +159 -0
  649. package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -0
  650. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts +80 -0
  651. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts.map +1 -0
  652. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js +122 -0
  653. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -0
  654. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts +48 -0
  655. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts.map +1 -0
  656. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +70 -0
  657. package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -0
  658. package/lib/esm/spatial/ecrs/projection/LambertConical1SP.d.ts +73 -0
  659. package/lib/esm/spatial/ecrs/projection/LambertConical1SP.d.ts.map +1 -0
  660. package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js +126 -0
  661. package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -0
  662. package/lib/esm/spatial/ecrs/projection/LambertConical2SP.d.ts +121 -0
  663. package/lib/esm/spatial/ecrs/projection/LambertConical2SP.d.ts.map +1 -0
  664. package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js +176 -0
  665. package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -0
  666. package/lib/esm/spatial/ecrs/projection/Mercator1SP.d.ts +74 -0
  667. package/lib/esm/spatial/ecrs/projection/Mercator1SP.d.ts.map +1 -0
  668. package/lib/esm/spatial/ecrs/projection/Mercator1SP.js +109 -0
  669. package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -0
  670. package/lib/esm/spatial/ecrs/projection/ObliqueMercator.d.ts +97 -0
  671. package/lib/esm/spatial/ecrs/projection/ObliqueMercator.d.ts.map +1 -0
  672. package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js +170 -0
  673. package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -0
  674. package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.d.ts +124 -0
  675. package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.d.ts.map +1 -0
  676. package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js +205 -0
  677. package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -0
  678. package/lib/esm/spatial/ecrs/projection/TransverseMercator.d.ts +109 -0
  679. package/lib/esm/spatial/ecrs/projection/TransverseMercator.d.ts.map +1 -0
  680. package/lib/esm/spatial/ecrs/projection/TransverseMercator.js +180 -0
  681. package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -0
  682. package/lib/esm/spatial/ecrs/transformation/PositionVector.d.ts +91 -0
  683. package/lib/esm/spatial/ecrs/transformation/PositionVector.d.ts.map +1 -0
  684. package/lib/esm/spatial/ecrs/transformation/PositionVector.js +127 -0
  685. package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -0
  686. package/lib/esm/spatial/geom/Bounds.d.ts +34 -0
  687. package/lib/esm/spatial/geom/Bounds.d.ts.map +1 -0
  688. package/lib/esm/spatial/geom/Bounds.js +153 -0
  689. package/lib/esm/spatial/geom/Bounds.js.map +1 -0
  690. package/lib/esm/spatial/geom/Coordinate.d.ts +62 -0
  691. package/lib/esm/spatial/geom/Coordinate.d.ts.map +1 -0
  692. package/lib/esm/spatial/geom/Coordinate.js +183 -0
  693. package/lib/esm/spatial/geom/Coordinate.js.map +1 -0
  694. package/lib/esm/spatial/geom/Line.d.ts +226 -0
  695. package/lib/esm/spatial/geom/Line.d.ts.map +1 -0
  696. package/lib/esm/spatial/geom/Line.js +429 -0
  697. package/lib/esm/spatial/geom/Line.js.map +1 -0
  698. package/lib/esm/spatial/geom/Transform.d.ts +341 -0
  699. package/lib/esm/spatial/geom/Transform.d.ts.map +1 -0
  700. package/lib/esm/spatial/geom/Transform.js +745 -0
  701. package/lib/esm/spatial/geom/Transform.js.map +1 -0
  702. package/lib/esm/system/buffer/ABuffer.d.ts +52 -0
  703. package/lib/esm/system/buffer/ABuffer.d.ts.map +1 -0
  704. package/lib/esm/system/buffer/ABuffer.js +87 -0
  705. package/lib/esm/system/buffer/ABuffer.js.map +1 -0
  706. package/lib/esm/system/buffer/Float32Buffer.d.ts +47 -0
  707. package/lib/esm/system/buffer/Float32Buffer.d.ts.map +1 -0
  708. package/lib/esm/system/buffer/Float32Buffer.js +57 -0
  709. package/lib/esm/system/buffer/Float32Buffer.js.map +1 -0
  710. package/lib/esm/system/buffer/LittleEndian.d.ts +150 -0
  711. package/lib/esm/system/buffer/LittleEndian.d.ts.map +1 -0
  712. package/lib/esm/system/buffer/LittleEndian.js +300 -0
  713. package/lib/esm/system/buffer/LittleEndian.js.map +1 -0
  714. package/lib/esm/system/buffer/Uint16Buffer.d.ts +50 -0
  715. package/lib/esm/system/buffer/Uint16Buffer.d.ts.map +1 -0
  716. package/lib/esm/system/buffer/Uint16Buffer.js +62 -0
  717. package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -0
  718. package/lib/esm/system/buffer/Uint8Buffer.d.ts +50 -0
  719. package/lib/esm/system/buffer/Uint8Buffer.d.ts.map +1 -0
  720. package/lib/esm/system/buffer/Uint8Buffer.js +62 -0
  721. package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -0
  722. package/lib/esm/system/collection/AList.d.ts +31 -0
  723. package/lib/esm/system/collection/AList.d.ts.map +1 -0
  724. package/lib/esm/system/collection/AList.js +67 -0
  725. package/lib/esm/system/collection/AList.js.map +1 -0
  726. package/lib/esm/system/collection/IntMap.d.ts +19 -0
  727. package/lib/esm/system/collection/IntMap.d.ts.map +1 -0
  728. package/lib/esm/system/collection/IntMap.js +32 -0
  729. package/lib/esm/system/collection/IntMap.js.map +1 -0
  730. package/lib/esm/system/collection/StringMap.d.ts +27 -0
  731. package/lib/esm/system/collection/StringMap.d.ts.map +1 -0
  732. package/lib/esm/system/collection/StringMap.js +60 -0
  733. package/lib/esm/system/collection/StringMap.js.map +1 -0
  734. package/lib/esm/system/io/ABufferInStream.d.ts +30 -0
  735. package/lib/esm/system/io/ABufferInStream.d.ts.map +1 -0
  736. package/lib/esm/system/io/ABufferInStream.js +43 -0
  737. package/lib/esm/system/io/ABufferInStream.js.map +1 -0
  738. package/lib/esm/system/io/InStream.d.ts +24 -0
  739. package/lib/esm/system/io/InStream.d.ts.map +1 -0
  740. package/lib/esm/system/io/InStream.js +31 -0
  741. package/lib/esm/system/io/InStream.js.map +1 -0
  742. package/lib/esm/system/io/OutStream.d.ts +24 -0
  743. package/lib/esm/system/io/OutStream.d.ts.map +1 -0
  744. package/lib/esm/system/io/OutStream.js +30 -0
  745. package/lib/esm/system/io/OutStream.js.map +1 -0
  746. package/lib/esm/system/runtime/ALong.d.ts +330 -0
  747. package/lib/esm/system/runtime/ALong.d.ts.map +1 -0
  748. package/lib/esm/system/runtime/ALong.js +684 -0
  749. package/lib/esm/system/runtime/ALong.js.map +1 -0
  750. package/lib/esm/system/runtime/ASystem.d.ts +15 -0
  751. package/lib/esm/system/runtime/ASystem.d.ts.map +1 -0
  752. package/lib/esm/system/runtime/ASystem.js +28 -0
  753. package/lib/esm/system/runtime/ASystem.js.map +1 -0
  754. package/lib/esm/system/runtime/Downloader.d.ts +18 -0
  755. package/lib/esm/system/runtime/Downloader.d.ts.map +1 -0
  756. package/lib/esm/system/runtime/Downloader.js +35 -0
  757. package/lib/esm/system/runtime/Downloader.js.map +1 -0
  758. package/lib/esm/system/runtime/DownloaderNode.d.ts +19 -0
  759. package/lib/esm/system/runtime/DownloaderNode.d.ts.map +1 -0
  760. package/lib/esm/system/runtime/DownloaderNode.js +126 -0
  761. package/lib/esm/system/runtime/DownloaderNode.js.map +1 -0
  762. package/lib/esm/system/runtime/DownloaderXhr.d.ts +19 -0
  763. package/lib/esm/system/runtime/DownloaderXhr.d.ts.map +1 -0
  764. package/lib/esm/system/runtime/DownloaderXhr.js +128 -0
  765. package/lib/esm/system/runtime/DownloaderXhr.js.map +1 -0
  766. package/lib/esm/system/runtime/Message.d.ts +17 -0
  767. package/lib/esm/system/runtime/Message.d.ts.map +1 -0
  768. package/lib/esm/system/runtime/Message.js +36 -0
  769. package/lib/esm/system/runtime/Message.js.map +1 -0
  770. package/lib/esm/system/runtime/Numbers.d.ts +35 -0
  771. package/lib/esm/system/runtime/Numbers.d.ts.map +1 -0
  772. package/lib/esm/system/runtime/Numbers.js +84 -0
  773. package/lib/esm/system/runtime/Numbers.js.map +1 -0
  774. package/lib/esm/system/runtime/Strings.d.ts +50 -0
  775. package/lib/esm/system/runtime/Strings.d.ts.map +1 -0
  776. package/lib/esm/system/runtime/Strings.js +185 -0
  777. package/lib/esm/system/runtime/Strings.js.map +1 -0
  778. package/lib/esm/system/runtime/iComparator.d.ts +13 -0
  779. package/lib/esm/system/runtime/iComparator.d.ts.map +1 -0
  780. package/lib/esm/system/runtime/iComparator.js +9 -0
  781. package/lib/esm/system/runtime/iComparator.js.map +1 -0
  782. package/lib/esm/system/storage/CacheList.d.ts +40 -0
  783. package/lib/esm/system/storage/CacheList.d.ts.map +1 -0
  784. package/lib/esm/system/storage/CacheList.js +77 -0
  785. package/lib/esm/system/storage/CacheList.js.map +1 -0
  786. package/lib/esm/system/storage/CachedItem.d.ts +22 -0
  787. package/lib/esm/system/storage/CachedItem.d.ts.map +1 -0
  788. package/lib/esm/system/storage/CachedItem.js +22 -0
  789. package/lib/esm/system/storage/CachedItem.js.map +1 -0
  790. package/lib/esm/system/storage/ContentLoader.d.ts +65 -0
  791. package/lib/esm/system/storage/ContentLoader.d.ts.map +1 -0
  792. package/lib/esm/system/storage/ContentLoader.js +92 -0
  793. package/lib/esm/system/storage/ContentLoader.js.map +1 -0
  794. package/lib/esm/system/storage/FileContent.d.ts +20 -0
  795. package/lib/esm/system/storage/FileContent.d.ts.map +1 -0
  796. package/lib/esm/system/storage/FileContent.js +21 -0
  797. package/lib/esm/system/storage/FileContent.js.map +1 -0
  798. package/lib/esm/system/storage/FileRange.d.ts +21 -0
  799. package/lib/esm/system/storage/FileRange.d.ts.map +1 -0
  800. package/lib/esm/system/storage/FileRange.js +21 -0
  801. package/lib/esm/system/storage/FileRange.js.map +1 -0
  802. package/lib/esm/system/storage/FileStorage.d.ts +45 -0
  803. package/lib/esm/system/storage/FileStorage.d.ts.map +1 -0
  804. package/lib/esm/system/storage/FileStorage.js +59 -0
  805. package/lib/esm/system/storage/FileStorage.js.map +1 -0
  806. package/lib/esm/system/storage/NodeFS.d.ts +42 -0
  807. package/lib/esm/system/storage/NodeFS.d.ts.map +1 -0
  808. package/lib/esm/system/storage/NodeFS.js +76 -0
  809. package/lib/esm/system/storage/NodeFS.js.map +1 -0
  810. package/lib/esm/system/storage/PageCachedFile.d.ts +55 -0
  811. package/lib/esm/system/storage/PageCachedFile.d.ts.map +1 -0
  812. package/lib/esm/system/storage/PageCachedFile.js +162 -0
  813. package/lib/esm/system/storage/PageCachedFile.js.map +1 -0
  814. package/lib/esm/system/storage/UrlFS.d.ts +54 -0
  815. package/lib/esm/system/storage/UrlFS.d.ts.map +1 -0
  816. package/lib/esm/system/storage/UrlFS.js +111 -0
  817. package/lib/esm/system/storage/UrlFS.js.map +1 -0
  818. package/package.json +60 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObliqueStereographic.js","sourceRoot":"","sources":["../../../../../src/spatial/ecrs/projection/ObliqueStereographic.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAcH,wDAAqD;AAGrD;;;;;;;;;;;;;;;;GAgBG;AACH,gBAAgB;AAChB,MAAa,oBAAqB,SAAQ,iCAAe;IA6BrD;;;SAGK;IACL,YAAmB,UAA8B;QAC7C,KAAK,C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,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;YAClM,MAAM,QAAQ,GAAY,IAAI,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YAC9H,MAAM,MAAM,GAAY,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;YAClD,IAAI,GAAG,QAAQ,CAAC;YAChB,IAAI,MAAM,GAAG,OAAO;gBAAE,MAAM,CAAC,8BAA8B;SAC9D;QACD,uBAAuB;QACvB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,mBAAmB;IACnD,CAAC;;AApNL,oDAqNC;AApNG,8BAA8B;AACP,gCAAW,GAAU,IAAI,CAAC;AAEjD,sBAAsB;AACE,uBAAE,GAAY,IAAI,CAAC,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n// package orbitgt.spatial.ecrs.projection;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../../geom/Coordinate\";\r\nimport { CRS } from \"../CRS\";\r\nimport { Ellipsoid } from \"../Ellipsoid\";\r\nimport { Operation } from \"../Operation\";\r\nimport { OperationMethod } from \"../OperationMethod\";\r\nimport { ParameterValueList } from \"../ParameterValueList\";\r\n\r\n/**\r\n * Class ObliqueStereographic defines an Oblique Stereographic projection.\r\n *\r\n * The 'source' CRS is the geodetic CRS.\r\n * The 'target' CRS is the projected CRS.\r\n *\r\n * Based on the following document:\r\n *\r\n * Coordinate Conversions and Transformations including Formulas\r\n * Guidance Note Number 7, part 2\r\n * Revised August 2006\r\n * Available at: http://www.epsg.org/\r\n *\r\n * Formulas: see 1.4.7.1 'Oblique and Equatorial Stereographic cases'\r\n *\r\n * @version 1.0 December 2006\r\n */\r\n/** @internal */\r\nexport class ObliqueStereographic extends OperationMethod {\r\n /** The code of this method */\r\n public static readonly METHOD_CODE: int32 = 9809;\r\n\r\n /** The value of PI */\r\n private static readonly PI: float64 = Math.PI;\r\n\r\n /** Latitude of false origin */\r\n private _lat0: float64;\r\n /** Longitude of false origin */\r\n private _lon0: float64;\r\n /** Scale factor at natural origin */\r\n private _k0: float64;\r\n /** False easting */\r\n private _fe: float64;\r\n /** False northing */\r\n private _fn: float64;\r\n\r\n /** The parameters for the conformal sphere */\r\n private _e: float64;\r\n private _e2: float64;\r\n private _R: float64;\r\n private _n: float64;\r\n private _c: float64;\r\n private _chi0: float64;\r\n private _lambda0: float64;\r\n private _g: float64;\r\n private _h: float64;\r\n\r\n /**\r\n * Create a new projection.\r\n * @param parameters the values of the parameters.\r\n */\r\n public constructor(parameters: ParameterValueList) {\r\n super(ObliqueStereographic.METHOD_CODE, \"Oblique Stereographic\", parameters);\r\n /* Store the parameters */\r\n this._lat0 = (parameters != null) ? parameters.getValue(8801) : 0.0;\r\n this._lon0 = (parameters != null) ? parameters.getValue(8802) : 0.0;\r\n this._k0 = (parameters != null) ? parameters.getValue(8805) : 0.0;\r\n this._fe = (parameters != null) ? parameters.getValue(8806) : 0.0;\r\n this._fn = (parameters != null) ? parameters.getValue(8807) : 0.0;\r\n }\r\n\r\n /**\r\n * Create a new projection.\r\n * @param lat0 latitude of natural origin (radians).\r\n * @param lon0 longitude of natural origin (radians).\r\n * @param k0 scale factor at natural origin.\r\n * @param fe false easting.\r\n * @param fn false northing.\r\n */\r\n public static create(lat0: float64, lon0: float64, k0: float64, fe: float64, fn: float64): ObliqueStereographic {\r\n const projection: ObliqueStereographic = new ObliqueStereographic(null);\r\n projection._lat0 = lat0;\r\n projection._lon0 = lon0;\r\n projection._k0 = k0;\r\n projection._fe = fe;\r\n projection._fn = fn;\r\n return projection;\r\n }\r\n\r\n /**\r\n * Get the power of a number.\r\n */\r\n private static pow(n: float64, e: float64): float64 {\r\n return Math.exp(e * Math.log(n));\r\n }\r\n\r\n /**\r\n * Calculate sinus.\r\n */\r\n private static sin(a: float64): float64 {\r\n return Math.sin(a);\r\n }\r\n\r\n /**\r\n * Calculate cosinus.\r\n */\r\n private static cos(a: float64): float64 {\r\n return Math.cos(a);\r\n }\r\n\r\n /**\r\n * Calculate tangent.\r\n */\r\n private static tan(a: float64): float64 {\r\n return Math.tan(a);\r\n }\r\n\r\n /**\r\n * Calculate arcsinus.\r\n */\r\n private static asin(v: float64): float64 {\r\n return Math.asin(v);\r\n }\r\n\r\n /**\r\n * Calculate arctangent.\r\n */\r\n private static atan(v: float64): float64 {\r\n return Math.atan(v);\r\n }\r\n\r\n /**\r\n * Calculate log.\r\n */\r\n private static log(v: float64): float64 {\r\n return Math.log(v);\r\n }\r\n\r\n /**\r\n * Calculate exp.\r\n */\r\n private static exp(v: float64): float64 {\r\n return Math.exp(v);\r\n }\r\n\r\n /**\r\n * Initialize the projection.\r\n * @param ellipsoid the ellipsoid to use.\r\n * @return this projection (for convenience).\r\n */\r\n public initializeProjection(ellipsoid: Ellipsoid): ObliqueStereographic {\r\n /* Get the ellipsoid parameters */\r\n const a: float64 = ellipsoid.getA();\r\n this._e = ellipsoid.getE();\r\n /* Calculate conformat latitude (chi0) and longitude (lambda0) */\r\n this._e2 = this._e * this._e;\r\n const sinLat0: float64 = ObliqueStereographic.sin(this._lat0);\r\n const t0: float64 = 1.0 - this._e2 * sinLat0 * sinLat0;\r\n const rho0: float64 = a * (1 - this._e2) / ObliqueStereographic.pow(t0, 1.5);\r\n const nu0: float64 = a / ObliqueStereographic.pow(t0, 0.5);\r\n this._R = ObliqueStereographic.pow(rho0 * nu0, 0.5);\r\n this._n = ObliqueStereographic.pow(1.0 + (this._e2 * ObliqueStereographic.pow(ObliqueStereographic.cos(this._lat0), 4)) / (1.0 - this._e2), 0.5);\r\n const S1: float64 = (1.0 + sinLat0) / (1.0 - sinLat0);\r\n const S2: float64 = (1.0 - this._e * sinLat0) / (1.0 + this._e * sinLat0);\r\n const w1: float64 = ObliqueStereographic.pow(S1 * ObliqueStereographic.pow(S2, this._e), this._n);\r\n const sinChi0: float64 = (w1 - 1.0) / (w1 + 1.0);\r\n this._c = (this._n + sinLat0) * (1.0 - sinChi0) / ((this._n - sinLat0) * (1.0 + sinChi0));\r\n const w2: float64 = this._c * w1;\r\n this._chi0 = ObliqueStereographic.asin((w2 - 1.0) / (w2 + 1.0));\r\n this._lambda0 = this._lon0;\r\n /* For reverse calculation */\r\n this._g = 2.0 * this._R * this._k0 * ObliqueStereographic.tan(ObliqueStereographic.PI / 4.0 - this._chi0 / 2.0);\r\n this._h = 4.0 * this._R * this._k0 * ObliqueStereographic.tan(this._chi0) + this._g;\r\n /* Return the projection */\r\n return this;\r\n }\r\n\r\n /**\r\n * OperationMethod method.\r\n * @see OperationMethod#initialize\r\n */\r\n public override initialize(operation: Operation): void {\r\n this.initializeProjection(operation.getSourceCRS().getEllipsoid());\r\n }\r\n\r\n /**\r\n * OperationMethod interface method.\r\n * @see OperationMethod#forward\r\n */\r\n public forward(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void {\r\n /* Get the parameters */\r\n const lon: float64 = source.getX();\r\n const lat: float64 = source.getY();\r\n const sinLat: float64 = ObliqueStereographic.sin(lat);\r\n /* Calculate conformal latitude and longitude */\r\n const lambda: float64 = this._n * (lon - this._lambda0) + this._lambda0;\r\n const Sa: float64 = (1.0 + sinLat) / (1.0 - sinLat);\r\n const Sb: float64 = (1.0 - this._e * sinLat) / (1.0 + this._e * sinLat);\r\n const w: float64 = this._c * ObliqueStereographic.pow(Sa * ObliqueStereographic.pow(Sb, this._e), this._n);\r\n const chi: float64 = ObliqueStereographic.asin((w - 1.0) / (w + 1.0));\r\n /* Calculate easting and northing */\r\n const B: float64 = 1.0 + ObliqueStereographic.sin(chi) * ObliqueStereographic.sin(this._chi0) + ObliqueStereographic.cos(chi) * ObliqueStereographic.cos(this._chi0) * ObliqueStereographic.cos(lambda - this._lambda0);\r\n const E: float64 = this._fe + 2.0 * this._R * this._k0 * ObliqueStereographic.cos(chi) * ObliqueStereographic.sin(lambda - this._lambda0) / B;\r\n const N: float64 = this._fn + 2.0 * this._R * this._k0 * (ObliqueStereographic.sin(chi) * ObliqueStereographic.cos(this._chi0) - ObliqueStereographic.cos(chi) * ObliqueStereographic.sin(this._chi0) * ObliqueStereographic.cos(lambda - this._lambda0)) / B;\r\n /* Save the position */\r\n target.setX(E);\r\n target.setY(N);\r\n target.setZ(source.getZ()); // Keep the Z value\r\n }\r\n\r\n /**\r\n * OperationMethod interface method.\r\n * @see OperationMethod#reverse\r\n */\r\n public reverse(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void {\r\n /* Get the parameters */\r\n const E: float64 = target.getX() - this._fe;\r\n const N: float64 = target.getY() - this._fn;\r\n /* Calculate conformal latitude and longitude */\r\n const i: float64 = ObliqueStereographic.atan(E / (this._h + N));\r\n const j: float64 = ObliqueStereographic.atan(E / (this._g - N)) - i;\r\n const chi: float64 = this._chi0 + 2.0 * ObliqueStereographic.atan((N - E * ObliqueStereographic.tan(j / 2.0)) / (2.0 * this._R * this._k0));\r\n const lambda: float64 = j + 2.0 * i + this._lambda0;\r\n const lon: float64 = (lambda - this._lambda0) / this._n + this._lambda0;\r\n /* Iterate to get isometric (psi) and geodetic (phi) latitude */\r\n const sinChi: float64 = ObliqueStereographic.sin(chi);\r\n const psi: float64 = 0.5 * ObliqueStereographic.log((1.0 + sinChi) / (this._c * (1.0 - sinChi))) / this._n;\r\n let phiK: float64 = 2.0 * ObliqueStereographic.atan(ObliqueStereographic.exp(psi)) - ObliqueStereographic.PI / 2.0;\r\n for (let k: number = 1; k < 8; k++) {\r\n const esinPhi: float64 = this._e * ObliqueStereographic.sin(phiK);\r\n const psiK: float64 = ObliqueStereographic.log(ObliqueStereographic.tan(phiK / 2.0 + ObliqueStereographic.PI / 4.0) * ObliqueStereographic.pow((1.0 - esinPhi) / (1.0 + esinPhi), this._e / 2.0));\r\n const phiNextK: float64 = phiK - (psiK - psi) * ObliqueStereographic.cos(phiK) * (1.0 - esinPhi * esinPhi) / (1.0 - this._e2);\r\n const change: float64 = Math.abs(phiNextK - phiK);\r\n phiK = phiNextK;\r\n if (change < 1.0e-12) break; // normally after 4 iterations\r\n }\r\n /* Save the position */\r\n source.setX(lon);\r\n source.setY(phiK);\r\n source.setZ(target.getZ()); // Keep the Z value\r\n }\r\n}\r\n"]}
@@ -0,0 +1,109 @@
1
+ /** @packageDocumentation
2
+ * @module OrbitGT
3
+ */
4
+ declare type int32 = number;
5
+ declare type float64 = number;
6
+ import { Coordinate } from "../../geom/Coordinate";
7
+ import { CRS } from "../CRS";
8
+ import { Ellipsoid } from "../Ellipsoid";
9
+ import { Operation } from "../Operation";
10
+ import { OperationMethod } from "../OperationMethod";
11
+ import { ParameterValueList } from "../ParameterValueList";
12
+ /**
13
+ * Class TransverseMercator defines a Transverse Mercator projection.
14
+ *
15
+ * The 'source' CRS is the geographic CRS.
16
+ * The 'target' CRS is the projected CRS.
17
+ *
18
+ * Based on the following document:
19
+ *
20
+ * Coordinate Conversions and Transformations including Formulas
21
+ * Guidance Note Number 7, part 2
22
+ * Revised August 2006
23
+ * Available at: http://www.epsg.org/
24
+ *
25
+ * Formulas: see 1.4.5.1: General Case
26
+ *
27
+ * @version 1.0 January 2007
28
+ */
29
+ /** @internal */
30
+ export declare class TransverseMercator extends OperationMethod {
31
+ /** The code of this method */
32
+ static readonly METHOD_CODE: int32;
33
+ /** The value of PI */
34
+ private static readonly PI;
35
+ /** Latitude of natural origin (radians) */
36
+ private _latN;
37
+ /** Longitude of natural origin (the central meridian) (radians) */
38
+ private _lonN;
39
+ /** The scale factor at the natural origin */
40
+ private _k0;
41
+ /** False easting */
42
+ private _fE;
43
+ /** False northing */
44
+ private _fN;
45
+ /** Forward calculation parameters */
46
+ private _a;
47
+ private _e;
48
+ private _e2;
49
+ private _e4;
50
+ private _e6;
51
+ private _e_2;
52
+ private _m0;
53
+ /** Reverse calculation parameters */
54
+ private _e1;
55
+ private _R1;
56
+ private _R2;
57
+ private _R3;
58
+ private _R4;
59
+ /**
60
+ * Create a new projection.
61
+ * @param parameters the values of the parameters.
62
+ */
63
+ constructor(parameters: ParameterValueList);
64
+ /**
65
+ * Get the power of a number (must be able to handle negative 'n' values).
66
+ */
67
+ private static pow;
68
+ /**
69
+ * Calculate M.
70
+ */
71
+ private calcM;
72
+ /**
73
+ * Initialize the projection.
74
+ * @param ellipsoid the ellipsoid to use.
75
+ * @return this projection (for convenience).
76
+ */
77
+ initializeProjection(ellipsoid: Ellipsoid): TransverseMercator;
78
+ /**
79
+ * Do the projection.
80
+ * @param lon the longitude (radians).
81
+ * @param lat the latitude (radians).
82
+ * @param projected the target projected coordinate (X and Y will be set).
83
+ */
84
+ toProjection(lon: float64, lat: float64, projected: Coordinate): void;
85
+ /**
86
+ * Do the inverse projection.
87
+ * @param x the easting.
88
+ * @param y the northing.
89
+ * @param geographic the target geographic coordinate (X/Lon and Y/Lat will be set) (radians).
90
+ */
91
+ toGeoGraphic(x: float64, y: float64, geographic: Coordinate): void;
92
+ /**
93
+ * OperationMethod method.
94
+ * @see OperationMethod#initialize
95
+ */
96
+ initialize(operation: Operation): void;
97
+ /**
98
+ * OperationMethod interface method.
99
+ * @see OperationMethod#forward
100
+ */
101
+ forward(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void;
102
+ /**
103
+ * OperationMethod interface method.
104
+ * @see OperationMethod#reverse
105
+ */
106
+ reverse(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void;
107
+ }
108
+ export {};
109
+ //# sourceMappingURL=TransverseMercator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransverseMercator.d.ts","sourceRoot":"","sources":["../../../../../src/spatial/ecrs/projection/TransverseMercator.ts"],"names":[],"mappings":"AAIA;;GAEG;AAMH,aAAK,KAAK,GAAG,MAAM,CAAC;AAEpB,aAAK,OAAO,GAAG,MAAM,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;;;;;;;;;;;;;GAgBG;AACH,gBAAgB;AAChB,qBAAa,kBAAmB,SAAQ,eAAe;IACnD,8BAA8B;IAC9B,gBAAuB,WAAW,EAAE,KAAK,CAAQ;IAEjD,sBAAsB;IACtB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAoB;IAE9C,2CAA2C;IAC3C,OAAO,CAAC,KAAK,CAAU;IACvB,mEAAmE;IACnE,OAAO,CAAC,KAAK,CAAU;IACvB,6CAA6C;IAC7C,OAAO,CAAC,GAAG,CAAU;IACrB,oBAAoB;IACpB,OAAO,CAAC,GAAG,CAAU;IACrB,qBAAqB;IACrB,OAAO,CAAC,GAAG,CAAU;IAErB,qCAAqC;IACrC,OAAO,CAAC,EAAE,CAAU;IACpB,OAAO,CAAC,EAAE,CAAU;IACpB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,IAAI,CAAU;IACtB,OAAO,CAAC,GAAG,CAAU;IACrB,qCAAqC;IACrC,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IAErB;;;SAGK;gBACc,UAAU,EAAE,kBAAkB;IAUjD;;SAEK;IACL,OAAO,CAAC,MAAM,CAAC,GAAG;IAMlB;;SAEK;IACL,OAAO,CAAC,KAAK;IAKb;;;;SAIK;IACE,oBAAoB,CAAC,SAAS,EAAE,SAAS,GAAG,kBAAkB;IAuBrE;;;;;SAKK;IACE,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,GAAG,IAAI;IAoB5E;;;;;SAKK;IACE,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI;IA8BzE;;;SAGK;IACW,UAAU,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAItD;;;SAGK;IACE,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;IAS5F;;;SAGK;IACE,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;CAQ/F"}
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module OrbitGT
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.TransverseMercator = void 0;
11
+ const OperationMethod_1 = require("../OperationMethod");
12
+ /**
13
+ * Class TransverseMercator defines a Transverse Mercator projection.
14
+ *
15
+ * The 'source' CRS is the geographic CRS.
16
+ * The 'target' CRS is the projected CRS.
17
+ *
18
+ * Based on the following document:
19
+ *
20
+ * Coordinate Conversions and Transformations including Formulas
21
+ * Guidance Note Number 7, part 2
22
+ * Revised August 2006
23
+ * Available at: http://www.epsg.org/
24
+ *
25
+ * Formulas: see 1.4.5.1: General Case
26
+ *
27
+ * @version 1.0 January 2007
28
+ */
29
+ /** @internal */
30
+ class TransverseMercator extends OperationMethod_1.OperationMethod {
31
+ /**
32
+ * Create a new projection.
33
+ * @param parameters the values of the parameters.
34
+ */
35
+ constructor(parameters) {
36
+ super(TransverseMercator.METHOD_CODE, "Transverse Mercator", parameters);
37
+ /* Store the parameters */
38
+ this._latN = parameters.getValue(8801);
39
+ this._lonN = parameters.getValue(8802);
40
+ this._k0 = parameters.getValue(8805);
41
+ this._fE = parameters.getValue(8806);
42
+ this._fN = parameters.getValue(8807);
43
+ }
44
+ /**
45
+ * Get the power of a number (must be able to handle negative 'n' values).
46
+ */
47
+ static pow(n, e) {
48
+ let p = 1.0;
49
+ for (let i = 0; i < e; i++)
50
+ p *= n;
51
+ return p;
52
+ }
53
+ /**
54
+ * Calculate M.
55
+ */
56
+ calcM(lat) {
57
+ const M = lat * (1.0 - this._e2 / 4 - 3 * this._e4 / 64 - 5 * this._e6 / 256) - Math.sin(2.0 * lat) * (3 * this._e2 / 8 + 3 * this._e4 / 32 + 45 * this._e6 / 1024) + Math.sin(4.0 * lat) * (15 * this._e4 / 256 + 45 * this._e6 / 1024) - Math.sin(6.0 * lat) * (35 * this._e6 / 3072);
58
+ return this._a * M;
59
+ }
60
+ /**
61
+ * Initialize the projection.
62
+ * @param ellipsoid the ellipsoid to use.
63
+ * @return this projection (for convenience).
64
+ */
65
+ initializeProjection(ellipsoid) {
66
+ /* Prepare the forward parameters */
67
+ this._a = ellipsoid.getA();
68
+ this._e = ellipsoid.getE();
69
+ this._e2 = this._e * this._e;
70
+ this._e4 = this._e2 * this._e2;
71
+ this._e6 = this._e2 * this._e4;
72
+ this._e_2 = this._e2 / (1.0 - this._e2);
73
+ this._m0 = this.calcM(this._latN);
74
+ /* Prepare the reverse parameters */
75
+ const temp = Math.sqrt(1 - this._e2);
76
+ this._e1 = (1.0 - temp) / (1.0 + temp);
77
+ const e1_2 = this._e1 * this._e1;
78
+ const e1_3 = this._e1 * e1_2;
79
+ const e1_4 = e1_2 * e1_2;
80
+ this._R1 = (3 * this._e1 / 2 - 27 * e1_3 / 32);
81
+ this._R2 = (21 * e1_2 / 16 - 55 * e1_4 / 32);
82
+ this._R3 = (151 * e1_3 / 96);
83
+ this._R4 = (1097 * e1_4 / 512);
84
+ /* Return the projection */
85
+ return this;
86
+ }
87
+ /**
88
+ * Do the projection.
89
+ * @param lon the longitude (radians).
90
+ * @param lat the latitude (radians).
91
+ * @param projected the target projected coordinate (X and Y will be set).
92
+ */
93
+ toProjection(lon, lat, projected) {
94
+ /* Calculate parameters */
95
+ const tan = Math.tan(lat);
96
+ const T = tan * tan;
97
+ const cos = Math.cos(lat);
98
+ const C = this._e2 * cos * cos / (1.0 - this._e2);
99
+ const A = (lon - this._lonN) * cos;
100
+ const eSin = this._e * Math.sin(lat);
101
+ const v = this._a / Math.sqrt(1.0 - eSin * eSin);
102
+ const m = this.calcM(lat);
103
+ /* Make the calculation */
104
+ const temp1 = A + (1.0 - T + C) * TransverseMercator.pow(A, 3) / 6 + (5 - 18 * T + T * T + 72 * C - 58 * this._e_2) * TransverseMercator.pow(A, 5) / 120.0;
105
+ const E = this._fE + this._k0 * v * (temp1);
106
+ const temp2 = m - this._m0 + v * tan * (A * A / 2 + (5 - T + 9 * C + 4 * C * C) * TransverseMercator.pow(A, 4) / 24.0 + (61 - 58 * T + T * T + 600 * C - 330 * this._e_2) * TransverseMercator.pow(A, 6) / 720.0);
107
+ const N = this._fN + this._k0 * (temp2);
108
+ /* Save the position */
109
+ projected.setX(E);
110
+ projected.setY(N);
111
+ }
112
+ /**
113
+ * Do the inverse projection.
114
+ * @param x the easting.
115
+ * @param y the northing.
116
+ * @param geographic the target geographic coordinate (X/Lon and Y/Lat will be set) (radians).
117
+ */
118
+ toGeoGraphic(x, y, geographic) {
119
+ /* Get the parameters */
120
+ const E = x;
121
+ const N = y;
122
+ /* Calculate parameters */
123
+ const m1 = this._m0 + (N - this._fN) / this._k0;
124
+ const u1 = m1 / (this._a * (1.0 - this._e2 / 4 - 3 * this._e4 / 64 - 5 * this._e6 / 256));
125
+ const lat1 = u1 + this._R1 * Math.sin(2 * u1) + this._R2 * Math.sin(4 * u1) + this._R3 * Math.sin(6 * u1) + this._R4 * Math.sin(8 * u1);
126
+ const eSin1 = this._e * Math.sin(lat1);
127
+ const temp = Math.sqrt(1.0 - eSin1 * eSin1);
128
+ const v1 = this._a / temp;
129
+ const rho1 = this._a * (1.0 - this._e2) / TransverseMercator.pow(temp, 3);
130
+ const tan = Math.tan(lat1);
131
+ const T1 = tan * tan;
132
+ const T1_2 = T1 * T1;
133
+ const cos = Math.cos(lat1);
134
+ const C1 = this._e_2 * cos * cos;
135
+ const C1_2 = C1 * C1;
136
+ const D = (E - this._fE) / (v1 * this._k0);
137
+ const D_2 = D * D;
138
+ /* Make the calculation */
139
+ const temp1 = D_2 / 2 - (5 + 3 * T1 + 10 * C1 - 4 * C1_2 - 9 * this._e_2) * TransverseMercator.pow(D, 4) / 24.0 + (61 + 90 * T1 + 298 * C1 + 45 * T1_2 - 252 * this._e_2 - 3 * C1_2) * TransverseMercator.pow(D, 6) / 720.0;
140
+ const lat = lat1 - (v1 * tan / rho1) * (temp1);
141
+ const temp2 = D - (1 + 2 * T1 + C1) * TransverseMercator.pow(D, 3) / 6 + (5 - 2 * C1 + 28 * T1 - 3 * C1_2 + 8 * this._e_2 + 24 * T1_2) * TransverseMercator.pow(D, 5) / 120;
142
+ const lon = this._lonN + (temp2) / cos;
143
+ /* Save the position */
144
+ geographic.setX(lon);
145
+ geographic.setY(lat);
146
+ }
147
+ /**
148
+ * OperationMethod method.
149
+ * @see OperationMethod#initialize
150
+ */
151
+ initialize(operation) {
152
+ this.initializeProjection(operation.getSourceCRS().getEllipsoid()); // should this use getTargetCRS? (while testing OSTN15 RoI)
153
+ }
154
+ /**
155
+ * OperationMethod interface method.
156
+ * @see OperationMethod#forward
157
+ */
158
+ forward(sourceCRS, source, targetCRS, target) {
159
+ /* Get the parameters */
160
+ const lon = source.getX();
161
+ const lat = source.getY();
162
+ /* Do the projection */
163
+ this.toProjection(lon, lat, target);
164
+ target.setZ(source.getZ()); // Copy the Z value
165
+ }
166
+ /**
167
+ * OperationMethod interface method.
168
+ * @see OperationMethod#reverse
169
+ */
170
+ reverse(sourceCRS, source, targetCRS, target) {
171
+ /* Get the parameters */
172
+ const E = target.getX();
173
+ const N = target.getY();
174
+ /* Do the inverse projection */
175
+ this.toGeoGraphic(E, N, source);
176
+ source.setZ(target.getZ()); // Copy the Z value
177
+ }
178
+ }
179
+ exports.TransverseMercator = TransverseMercator;
180
+ /** The code of this method */
181
+ TransverseMercator.METHOD_CODE = 9807;
182
+ /** The value of PI */
183
+ TransverseMercator.PI = Math.PI;
184
+ //# sourceMappingURL=TransverseMercator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransverseMercator.js","sourceRoot":"","sources":["../../../../../src/spatial/ecrs/projection/TransverseMercator.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAcH,wDAAqD;AAGrD;;;;;;;;;;;;;;;;GAgBG;AACH,gBAAgB;AAChB,MAAa,kBAAmB,SAAQ,iCAAe;IAiCnD;;;SAGK;IACL,YAAmB,UAA8B;QAC7C,KAAK,CAAC,kBAAkB,CAAC,WAAW,EAAE,qBAAqB,EAAE,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AI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,mBAAmB;IACnD,CAAC;;AA1LL,gDA2LC;AA1LG,8BAA8B;AACP,8BAAW,GAAU,IAAI,CAAC;AAEjD,sBAAsB;AACE,qBAAE,GAAY,IAAI,CAAC,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n// package orbitgt.spatial.ecrs.projection;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../../geom/Coordinate\";\r\nimport { CRS } from \"../CRS\";\r\nimport { Ellipsoid } from \"../Ellipsoid\";\r\nimport { Operation } from \"../Operation\";\r\nimport { OperationMethod } from \"../OperationMethod\";\r\nimport { ParameterValueList } from \"../ParameterValueList\";\r\n\r\n/**\r\n * Class TransverseMercator defines a Transverse Mercator projection.\r\n *\r\n * The 'source' CRS is the geographic CRS.\r\n * The 'target' CRS is the projected CRS.\r\n *\r\n * Based on the following document:\r\n *\r\n * Coordinate Conversions and Transformations including Formulas\r\n * Guidance Note Number 7, part 2\r\n * Revised August 2006\r\n * Available at: http://www.epsg.org/\r\n *\r\n * Formulas: see 1.4.5.1: General Case\r\n *\r\n * @version 1.0 January 2007\r\n */\r\n/** @internal */\r\nexport class TransverseMercator extends OperationMethod {\r\n /** The code of this method */\r\n public static readonly METHOD_CODE: int32 = 9807;\r\n\r\n /** The value of PI */\r\n private static readonly PI: float64 = Math.PI;\r\n\r\n /** Latitude of natural origin (radians) */\r\n private _latN: float64;\r\n /** Longitude of natural origin (the central meridian) (radians) */\r\n private _lonN: float64;\r\n /** The scale factor at the natural origin */\r\n private _k0: float64;\r\n /** False easting */\r\n private _fE: float64;\r\n /** False northing */\r\n private _fN: float64;\r\n\r\n /** Forward calculation parameters */\r\n private _a: float64;\r\n private _e: float64;\r\n private _e2: float64;\r\n private _e4: float64;\r\n private _e6: float64;\r\n private _e_2: float64;\r\n private _m0: float64;\r\n /** Reverse calculation parameters */\r\n private _e1: float64;\r\n private _R1: float64;\r\n private _R2: float64;\r\n private _R3: float64;\r\n private _R4: float64;\r\n\r\n /**\r\n * Create a new projection.\r\n * @param parameters the values of the parameters.\r\n */\r\n public constructor(parameters: ParameterValueList) {\r\n super(TransverseMercator.METHOD_CODE, \"Transverse Mercator\", parameters);\r\n /* Store the parameters */\r\n this._latN = parameters.getValue(8801);\r\n this._lonN = parameters.getValue(8802);\r\n this._k0 = parameters.getValue(8805);\r\n this._fE = parameters.getValue(8806);\r\n this._fN = parameters.getValue(8807);\r\n }\r\n\r\n /**\r\n * Get the power of a number (must be able to handle negative 'n' values).\r\n */\r\n private static pow(n: float64, e: int32): float64 {\r\n let p: float64 = 1.0;\r\n for (let i: number = 0; i < e; i++) p *= n;\r\n return p;\r\n }\r\n\r\n /**\r\n * Calculate M.\r\n */\r\n private calcM(lat: float64): float64 {\r\n const M: float64 = lat * (1.0 - this._e2 / 4 - 3 * this._e4 / 64 - 5 * this._e6 / 256) - Math.sin(2.0 * lat) * (3 * this._e2 / 8 + 3 * this._e4 / 32 + 45 * this._e6 / 1024) + Math.sin(4.0 * lat) * (15 * this._e4 / 256 + 45 * this._e6 / 1024) - Math.sin(6.0 * lat) * (35 * this._e6 / 3072);\r\n return this._a * M;\r\n }\r\n\r\n /**\r\n * Initialize the projection.\r\n * @param ellipsoid the ellipsoid to use.\r\n * @return this projection (for convenience).\r\n */\r\n public initializeProjection(ellipsoid: Ellipsoid): TransverseMercator {\r\n /* Prepare the forward parameters */\r\n this._a = ellipsoid.getA();\r\n this._e = ellipsoid.getE();\r\n this._e2 = this._e * this._e;\r\n this._e4 = this._e2 * this._e2;\r\n this._e6 = this._e2 * this._e4;\r\n this._e_2 = this._e2 / (1.0 - this._e2);\r\n this._m0 = this.calcM(this._latN);\r\n /* Prepare the reverse parameters */\r\n const temp: float64 = Math.sqrt(1 - this._e2);\r\n this._e1 = (1.0 - temp) / (1.0 + temp);\r\n const e1_2: float64 = this._e1 * this._e1;\r\n const e1_3: float64 = this._e1 * e1_2;\r\n const e1_4: float64 = e1_2 * e1_2;\r\n this._R1 = (3 * this._e1 / 2 - 27 * e1_3 / 32);\r\n this._R2 = (21 * e1_2 / 16 - 55 * e1_4 / 32);\r\n this._R3 = (151 * e1_3 / 96);\r\n this._R4 = (1097 * e1_4 / 512);\r\n /* Return the projection */\r\n return this;\r\n }\r\n\r\n /**\r\n * Do the projection.\r\n * @param lon the longitude (radians).\r\n * @param lat the latitude (radians).\r\n * @param projected the target projected coordinate (X and Y will be set).\r\n */\r\n public toProjection(lon: float64, lat: float64, projected: Coordinate): void {\r\n /* Calculate parameters */\r\n const tan: float64 = Math.tan(lat);\r\n const T: float64 = tan * tan;\r\n const cos: float64 = Math.cos(lat);\r\n const C: float64 = this._e2 * cos * cos / (1.0 - this._e2);\r\n const A: float64 = (lon - this._lonN) * cos;\r\n const eSin: float64 = this._e * Math.sin(lat);\r\n const v: float64 = this._a / Math.sqrt(1.0 - eSin * eSin);\r\n const m: float64 = this.calcM(lat);\r\n /* Make the calculation */\r\n const temp1: float64 = A + (1.0 - T + C) * TransverseMercator.pow(A, 3) / 6 + (5 - 18 * T + T * T + 72 * C - 58 * this._e_2) * TransverseMercator.pow(A, 5) / 120.0;\r\n const E: float64 = this._fE + this._k0 * v * (temp1);\r\n const temp2: float64 = m - this._m0 + v * tan * (A * A / 2 + (5 - T + 9 * C + 4 * C * C) * TransverseMercator.pow(A, 4) / 24.0 + (61 - 58 * T + T * T + 600 * C - 330 * this._e_2) * TransverseMercator.pow(A, 6) / 720.0);\r\n const N: float64 = this._fN + this._k0 * (temp2);\r\n /* Save the position */\r\n projected.setX(E);\r\n projected.setY(N);\r\n }\r\n\r\n /**\r\n * Do the inverse projection.\r\n * @param x the easting.\r\n * @param y the northing.\r\n * @param geographic the target geographic coordinate (X/Lon and Y/Lat will be set) (radians).\r\n */\r\n public toGeoGraphic(x: float64, y: float64, geographic: Coordinate): void {\r\n /* Get the parameters */\r\n const E: float64 = x;\r\n const N: float64 = y;\r\n /* Calculate parameters */\r\n const m1: float64 = this._m0 + (N - this._fN) / this._k0;\r\n const u1: float64 = m1 / (this._a * (1.0 - this._e2 / 4 - 3 * this._e4 / 64 - 5 * this._e6 / 256));\r\n const lat1: float64 = u1 + this._R1 * Math.sin(2 * u1) + this._R2 * Math.sin(4 * u1) + this._R3 * Math.sin(6 * u1) + this._R4 * Math.sin(8 * u1);\r\n const eSin1: float64 = this._e * Math.sin(lat1);\r\n const temp: float64 = Math.sqrt(1.0 - eSin1 * eSin1);\r\n const v1: float64 = this._a / temp;\r\n const rho1: float64 = this._a * (1.0 - this._e2) / TransverseMercator.pow(temp, 3);\r\n const tan: float64 = Math.tan(lat1);\r\n const T1: float64 = tan * tan;\r\n const T1_2: float64 = T1 * T1;\r\n const cos: float64 = Math.cos(lat1);\r\n const C1: float64 = this._e_2 * cos * cos;\r\n const C1_2: float64 = C1 * C1;\r\n const D: float64 = (E - this._fE) / (v1 * this._k0);\r\n const D_2: float64 = D * D;\r\n /* Make the calculation */\r\n const temp1: float64 = D_2 / 2 - (5 + 3 * T1 + 10 * C1 - 4 * C1_2 - 9 * this._e_2) * TransverseMercator.pow(D, 4) / 24.0 + (61 + 90 * T1 + 298 * C1 + 45 * T1_2 - 252 * this._e_2 - 3 * C1_2) * TransverseMercator.pow(D, 6) / 720.0;\r\n const lat: float64 = lat1 - (v1 * tan / rho1) * (temp1);\r\n const temp2: float64 = D - (1 + 2 * T1 + C1) * TransverseMercator.pow(D, 3) / 6 + (5 - 2 * C1 + 28 * T1 - 3 * C1_2 + 8 * this._e_2 + 24 * T1_2) * TransverseMercator.pow(D, 5) / 120;\r\n const lon: float64 = this._lonN + (temp2) / cos;\r\n /* Save the position */\r\n geographic.setX(lon);\r\n geographic.setY(lat);\r\n }\r\n\r\n /**\r\n * OperationMethod method.\r\n * @see OperationMethod#initialize\r\n */\r\n public override initialize(operation: Operation): void {\r\n this.initializeProjection(operation.getSourceCRS().getEllipsoid()); // should this use getTargetCRS? (while testing OSTN15 RoI)\r\n }\r\n\r\n /**\r\n * OperationMethod interface method.\r\n * @see OperationMethod#forward\r\n */\r\n public forward(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void {\r\n /* Get the parameters */\r\n const lon: float64 = source.getX();\r\n const lat: float64 = source.getY();\r\n /* Do the projection */\r\n this.toProjection(lon, lat, target);\r\n target.setZ(source.getZ()); // Copy the Z value\r\n }\r\n\r\n /**\r\n * OperationMethod interface method.\r\n * @see OperationMethod#reverse\r\n */\r\n public reverse(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void {\r\n /* Get the parameters */\r\n const E: float64 = target.getX();\r\n const N: float64 = target.getY();\r\n /* Do the inverse projection */\r\n this.toGeoGraphic(E, N, source);\r\n source.setZ(target.getZ()); // Copy the Z value\r\n }\r\n}\r\n"]}
@@ -0,0 +1,91 @@
1
+ /** @packageDocumentation
2
+ * @module OrbitGT
3
+ */
4
+ declare type int32 = number;
5
+ declare type float64 = number;
6
+ import { Coordinate } from "../../geom/Coordinate";
7
+ import { CRS } from "../CRS";
8
+ import { OperationMethod } from "../OperationMethod";
9
+ import { ParameterValueList } from "../ParameterValueList";
10
+ /**
11
+ * Class PositionVector defines a Position Vector 7-parameter transformation (see Guidance Note 2.4.3.2.1).
12
+ *
13
+ * NOTE: this method is also known as "Bursa-Wolf".
14
+ *
15
+ * Based on the following document:
16
+ *
17
+ * Coordinate Conversions and Transformations including Formulas
18
+ * Guidance Note Number 7, part 2
19
+ * Revised May 2005
20
+ * Available at: http://www.epsg.org/
21
+ *
22
+ * Used in Europe. To convert to "Coordinate Frame Rotation" inverse the sign of the three rotations.
23
+ *
24
+ * @version 1.0 July 2005
25
+ */
26
+ /** @internal */
27
+ export declare class PositionVector extends OperationMethod {
28
+ /** The code of this method */
29
+ static readonly METHOD_CODE: int32;
30
+ /** The translation vector */
31
+ private _dX;
32
+ private _dY;
33
+ private _dZ;
34
+ /** The rotations (radians) */
35
+ private _rX;
36
+ private _rY;
37
+ private _rZ;
38
+ /** The scale factor (offset from 1.0) */
39
+ private _dS;
40
+ /**
41
+ * Create a new transformation.
42
+ * @param parameters the values of the parameters.
43
+ */
44
+ constructor(parameters: ParameterValueList);
45
+ /**
46
+ * Create a new transformation.
47
+ * @param dX the translation vector x.
48
+ * @param dY the translation vector y.
49
+ * @param dZ the translation vector z.
50
+ * @param rX the first rotation (radians).
51
+ * @param rY the second rotation (radians).
52
+ * @param rZ the third rotation (radians).
53
+ * @param dS the scale factor (offset from 1.0) (normal units, not ppm).
54
+ * @return the new transformation.
55
+ */
56
+ static create(dX: float64, dY: float64, dZ: float64, rX: float64, rY: float64, rZ: float64, dS: float64): PositionVector;
57
+ /**
58
+ * Get the 7 parameters of the method.
59
+ * @return the parameters of the method {dX,dY,dZ,rX,rY,rZ,dS} in units {meter,meter,meter, radian,radian,radian, scale_offset-1}.
60
+ */
61
+ getParameters(): Float64Array;
62
+ /**
63
+ * Make a forward transformation.
64
+ * @param source the source coordinate (the coordinate to transform).
65
+ * @param target the target coordinate (holds the result).
66
+ */
67
+ transformForward(source: Coordinate, target: Coordinate): void;
68
+ /**
69
+ * Make a reverse transformation.
70
+ * @param source the source coordinate (holds the result).
71
+ * @param target the target coordinate (the coordinate to transform).
72
+ */
73
+ transformReverse(source: Coordinate, target: Coordinate): void;
74
+ /**
75
+ * OperationMethod interface method.
76
+ * @see OperationMethod#forward
77
+ */
78
+ forward(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void;
79
+ /**
80
+ * OperationMethod interface method.
81
+ * @see OperationMethod#reverse
82
+ */
83
+ reverse(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void;
84
+ /**
85
+ * Create an inverse transformation.
86
+ * @return the inverse transformation.
87
+ */
88
+ createInverse(): PositionVector;
89
+ }
90
+ export {};
91
+ //# sourceMappingURL=PositionVector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PositionVector.d.ts","sourceRoot":"","sources":["../../../../../src/spatial/ecrs/transformation/PositionVector.ts"],"names":[],"mappings":"AAIA;;GAEG;AAMH,aAAK,KAAK,GAAG,MAAM,CAAC;AAEpB,aAAK,OAAO,GAAG,MAAM,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;;;;;;;;;;;;;;GAeG;AACH,gBAAgB;AAChB,qBAAa,cAAe,SAAQ,eAAe;IAC/C,8BAA8B;IAC9B,gBAAuB,WAAW,EAAE,KAAK,CAAQ;IAEjD,6BAA6B;IAC7B,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,8BAA8B;IAC9B,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,OAAO,CAAC,GAAG,CAAU;IACrB,yCAAyC;IACzC,OAAO,CAAC,GAAG,CAAU;IAErB;;;OAGG;gBACgB,UAAU,EAAE,kBAAkB;IAYjD;;;;;;;;;;OAUG;WACW,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,cAAc;IAY/H;;;OAGG;IACI,aAAa,IAAI,YAAY;IAYpC;;;;OAIG;IACI,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;IAUrE;;;;OAIG;IACI,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;IAIrE;;;OAGG;IACI,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;IAI5F;;;OAGG;IACI,OAAO,CAAC,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,GAAG,IAAI;IAI5F;;;OAGG;IACI,aAAa,IAAI,cAAc;CAGzC"}
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module OrbitGT
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.PositionVector = void 0;
11
+ const OperationMethod_1 = require("../OperationMethod");
12
+ const ParameterValue_1 = require("../ParameterValue");
13
+ const ParameterValueList_1 = require("../ParameterValueList");
14
+ /**
15
+ * Class PositionVector defines a Position Vector 7-parameter transformation (see Guidance Note 2.4.3.2.1).
16
+ *
17
+ * NOTE: this method is also known as "Bursa-Wolf".
18
+ *
19
+ * Based on the following document:
20
+ *
21
+ * Coordinate Conversions and Transformations including Formulas
22
+ * Guidance Note Number 7, part 2
23
+ * Revised May 2005
24
+ * Available at: http://www.epsg.org/
25
+ *
26
+ * Used in Europe. To convert to "Coordinate Frame Rotation" inverse the sign of the three rotations.
27
+ *
28
+ * @version 1.0 July 2005
29
+ */
30
+ /** @internal */
31
+ class PositionVector extends OperationMethod_1.OperationMethod {
32
+ /**
33
+ * Create a new transformation.
34
+ * @param parameters the values of the parameters.
35
+ */
36
+ constructor(parameters) {
37
+ super(PositionVector.METHOD_CODE, "Position Vector 7-param. transformation", parameters);
38
+ /* Store the parameters */
39
+ this._dX = parameters.getValue(8605);
40
+ this._dY = parameters.getValue(8606);
41
+ this._dZ = parameters.getValue(8607);
42
+ this._rX = parameters.getValue(8608);
43
+ this._rY = parameters.getValue(8609);
44
+ this._rZ = parameters.getValue(8610);
45
+ this._dS = parameters.getValue(8611);
46
+ }
47
+ /**
48
+ * Create a new transformation.
49
+ * @param dX the translation vector x.
50
+ * @param dY the translation vector y.
51
+ * @param dZ the translation vector z.
52
+ * @param rX the first rotation (radians).
53
+ * @param rY the second rotation (radians).
54
+ * @param rZ the third rotation (radians).
55
+ * @param dS the scale factor (offset from 1.0) (normal units, not ppm).
56
+ * @return the new transformation.
57
+ */
58
+ static create(dX, dY, dZ, rX, rY, rZ, dS) {
59
+ let parameters = new ParameterValueList_1.ParameterValueList();
60
+ parameters.add(new ParameterValue_1.ParameterValue(8605, dX, null));
61
+ parameters.add(new ParameterValue_1.ParameterValue(8606, dY, null));
62
+ parameters.add(new ParameterValue_1.ParameterValue(8607, dZ, null));
63
+ parameters.add(new ParameterValue_1.ParameterValue(8608, rX, null));
64
+ parameters.add(new ParameterValue_1.ParameterValue(8609, rY, null));
65
+ parameters.add(new ParameterValue_1.ParameterValue(8610, rZ, null));
66
+ parameters.add(new ParameterValue_1.ParameterValue(8611, dS, null));
67
+ return new PositionVector(parameters);
68
+ }
69
+ /**
70
+ * Get the 7 parameters of the method.
71
+ * @return the parameters of the method {dX,dY,dZ,rX,rY,rZ,dS} in units {meter,meter,meter, radian,radian,radian, scale_offset-1}.
72
+ */
73
+ getParameters() {
74
+ let parameters = new Float64Array(7);
75
+ parameters[0] = this._dX;
76
+ parameters[1] = this._dY;
77
+ parameters[2] = this._dZ;
78
+ parameters[3] = this._rX;
79
+ parameters[4] = this._rY;
80
+ parameters[5] = this._rZ;
81
+ parameters[6] = this._dS;
82
+ return parameters;
83
+ }
84
+ /**
85
+ * Make a forward transformation.
86
+ * @param source the source coordinate (the coordinate to transform).
87
+ * @param target the target coordinate (holds the result).
88
+ */
89
+ transformForward(source, target) {
90
+ let x = source.getX();
91
+ let y = source.getY();
92
+ let z = source.getZ();
93
+ let m = (1.0 + this._dS);
94
+ target.setX(m * (1.0 * x - this._rZ * y + this._rY * z) + this._dX);
95
+ target.setY(m * (this._rZ * x + 1.0 * y - this._rX * z) + this._dY);
96
+ target.setZ(m * (-this._rY * x + this._rX * y + 1.0 * z) + this._dZ);
97
+ }
98
+ /**
99
+ * Make a reverse transformation.
100
+ * @param source the source coordinate (holds the result).
101
+ * @param target the target coordinate (the coordinate to transform).
102
+ */
103
+ transformReverse(source, target) {
104
+ this.createInverse().transformForward(target, source);
105
+ }
106
+ /**
107
+ * OperationMethod interface method.
108
+ * @see OperationMethod#forward
109
+ */
110
+ forward(sourceCRS, source, targetCRS, target) {
111
+ this.transformForward(source, target);
112
+ }
113
+ /**
114
+ * OperationMethod interface method.
115
+ * @see OperationMethod#reverse
116
+ */
117
+ reverse(sourceCRS, source, targetCRS, target) {
118
+ this.transformReverse(source, target);
119
+ }
120
+ /**
121
+ * Create an inverse transformation.
122
+ * @return the inverse transformation.
123
+ */
124
+ createInverse() {
125
+ return PositionVector.create(-this._dX, -this._dY, -this._dZ, -this._rX, -this._rY, -this._rZ, -this._dS);
126
+ }
127
+ }
128
+ exports.PositionVector = PositionVector;
129
+ /** The code of this method */
130
+ PositionVector.METHOD_CODE = 9606;
131
+ //# sourceMappingURL=PositionVector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PositionVector.js","sourceRoot":"","sources":["../../../../../src/spatial/ecrs/transformation/PositionVector.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAYH,wDAAqD;AACrD,sDAAmD;AACnD,8DAA2D;AAE3D;;;;;;;;;;;;;;;GAeG;AACH,gBAAgB;AAChB,MAAa,cAAe,SAAQ,iC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AC,CAAC;IAC9G,CAAC;;AApHL,wCAqHC;AApHG,8BAA8B;AACP,0BAAW,GAAU,IAAI,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.spatial.ecrs.transformation;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../../geom/Coordinate\";\r\nimport { CRS } from \"../CRS\";\r\nimport { OperationMethod } from \"../OperationMethod\";\r\nimport { ParameterValue } from \"../ParameterValue\";\r\nimport { ParameterValueList } from \"../ParameterValueList\";\r\n\r\n/**\r\n * Class PositionVector defines a Position Vector 7-parameter transformation (see Guidance Note 2.4.3.2.1).\r\n *\r\n * NOTE: this method is also known as \"Bursa-Wolf\".\r\n *\r\n * Based on the following document:\r\n *\r\n * Coordinate Conversions and Transformations including Formulas\r\n * Guidance Note Number 7, part 2\r\n * Revised May 2005\r\n * Available at: http://www.epsg.org/\r\n *\r\n * Used in Europe. To convert to \"Coordinate Frame Rotation\" inverse the sign of the three rotations.\r\n *\r\n * @version 1.0 July 2005\r\n */\r\n/** @internal */\r\nexport class PositionVector extends OperationMethod {\r\n /** The code of this method */\r\n public static readonly METHOD_CODE: int32 = 9606;\r\n\r\n /** The translation vector */\r\n private _dX: float64;\r\n private _dY: float64;\r\n private _dZ: float64;\r\n /** The rotations (radians) */\r\n private _rX: float64;\r\n private _rY: float64;\r\n private _rZ: float64;\r\n /** The scale factor (offset from 1.0) */\r\n private _dS: float64;\r\n\r\n /**\r\n * Create a new transformation.\r\n * @param parameters the values of the parameters.\r\n */\r\n public constructor(parameters: ParameterValueList) {\r\n super(PositionVector.METHOD_CODE, \"Position Vector 7-param. transformation\", parameters);\r\n /* Store the parameters */\r\n this._dX = parameters.getValue(8605);\r\n this._dY = parameters.getValue(8606);\r\n this._dZ = parameters.getValue(8607);\r\n this._rX = parameters.getValue(8608);\r\n this._rY = parameters.getValue(8609);\r\n this._rZ = parameters.getValue(8610);\r\n this._dS = parameters.getValue(8611);\r\n }\r\n\r\n /**\r\n * Create a new transformation.\r\n * @param dX the translation vector x.\r\n * @param dY the translation vector y.\r\n * @param dZ the translation vector z.\r\n * @param rX the first rotation (radians).\r\n * @param rY the second rotation (radians).\r\n * @param rZ the third rotation (radians).\r\n * @param dS the scale factor (offset from 1.0) (normal units, not ppm).\r\n * @return the new transformation.\r\n */\r\n public static create(dX: float64, dY: float64, dZ: float64, rX: float64, rY: float64, rZ: float64, dS: float64): PositionVector {\r\n let parameters: ParameterValueList = new ParameterValueList();\r\n parameters.add(new ParameterValue(8605, dX, null));\r\n parameters.add(new ParameterValue(8606, dY, null));\r\n parameters.add(new ParameterValue(8607, dZ, null));\r\n parameters.add(new ParameterValue(8608, rX, null));\r\n parameters.add(new ParameterValue(8609, rY, null));\r\n parameters.add(new ParameterValue(8610, rZ, null));\r\n parameters.add(new ParameterValue(8611, dS, null));\r\n return new PositionVector(parameters);\r\n }\r\n\r\n /**\r\n * Get the 7 parameters of the method.\r\n * @return the parameters of the method {dX,dY,dZ,rX,rY,rZ,dS} in units {meter,meter,meter, radian,radian,radian, scale_offset-1}.\r\n */\r\n public getParameters(): Float64Array {\r\n let parameters: Float64Array = new Float64Array(7);\r\n parameters[0] = this._dX;\r\n parameters[1] = this._dY;\r\n parameters[2] = this._dZ;\r\n parameters[3] = this._rX;\r\n parameters[4] = this._rY;\r\n parameters[5] = this._rZ;\r\n parameters[6] = this._dS;\r\n return parameters;\r\n }\r\n\r\n /**\r\n * Make a forward transformation.\r\n * @param source the source coordinate (the coordinate to transform).\r\n * @param target the target coordinate (holds the result).\r\n */\r\n public transformForward(source: Coordinate, target: Coordinate): void {\r\n let x: float64 = source.getX();\r\n let y: float64 = source.getY();\r\n let z: float64 = source.getZ();\r\n let m: float64 = (1.0 + this._dS);\r\n target.setX(m * (1.0 * x - this._rZ * y + this._rY * z) + this._dX);\r\n target.setY(m * (this._rZ * x + 1.0 * y - this._rX * z) + this._dY);\r\n target.setZ(m * (-this._rY * x + this._rX * y + 1.0 * z) + this._dZ);\r\n }\r\n\r\n /**\r\n * Make a reverse transformation.\r\n * @param source the source coordinate (holds the result).\r\n * @param target the target coordinate (the coordinate to transform).\r\n */\r\n public transformReverse(source: Coordinate, target: Coordinate): void {\r\n this.createInverse().transformForward(target, source);\r\n }\r\n\r\n /**\r\n * OperationMethod interface method.\r\n * @see OperationMethod#forward\r\n */\r\n public forward(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void {\r\n this.transformForward(source, target);\r\n }\r\n\r\n /**\r\n * OperationMethod interface method.\r\n * @see OperationMethod#reverse\r\n */\r\n public reverse(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void {\r\n this.transformReverse(source, target);\r\n }\r\n\r\n /**\r\n * Create an inverse transformation.\r\n * @return the inverse transformation.\r\n */\r\n public createInverse(): PositionVector {\r\n return PositionVector.create(-this._dX, -this._dY, -this._dZ, -this._rX, -this._rY, -this._rZ, -this._dS);\r\n }\r\n}\r\n"]}