@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,189 @@
1
+ /** @packageDocumentation
2
+ * @module OrbitGT
3
+ */
4
+ declare type int32 = number;
5
+ declare type float64 = number;
6
+ import { Coordinate } from "../geom/Coordinate";
7
+ /**
8
+ * Class Ellipsoid defines the parameters of an earth ellipsoid.
9
+ *
10
+ * Based on the following document:
11
+ *
12
+ * Coordinate Conversions and Transformations including Formulas
13
+ * Guidance Note Number 7, part 2
14
+ * Revised May 2005
15
+ * Available at: http://www.epsg.org/
16
+ *
17
+ * Geocentric coordinates are defined as follows:
18
+ * The point (0,0,0) denotes the center of the ellipsoid. The z-axis is defined as being parallel to the earth rotational axis, pointing towards north.
19
+ * The x-axis intersects the ellipsoid at the 0 deg latitude, 0 deg longitude point.
20
+ *
21
+ * @version 1.0 July 2005
22
+ */
23
+ /** @internal */
24
+ export declare class Ellipsoid {
25
+ /** The code */
26
+ private _code;
27
+ /** The name */
28
+ private _name;
29
+ /** The code of the unit of measure */
30
+ private _unitCode;
31
+ /** Semi-major axis (meter) */
32
+ private _a;
33
+ /** Semi-minor axis (meter) (derived) */
34
+ private _b;
35
+ /** Flattening (derived) */
36
+ private _f;
37
+ /** Inverse flattening */
38
+ private _invF;
39
+ /** Eccentricity (derived) */
40
+ private _e;
41
+ /** Eccentricity squared (derived) */
42
+ private _e2;
43
+ /**
44
+ * Create a new ellipsoid.
45
+ * @param code the code.
46
+ * @param name the name.
47
+ * @param unitCode the code of the unit of measure.
48
+ * @param a the semi-major axis.
49
+ * @param invF the inverse flattening (value like 300, not like 1/300).
50
+ * @param b the semi-minor axis.
51
+ */
52
+ constructor(code: int32, name: string, unitCode: int32, a: float64, invF: float64, b: float64);
53
+ /**
54
+ * Get the code.
55
+ * @return the code.
56
+ */
57
+ getCode(): int32;
58
+ /**
59
+ * Get the name.
60
+ * @return the name.
61
+ */
62
+ getName(): string;
63
+ /**
64
+ * Get the code of the unit of measure.
65
+ * @return the code of the unit of measure.
66
+ */
67
+ getUnitCode(): int32;
68
+ /**
69
+ * Get the semi-major axis (in meter).
70
+ * @return the semi-major axis.
71
+ */
72
+ getA(): float64;
73
+ /**
74
+ * Get the semi-minor axis (in meter).
75
+ * @return the semi-minor axis.
76
+ */
77
+ getB(): float64;
78
+ /**
79
+ * Get the flattening.
80
+ * @return the flattening.
81
+ */
82
+ getF(): float64;
83
+ /**
84
+ * Get the inverse flattening.
85
+ * @return the inverse flattening.
86
+ */
87
+ getInvF(): float64;
88
+ /**
89
+ * Get the eccentricity.
90
+ * @return the eccentricity.
91
+ */
92
+ getE(): float64;
93
+ /**
94
+ * Get the radius of curvature of the ellipsoid in the plane of the meridian at a given latitude (how latitude curves).
95
+ * @param lat the latitude (in radians).
96
+ * @return a radius (in meter).
97
+ */
98
+ getMeridianRadius(lat: float64): float64;
99
+ /**
100
+ * Get the radius of the circle defined by all points at a certain latitude (a circle of latitude, also called a parallel) (a at latitude 0, 0 at latitude 90) (how longitude curves).
101
+ * @param lat the latitude (in radians).
102
+ * @return a radius (in meter).
103
+ */
104
+ getParallelRadius(lat: float64): float64;
105
+ /**
106
+ * Get the radius of curvature of the ellipsoid perpendicular to the meridian at a given latitude (a at latitude 0, a*a/b at latitude 90).
107
+ * @param lat the latitude (in radians).
108
+ * @return a radius (in meter).
109
+ */
110
+ getPrimeVerticalRadius(lat: float64): float64;
111
+ /**
112
+ * Get the radius of curvature of the ellipsoid perpendicular to the meridian at a given latitude (a at latitude 0, a*a/b at latitude 90).
113
+ * @param lat the latitude (in radians).
114
+ * @param sinLat the sinus of the latitude.
115
+ * @return a radius (in meter).
116
+ */
117
+ private getPrimeVerticalRadius2;
118
+ /**
119
+ * Get the number of meter per radian of longitude.
120
+ * @param lat the latitude (in radians).
121
+ * @return the number of meter per radian.
122
+ */
123
+ getMeterPerRadOfLon(lat: float64): float64;
124
+ /**
125
+ * Get the number of meter per degree of longitude.
126
+ * @param lat the latitude (in radians).
127
+ * @return the number of meter per degree.
128
+ */
129
+ getMeterPerDegreeOfLon(lat: float64): float64;
130
+ /**
131
+ * Get the number of meter per radian of latitude.
132
+ * @param lat the latitude (in radians).
133
+ * @return the number of meter per radian.
134
+ */
135
+ getMeterPerRadOfLat(lat: float64): float64;
136
+ /**
137
+ * Get the number of meter per degree of latitude.
138
+ * @param lat the latitude (in radians).
139
+ * @return the number of meter per degree.
140
+ */
141
+ getMeterPerDegreeOfLat(lat: float64): float64;
142
+ /**
143
+ * Calculate the secant.
144
+ * @param v an angle (in radians).
145
+ * @return the secant.
146
+ */
147
+ private static sec;
148
+ /**
149
+ * Convert 3D geographic coordinates to 3D geocentric coordinates.
150
+ * See the EPSG Guidance Note, 2.2.1
151
+ * @param geographic the geographic coordinates (lon(x) and lat(y) in radians, height(z) in meter).
152
+ * @param geocentric the new geocentric coordinates (in meter) (the result object).
153
+ */
154
+ toGeoCentric(geographic: Coordinate, geocentric: Coordinate): void;
155
+ /**
156
+ * Convert 3D geographic coordinates to 3D geocentric coordinates.
157
+ * See the EPSG Guidance Note, 2.2.1
158
+ * @param geographic the geographic coordinates (lon(x) and lat(y) in degrees, height(z) in meter).
159
+ * @param geocentric the new geocentric coordinates (in meter) (the result object).
160
+ */
161
+ toGeoCentricDeg(geographic: Coordinate, geocentric: Coordinate): void;
162
+ /**
163
+ * Convert 3D geocentric coordinates to 3D geographic coordinates.
164
+ * See the EPSG Guidance Note, 2.2.1
165
+ * @param geocentric the geocentric coordinates (in meter).
166
+ * @param geographic the new geographic coordinates (lon(x) and lat(y) in radians, height(z) in meter) (the result object).
167
+ */
168
+ toGeoGraphic(geocentric: Coordinate, geographic: Coordinate): void;
169
+ /**
170
+ * Convert 3D geocentric coordinates to 3D geographic coordinates.
171
+ * See the EPSG Guidance Note, 2.2.1
172
+ * @param geocentric the geocentric coordinates (in meter).
173
+ * @param geographic the new geographic coordinates (lon(x) and lat(y) in degrees, height(z) in meter) (the result object).
174
+ */
175
+ toGeoGraphicDeg(geocentric: Coordinate, geographic: Coordinate): void;
176
+ /**
177
+ * Check if another ellipsoid is compatible with this one.
178
+ * @param other the other ellipsoid.
179
+ * @return true if compatible.
180
+ */
181
+ isCompatible(other: Ellipsoid): boolean;
182
+ /**
183
+ * The standard toString method.
184
+ * @see Object#toString
185
+ */
186
+ toString(): string;
187
+ }
188
+ export {};
189
+ //# sourceMappingURL=Ellipsoid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ellipsoid.d.ts","sourceRoot":"","sources":["../../../../src/spatial/ecrs/Ellipsoid.ts"],"names":[],"mappings":"AAIA;;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,GAAG,EAAE,OAAO,GAAG,OAAO;IAKpD;;;;;OAKG;IACH,OAAO,CAAC,uBAAuB;IAK/B;;;;OAIG;IACI,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAIjD;;;;OAIG;IACI,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAIpD;;;;OAIG;IACI,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAIjD;;;;OAIG;IACI,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAIpD;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,GAAG;IAIlB;;;;;OAKG;IACI,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI;IAkBzE;;;;;OAKG;IACI,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI;IAkB5E;;;;;OAKG;IACI,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI;IAyCzE;;;;;OAKG;IACI,eAAe,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI;IAuB5E;;;;OAIG;IACI,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAQ9C;;;OAGG;IACI,QAAQ,IAAI,MAAM;CAG5B"}
@@ -0,0 +1,333 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ /** @packageDocumentation
6
+ * @module OrbitGT
7
+ */
8
+ import { Registry } from "./Registry";
9
+ import { Unit } from "./Unit";
10
+ /**
11
+ * Class Ellipsoid defines the parameters of an earth ellipsoid.
12
+ *
13
+ * Based on the following document:
14
+ *
15
+ * Coordinate Conversions and Transformations including Formulas
16
+ * Guidance Note Number 7, part 2
17
+ * Revised May 2005
18
+ * Available at: http://www.epsg.org/
19
+ *
20
+ * Geocentric coordinates are defined as follows:
21
+ * The point (0,0,0) denotes the center of the ellipsoid. The z-axis is defined as being parallel to the earth rotational axis, pointing towards north.
22
+ * The x-axis intersects the ellipsoid at the 0 deg latitude, 0 deg longitude point.
23
+ *
24
+ * @version 1.0 July 2005
25
+ */
26
+ /** @internal */
27
+ export class Ellipsoid {
28
+ /**
29
+ * Create a new ellipsoid.
30
+ * @param code the code.
31
+ * @param name the name.
32
+ * @param unitCode the code of the unit of measure.
33
+ * @param a the semi-major axis.
34
+ * @param invF the inverse flattening (value like 300, not like 1/300).
35
+ * @param b the semi-minor axis.
36
+ */
37
+ constructor(code, name, unitCode, a, invF, b) {
38
+ /* Store parameters */
39
+ this._code = code;
40
+ this._name = name;
41
+ this._unitCode = unitCode;
42
+ this._a = (unitCode == Unit.METER) ? a : Registry.getUnit(this._unitCode).toStandard(a);
43
+ this._invF = invF;
44
+ this._b = (unitCode == Unit.METER) ? b : Registry.getUnit(this._unitCode).toStandard(b);
45
+ /* Derive parameters */
46
+ if (this._invF == 0.0)
47
+ this._invF = a / (a - b);
48
+ this._f = (1.0 / this._invF);
49
+ if (this._b == 0.0)
50
+ this._b = this._a * (1.0 - this._f);
51
+ this._e = Math.sqrt(2.0 * this._f - this._f * this._f);
52
+ this._e2 = this._e * this._e; // or = (a*a-b*b)/(a*a);
53
+ }
54
+ /**
55
+ * Get the code.
56
+ * @return the code.
57
+ */
58
+ getCode() {
59
+ return this._code;
60
+ }
61
+ /**
62
+ * Get the name.
63
+ * @return the name.
64
+ */
65
+ getName() {
66
+ return this._name;
67
+ }
68
+ /**
69
+ * Get the code of the unit of measure.
70
+ * @return the code of the unit of measure.
71
+ */
72
+ getUnitCode() {
73
+ return this._unitCode;
74
+ }
75
+ /**
76
+ * Get the semi-major axis (in meter).
77
+ * @return the semi-major axis.
78
+ */
79
+ getA() {
80
+ return this._a;
81
+ }
82
+ /**
83
+ * Get the semi-minor axis (in meter).
84
+ * @return the semi-minor axis.
85
+ */
86
+ getB() {
87
+ return this._b;
88
+ }
89
+ /**
90
+ * Get the flattening.
91
+ * @return the flattening.
92
+ */
93
+ getF() {
94
+ return this._f;
95
+ }
96
+ /**
97
+ * Get the inverse flattening.
98
+ * @return the inverse flattening.
99
+ */
100
+ getInvF() {
101
+ return this._invF;
102
+ }
103
+ /**
104
+ * Get the eccentricity.
105
+ * @return the eccentricity.
106
+ */
107
+ getE() {
108
+ return this._e;
109
+ }
110
+ /**
111
+ * Get the radius of curvature of the ellipsoid in the plane of the meridian at a given latitude (how latitude curves).
112
+ * @param lat the latitude (in radians).
113
+ * @return a radius (in meter).
114
+ */
115
+ getMeridianRadius(lat) {
116
+ // Formula: see http://en.wikipedia.org/wiki/Latitude
117
+ let t = this._e * Math.sin(lat);
118
+ return this._a * (1.0 - this._e2) / Math.pow(1.0 - t * t, 3.5);
119
+ }
120
+ /**
121
+ * Get the radius of the circle defined by all points at a certain latitude (a circle of latitude, also called a parallel) (a at latitude 0, 0 at latitude 90) (how longitude curves).
122
+ * @param lat the latitude (in radians).
123
+ * @return a radius (in meter).
124
+ */
125
+ getParallelRadius(lat) {
126
+ // Formula: see http://en.wikipedia.org/wiki/Longitude
127
+ let t = this._e * Math.sin(lat);
128
+ return this._a * Math.cos(lat) / Math.sqrt(1.0 - t * t);
129
+ }
130
+ /**
131
+ * Get the radius of curvature of the ellipsoid perpendicular to the meridian at a given latitude (a at latitude 0, a*a/b at latitude 90).
132
+ * @param lat the latitude (in radians).
133
+ * @return a radius (in meter).
134
+ */
135
+ getPrimeVerticalRadius(lat) {
136
+ let t = this._e * Math.sin(lat);
137
+ return this._a / Math.sqrt(1.0 - t * t);
138
+ }
139
+ /**
140
+ * Get the radius of curvature of the ellipsoid perpendicular to the meridian at a given latitude (a at latitude 0, a*a/b at latitude 90).
141
+ * @param lat the latitude (in radians).
142
+ * @param sinLat the sinus of the latitude.
143
+ * @return a radius (in meter).
144
+ */
145
+ getPrimeVerticalRadius2(lat, sinLat) {
146
+ let t = this._e * sinLat;
147
+ return this._a / Math.sqrt(1.0 - t * t);
148
+ }
149
+ /**
150
+ * Get the number of meter per radian of longitude.
151
+ * @param lat the latitude (in radians).
152
+ * @return the number of meter per radian.
153
+ */
154
+ getMeterPerRadOfLon(lat) {
155
+ return this.getParallelRadius(lat);
156
+ }
157
+ /**
158
+ * Get the number of meter per degree of longitude.
159
+ * @param lat the latitude (in radians).
160
+ * @return the number of meter per degree.
161
+ */
162
+ getMeterPerDegreeOfLon(lat) {
163
+ return this.getMeterPerRadOfLon(lat) * Math.PI / 180.0;
164
+ }
165
+ /**
166
+ * Get the number of meter per radian of latitude.
167
+ * @param lat the latitude (in radians).
168
+ * @return the number of meter per radian.
169
+ */
170
+ getMeterPerRadOfLat(lat) {
171
+ return this.getMeridianRadius(lat);
172
+ }
173
+ /**
174
+ * Get the number of meter per degree of latitude.
175
+ * @param lat the latitude (in radians).
176
+ * @return the number of meter per degree.
177
+ */
178
+ getMeterPerDegreeOfLat(lat) {
179
+ return this.getMeterPerRadOfLat(lat) * Math.PI / 180.0;
180
+ }
181
+ /**
182
+ * Calculate the secant.
183
+ * @param v an angle (in radians).
184
+ * @return the secant.
185
+ */
186
+ static sec(v) {
187
+ return 1.0 / Math.cos(v);
188
+ }
189
+ /**
190
+ * Convert 3D geographic coordinates to 3D geocentric coordinates.
191
+ * See the EPSG Guidance Note, 2.2.1
192
+ * @param geographic the geographic coordinates (lon(x) and lat(y) in radians, height(z) in meter).
193
+ * @param geocentric the new geocentric coordinates (in meter) (the result object).
194
+ */
195
+ toGeoCentric(geographic, geocentric) {
196
+ /* Get the parameters */
197
+ let lon = geographic.getX();
198
+ let lat = geographic.getY();
199
+ let h = geographic.getZ();
200
+ /* Calculate */
201
+ let sinLat = Math.sin(lat);
202
+ let v = this.getPrimeVerticalRadius2(lat, sinLat);
203
+ let s = (v + h) * Math.cos(lat);
204
+ let x = s * Math.cos(lon);
205
+ let y = s * Math.sin(lon);
206
+ let z = ((1.0 - this._e2) * v + h) * sinLat;
207
+ /* Store the new coordinates */
208
+ geocentric.setX(x);
209
+ geocentric.setY(y);
210
+ geocentric.setZ(z);
211
+ }
212
+ /**
213
+ * Convert 3D geographic coordinates to 3D geocentric coordinates.
214
+ * See the EPSG Guidance Note, 2.2.1
215
+ * @param geographic the geographic coordinates (lon(x) and lat(y) in degrees, height(z) in meter).
216
+ * @param geocentric the new geocentric coordinates (in meter) (the result object).
217
+ */
218
+ toGeoCentricDeg(geographic, geocentric) {
219
+ /* Get the parameters */
220
+ let lon = geographic.getX() / 180.0 * Math.PI;
221
+ let lat = geographic.getY() / 180.0 * Math.PI;
222
+ let h = geographic.getZ();
223
+ /* Calculate */
224
+ let sinLat = Math.sin(lat);
225
+ let v = this.getPrimeVerticalRadius2(lat, sinLat);
226
+ let s = (v + h) * Math.cos(lat);
227
+ let x = s * Math.cos(lon);
228
+ let y = s * Math.sin(lon);
229
+ let z = ((1.0 - this._e2) * v + h) * sinLat;
230
+ /* Store the new coordinates */
231
+ geocentric.setX(x);
232
+ geocentric.setY(y);
233
+ geocentric.setZ(z);
234
+ }
235
+ /**
236
+ * Convert 3D geocentric coordinates to 3D geographic coordinates.
237
+ * See the EPSG Guidance Note, 2.2.1
238
+ * @param geocentric the geocentric coordinates (in meter).
239
+ * @param geographic the new geographic coordinates (lon(x) and lat(y) in radians, height(z) in meter) (the result object).
240
+ */
241
+ toGeoGraphic(geocentric, geographic) {
242
+ /* Get the parameters */
243
+ let x = geocentric.getX();
244
+ let y = geocentric.getY();
245
+ let z = geocentric.getZ();
246
+ /* Calculate */
247
+ let r = Math.sqrt(x * x + y * y);
248
+ let ir = (1.0 / r);
249
+ let lat = Math.atan(z * ir);
250
+ for (let i = 0; i < 7; i++) {
251
+ let sinLat = Math.sin(lat);
252
+ let vi = this.getPrimeVerticalRadius2(lat, sinLat);
253
+ lat = Math.atan((z + this._e2 * vi * sinLat) * ir);
254
+ }
255
+ let lon = Math.atan2(y, x);
256
+ let v = this.getPrimeVerticalRadius(lat);
257
+ let h = x * Ellipsoid.sec(lon) * Ellipsoid.sec(lat) - v;
258
+ /* Store the new coordinates */
259
+ geographic.setX(lon);
260
+ geographic.setY(lat);
261
+ geographic.setZ(h);
262
+ //
263
+ // loop lat error:
264
+ //
265
+ // i=0: 0.0031239393816600014 // km level
266
+ // i=1: 6.753891540589585E-6 // m level
267
+ // i=2: 1.4568768968992174E-8 // mm level
268
+ // i=3: 3.1426083957342144E-11 // um level
269
+ // i=4: 6.783462680459706E-14 // nm level
270
+ // i=5: 1.1102230246251565E-16 // atomic level
271
+ // i=6: 0.0
272
+ //
273
+ // EPSG example for the WGS84 datum/ellipsoid:
274
+ // X = 3771793.97;
275
+ // Y = 140253.34;
276
+ // Z = 5124304.35;
277
+ // lat = 53.8093944; (degrees)
278
+ // lon = 2.12955; (degrees)
279
+ // h = 73.001873;
280
+ }
281
+ /**
282
+ * Convert 3D geocentric coordinates to 3D geographic coordinates.
283
+ * See the EPSG Guidance Note, 2.2.1
284
+ * @param geocentric the geocentric coordinates (in meter).
285
+ * @param geographic the new geographic coordinates (lon(x) and lat(y) in degrees, height(z) in meter) (the result object).
286
+ */
287
+ toGeoGraphicDeg(geocentric, geographic) {
288
+ /* Get the parameters */
289
+ let x = geocentric.getX();
290
+ let y = geocentric.getY();
291
+ let z = geocentric.getZ();
292
+ /* Calculate */
293
+ let r = Math.sqrt(x * x + y * y);
294
+ let ir = (1.0 / r);
295
+ let lat = Math.atan(z * ir);
296
+ for (let i = 0; i < 7; i++) {
297
+ let sinLat = Math.sin(lat);
298
+ let vi = this.getPrimeVerticalRadius2(lat, sinLat);
299
+ lat = Math.atan((z + this._e2 * vi * sinLat) * ir);
300
+ }
301
+ let lon = Math.atan2(y, x);
302
+ let v = this.getPrimeVerticalRadius(lat);
303
+ let h = x * Ellipsoid.sec(lon) * Ellipsoid.sec(lat) - v;
304
+ /* Store the new coordinates */
305
+ geographic.setX(lon / Math.PI * 180.0);
306
+ geographic.setY(lat / Math.PI * 180.0);
307
+ geographic.setZ(h);
308
+ }
309
+ /**
310
+ * Check if another ellipsoid is compatible with this one.
311
+ * @param other the other ellipsoid.
312
+ * @return true if compatible.
313
+ */
314
+ isCompatible(other) {
315
+ if (other._code == this._code)
316
+ return true;
317
+ if (other._unitCode != this._unitCode)
318
+ return false;
319
+ if (Math.abs(other._a - this._a) > 0.001)
320
+ return false;
321
+ if (Math.abs(other._b - this._b) > 0.001)
322
+ return false;
323
+ return true;
324
+ }
325
+ /**
326
+ * The standard toString method.
327
+ * @see Object#toString
328
+ */
329
+ toString() {
330
+ return "[Ellipsoid:code=" + this._code + ",name='" + this._name + "']";
331
+ }
332
+ }
333
+ //# sourceMappingURL=Ellipsoid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Ellipsoid.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/Ellipsoid.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAWH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;;;;;;;;;;;;;GAeG;AACH,gBAAgB;AAChB,MAAM,OAAO,SAAS;IAoBlB;;;;;;;;OAQG;IACH,YAAmB,IAAW,EAAE,IAAY,EAAE,QAAe,EAAE,CAAU,EAAE,IAAa,EAAE,CAAU;QAChG,sBAAsB;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,EAAE,GAAG,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACxF,IAAI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AC3E,CAAC;CACJ","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.spatial.ecrs;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../geom/Coordinate\";\r\nimport { Registry } from \"./Registry\";\r\nimport { Unit } from \"./Unit\";\r\n\r\n/**\r\n * Class Ellipsoid defines the parameters of an earth ellipsoid.\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 * Geocentric coordinates are defined as follows:\r\n * The point (0,0,0) denotes the center of the ellipsoid. The z-axis is defined as being parallel to the earth rotational axis, pointing towards north.\r\n * The x-axis intersects the ellipsoid at the 0 deg latitude, 0 deg longitude point.\r\n *\r\n * @version 1.0 July 2005\r\n */\r\n/** @internal */\r\nexport class Ellipsoid {\r\n /** The code */\r\n private _code: int32;\r\n /** The name */\r\n private _name: string;\r\n /** The code of the unit of measure */\r\n private _unitCode: int32;\r\n /** Semi-major axis (meter) */\r\n private _a: float64;\r\n /** Semi-minor axis (meter) (derived) */\r\n private _b: float64;\r\n /** Flattening (derived) */\r\n private _f: float64;\r\n /** Inverse flattening */\r\n private _invF: float64;\r\n /** Eccentricity (derived) */\r\n private _e: float64;\r\n /** Eccentricity squared (derived) */\r\n private _e2: float64;\r\n\r\n /**\r\n * Create a new ellipsoid.\r\n * @param code the code.\r\n * @param name the name.\r\n * @param unitCode the code of the unit of measure.\r\n * @param a the semi-major axis.\r\n * @param invF the inverse flattening (value like 300, not like 1/300).\r\n * @param b the semi-minor axis.\r\n */\r\n public constructor(code: int32, name: string, unitCode: int32, a: float64, invF: float64, b: float64) {\r\n /* Store parameters */\r\n this._code = code;\r\n this._name = name;\r\n this._unitCode = unitCode;\r\n this._a = (unitCode == Unit.METER) ? a : Registry.getUnit(this._unitCode).toStandard(a);\r\n this._invF = invF;\r\n this._b = (unitCode == Unit.METER) ? b : Registry.getUnit(this._unitCode).toStandard(b);\r\n /* Derive parameters */\r\n if (this._invF == 0.0) this._invF = a / (a - b);\r\n this._f = (1.0 / this._invF);\r\n if (this._b == 0.0) this._b = this._a * (1.0 - this._f);\r\n this._e = Math.sqrt(2.0 * this._f - this._f * this._f);\r\n this._e2 = this._e * this._e; // or = (a*a-b*b)/(a*a);\r\n }\r\n\r\n /**\r\n * Get the code.\r\n * @return the code.\r\n */\r\n public getCode(): int32 {\r\n return this._code;\r\n }\r\n\r\n /**\r\n * Get the name.\r\n * @return the name.\r\n */\r\n public getName(): string {\r\n return this._name;\r\n }\r\n\r\n /**\r\n * Get the code of the unit of measure.\r\n * @return the code of the unit of measure.\r\n */\r\n public getUnitCode(): int32 {\r\n return this._unitCode;\r\n }\r\n\r\n /**\r\n * Get the semi-major axis (in meter).\r\n * @return the semi-major axis.\r\n */\r\n public getA(): float64 {\r\n return this._a;\r\n }\r\n\r\n /**\r\n * Get the semi-minor axis (in meter).\r\n * @return the semi-minor axis.\r\n */\r\n public getB(): float64 {\r\n return this._b;\r\n }\r\n\r\n /**\r\n * Get the flattening.\r\n * @return the flattening.\r\n */\r\n public getF(): float64 {\r\n return this._f;\r\n }\r\n\r\n /**\r\n * Get the inverse flattening.\r\n * @return the inverse flattening.\r\n */\r\n public getInvF(): float64 {\r\n return this._invF;\r\n }\r\n\r\n /**\r\n * Get the eccentricity.\r\n * @return the eccentricity.\r\n */\r\n public getE(): float64 {\r\n return this._e;\r\n }\r\n\r\n /**\r\n * Get the radius of curvature of the ellipsoid in the plane of the meridian at a given latitude (how latitude curves).\r\n * @param lat the latitude (in radians).\r\n * @return a radius (in meter).\r\n */\r\n public getMeridianRadius(lat: float64): float64 {\r\n // Formula: see http://en.wikipedia.org/wiki/Latitude\r\n let t: float64 = this._e * Math.sin(lat);\r\n return this._a * (1.0 - this._e2) / Math.pow(1.0 - t * t, 3.5);\r\n }\r\n\r\n /**\r\n * Get the radius of the circle defined by all points at a certain latitude (a circle of latitude, also called a parallel) (a at latitude 0, 0 at latitude 90) (how longitude curves).\r\n * @param lat the latitude (in radians).\r\n * @return a radius (in meter).\r\n */\r\n public getParallelRadius(lat: float64): float64 {\r\n // Formula: see http://en.wikipedia.org/wiki/Longitude\r\n let t: float64 = this._e * Math.sin(lat);\r\n return this._a * Math.cos(lat) / Math.sqrt(1.0 - t * t);\r\n }\r\n\r\n /**\r\n * Get the radius of curvature of the ellipsoid perpendicular to the meridian at a given latitude (a at latitude 0, a*a/b at latitude 90).\r\n * @param lat the latitude (in radians).\r\n * @return a radius (in meter).\r\n */\r\n public getPrimeVerticalRadius(lat: float64): float64 {\r\n let t: float64 = this._e * Math.sin(lat);\r\n return this._a / Math.sqrt(1.0 - t * t);\r\n }\r\n\r\n /**\r\n * Get the radius of curvature of the ellipsoid perpendicular to the meridian at a given latitude (a at latitude 0, a*a/b at latitude 90).\r\n * @param lat the latitude (in radians).\r\n * @param sinLat the sinus of the latitude.\r\n * @return a radius (in meter).\r\n */\r\n private getPrimeVerticalRadius2(lat: float64, sinLat: float64): float64 {\r\n let t: float64 = this._e * sinLat;\r\n return this._a / Math.sqrt(1.0 - t * t);\r\n }\r\n\r\n /**\r\n * Get the number of meter per radian of longitude.\r\n * @param lat the latitude (in radians).\r\n * @return the number of meter per radian.\r\n */\r\n public getMeterPerRadOfLon(lat: float64): float64 {\r\n return this.getParallelRadius(lat);\r\n }\r\n\r\n /**\r\n * Get the number of meter per degree of longitude.\r\n * @param lat the latitude (in radians).\r\n * @return the number of meter per degree.\r\n */\r\n public getMeterPerDegreeOfLon(lat: float64): float64 {\r\n return this.getMeterPerRadOfLon(lat) * Math.PI / 180.0;\r\n }\r\n\r\n /**\r\n * Get the number of meter per radian of latitude.\r\n * @param lat the latitude (in radians).\r\n * @return the number of meter per radian.\r\n */\r\n public getMeterPerRadOfLat(lat: float64): float64 {\r\n return this.getMeridianRadius(lat);\r\n }\r\n\r\n /**\r\n * Get the number of meter per degree of latitude.\r\n * @param lat the latitude (in radians).\r\n * @return the number of meter per degree.\r\n */\r\n public getMeterPerDegreeOfLat(lat: float64): float64 {\r\n return this.getMeterPerRadOfLat(lat) * Math.PI / 180.0;\r\n }\r\n\r\n /**\r\n * Calculate the secant.\r\n * @param v an angle (in radians).\r\n * @return the secant.\r\n */\r\n private static sec(v: float64): float64 {\r\n return 1.0 / Math.cos(v);\r\n }\r\n\r\n /**\r\n * Convert 3D geographic coordinates to 3D geocentric coordinates.\r\n * See the EPSG Guidance Note, 2.2.1\r\n * @param geographic the geographic coordinates (lon(x) and lat(y) in radians, height(z) in meter).\r\n * @param geocentric the new geocentric coordinates (in meter) (the result object).\r\n */\r\n public toGeoCentric(geographic: Coordinate, geocentric: Coordinate): void {\r\n /* Get the parameters */\r\n let lon: float64 = geographic.getX();\r\n let lat: float64 = geographic.getY();\r\n let h: float64 = geographic.getZ();\r\n /* Calculate */\r\n let sinLat: float64 = Math.sin(lat);\r\n let v: float64 = this.getPrimeVerticalRadius2(lat, sinLat);\r\n let s: float64 = (v + h) * Math.cos(lat);\r\n let x: float64 = s * Math.cos(lon);\r\n let y: float64 = s * Math.sin(lon);\r\n let z: float64 = ((1.0 - this._e2) * v + h) * sinLat;\r\n /* Store the new coordinates */\r\n geocentric.setX(x);\r\n geocentric.setY(y);\r\n geocentric.setZ(z);\r\n }\r\n\r\n /**\r\n * Convert 3D geographic coordinates to 3D geocentric coordinates.\r\n * See the EPSG Guidance Note, 2.2.1\r\n * @param geographic the geographic coordinates (lon(x) and lat(y) in degrees, height(z) in meter).\r\n * @param geocentric the new geocentric coordinates (in meter) (the result object).\r\n */\r\n public toGeoCentricDeg(geographic: Coordinate, geocentric: Coordinate): void {\r\n /* Get the parameters */\r\n let lon: float64 = geographic.getX() / 180.0 * Math.PI;\r\n let lat: float64 = geographic.getY() / 180.0 * Math.PI;\r\n let h: float64 = geographic.getZ();\r\n /* Calculate */\r\n let sinLat: float64 = Math.sin(lat);\r\n let v: float64 = this.getPrimeVerticalRadius2(lat, sinLat);\r\n let s: float64 = (v + h) * Math.cos(lat);\r\n let x: float64 = s * Math.cos(lon);\r\n let y: float64 = s * Math.sin(lon);\r\n let z: float64 = ((1.0 - this._e2) * v + h) * sinLat;\r\n /* Store the new coordinates */\r\n geocentric.setX(x);\r\n geocentric.setY(y);\r\n geocentric.setZ(z);\r\n }\r\n\r\n /**\r\n * Convert 3D geocentric coordinates to 3D geographic coordinates.\r\n * See the EPSG Guidance Note, 2.2.1\r\n * @param geocentric the geocentric coordinates (in meter).\r\n * @param geographic the new geographic coordinates (lon(x) and lat(y) in radians, height(z) in meter) (the result object).\r\n */\r\n public toGeoGraphic(geocentric: Coordinate, geographic: Coordinate): void {\r\n /* Get the parameters */\r\n let x: float64 = geocentric.getX();\r\n let y: float64 = geocentric.getY();\r\n let z: float64 = geocentric.getZ();\r\n /* Calculate */\r\n let r: float64 = Math.sqrt(x * x + y * y);\r\n let ir: float64 = (1.0 / r);\r\n let lat: float64 = Math.atan(z * ir);\r\n for (let i: number = 0; i < 7; i++) {\r\n let sinLat: float64 = Math.sin(lat);\r\n let vi: float64 = this.getPrimeVerticalRadius2(lat, sinLat);\r\n lat = Math.atan((z + this._e2 * vi * sinLat) * ir);\r\n }\r\n let lon: float64 = Math.atan2(y, x);\r\n let v: float64 = this.getPrimeVerticalRadius(lat);\r\n let h: float64 = x * Ellipsoid.sec(lon) * Ellipsoid.sec(lat) - v;\r\n /* Store the new coordinates */\r\n geographic.setX(lon);\r\n geographic.setY(lat);\r\n geographic.setZ(h);\r\n //\r\n // loop lat error:\r\n //\r\n // i=0: 0.0031239393816600014 // km level\r\n // i=1: 6.753891540589585E-6 // m level\r\n // i=2: 1.4568768968992174E-8 // mm level\r\n // i=3: 3.1426083957342144E-11 // um level\r\n // i=4: 6.783462680459706E-14 // nm level\r\n // i=5: 1.1102230246251565E-16 // atomic level\r\n // i=6: 0.0\r\n //\r\n // EPSG example for the WGS84 datum/ellipsoid:\r\n // X = 3771793.97;\r\n // Y = 140253.34;\r\n // Z = 5124304.35;\r\n // lat = 53.8093944; (degrees)\r\n // lon = 2.12955; (degrees)\r\n // h = 73.001873;\r\n }\r\n\r\n /**\r\n * Convert 3D geocentric coordinates to 3D geographic coordinates.\r\n * See the EPSG Guidance Note, 2.2.1\r\n * @param geocentric the geocentric coordinates (in meter).\r\n * @param geographic the new geographic coordinates (lon(x) and lat(y) in degrees, height(z) in meter) (the result object).\r\n */\r\n public toGeoGraphicDeg(geocentric: Coordinate, geographic: Coordinate): void {\r\n /* Get the parameters */\r\n let x: float64 = geocentric.getX();\r\n let y: float64 = geocentric.getY();\r\n let z: float64 = geocentric.getZ();\r\n /* Calculate */\r\n let r: float64 = Math.sqrt(x * x + y * y);\r\n let ir: float64 = (1.0 / r);\r\n let lat: float64 = Math.atan(z * ir);\r\n for (let i: number = 0; i < 7; i++) {\r\n let sinLat: float64 = Math.sin(lat);\r\n let vi: float64 = this.getPrimeVerticalRadius2(lat, sinLat);\r\n lat = Math.atan((z + this._e2 * vi * sinLat) * ir);\r\n }\r\n let lon: float64 = Math.atan2(y, x);\r\n let v: float64 = this.getPrimeVerticalRadius(lat);\r\n let h: float64 = x * Ellipsoid.sec(lon) * Ellipsoid.sec(lat) - v;\r\n /* Store the new coordinates */\r\n geographic.setX(lon / Math.PI * 180.0);\r\n geographic.setY(lat / Math.PI * 180.0);\r\n geographic.setZ(h);\r\n }\r\n\r\n /**\r\n * Check if another ellipsoid is compatible with this one.\r\n * @param other the other ellipsoid.\r\n * @return true if compatible.\r\n */\r\n public isCompatible(other: Ellipsoid): boolean {\r\n if (other._code == this._code) return true;\r\n if (other._unitCode != this._unitCode) return false;\r\n if (Math.abs(other._a - this._a) > 0.001) return false;\r\n if (Math.abs(other._b - this._b) > 0.001) return false;\r\n return true;\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[Ellipsoid:code=\" + this._code + \",name='\" + this._name + \"']\";\r\n }\r\n}\r\n"]}
@@ -0,0 +1,49 @@
1
+ /** @packageDocumentation
2
+ * @module OrbitGT
3
+ */
4
+ import { CRSEngine } from "../crs/CRSEngine";
5
+ import { Bounds } from "../geom/Bounds";
6
+ import { Coordinate } from "../geom/Coordinate";
7
+ /**
8
+ * Class OnlineEngine implements a CRS engine that reads CRS declarations from an online server.
9
+ */
10
+ /** @internal */
11
+ export declare class OnlineEngine extends CRSEngine {
12
+ /** The optional online registry */
13
+ private _onlineRegistry;
14
+ /**
15
+ * Create a new online engine.
16
+ * @return the new engine.
17
+ */
18
+ static create(): Promise<OnlineEngine>;
19
+ /**
20
+ * Create a new engine.
21
+ */
22
+ private constructor();
23
+ /**
24
+ * Set the online registry to the engine.
25
+ * @param onlineRegistry the registry to add.
26
+ */
27
+ private setOnlineRegistry;
28
+ /**
29
+ * CRSEngine method.
30
+ */
31
+ prepareForArea(crs: string, area: Bounds): Promise<Bounds>;
32
+ /**
33
+ * CRSEngine method.
34
+ */
35
+ transformPoint(point: Coordinate, sourceCRS: string, targetCRS: string): Coordinate;
36
+ /**
37
+ * CRSEngine method.
38
+ */
39
+ isGeocentricCRS(crs: string): boolean;
40
+ /**
41
+ * CRSEngine method.
42
+ */
43
+ isGeographicCRS(crs: string): boolean;
44
+ /**
45
+ * CRSEngine method.
46
+ */
47
+ isProjectedCRS(crs: string): boolean;
48
+ }
49
+ //# sourceMappingURL=OnlineEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OnlineEngine.d.ts","sourceRoot":"","sources":["../../../../src/spatial/ecrs/OnlineEngine.ts"],"names":[],"mappings":"AAIA;;GAEG;AAWH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAMhD;;GAEG;AACH,gBAAgB;AAChB,qBAAa,YAAa,SAAQ,SAAS;IACvC,mCAAmC;IACnC,OAAO,CAAC,eAAe,CAAiB;IAExC;;;SAGK;WACe,MAAM,IAAI,OAAO,CAAC,YAAY,CAAC;IAMnD;;SAEK;IACL,OAAO;IAKP;;;SAGK;YACS,iBAAiB;IAQ/B;;SAEK;IACiB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAWhF;;SAEK;IACW,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU;IAUnG;;SAEK;IACW,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAMrD;;SAEK;IACW,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAMrD;;SAEK;IACW,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;CAKvD"}