@itwin/core-orbitgt 4.0.0-dev.48 → 4.0.0-dev.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/core-orbitgt.d.ts +26 -26
- package/lib/cjs/core-orbitgt.js +58 -58
- package/lib/cjs/core-orbitgt.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeMask.d.ts +30 -30
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js +47 -47
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeReader.d.ts +63 -63
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js +24 -24
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/BlockRecord.d.ts +54 -54
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js +84 -84
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFile.d.ts +85 -85
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js +199 -199
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.d.ts +55 -55
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js +75 -75
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.d.ts +75 -75
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js +169 -169
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.d.ts +59 -59
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js +89 -89
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +106 -106
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js +197 -197
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileAccess.d.ts +39 -39
- package/lib/cjs/pointcloud/format/opc/FileAccess.js +48 -48
- package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileReader.d.ts +118 -118
- package/lib/cjs/pointcloud/format/opc/FileReader.js +248 -248
- package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileRecord.d.ts +89 -89
- package/lib/cjs/pointcloud/format/opc/FileRecord.js +125 -125
- package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryReader.d.ts +79 -79
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js +163 -163
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.d.ts +53 -53
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js +107 -107
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/OPCReader.d.ts +157 -157
- package/lib/cjs/pointcloud/format/opc/OPCReader.js +319 -319
- package/lib/cjs/pointcloud/format/opc/OPCReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/PointReader.d.ts +72 -72
- package/lib/cjs/pointcloud/format/opc/PointReader.js +152 -152
- package/lib/cjs/pointcloud/format/opc/PointReader.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.d.ts +63 -63
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js +92 -92
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileRecord.d.ts +88 -88
- package/lib/cjs/pointcloud/format/opc/TileRecord.js +161 -161
- package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeTypes.d.ts +37 -37
- package/lib/cjs/pointcloud/model/AttributeTypes.js +64 -64
- package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/cjs/pointcloud/model/AttributeValue.d.ts +247 -247
- package/lib/cjs/pointcloud/model/AttributeValue.js +508 -508
- package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/cjs/pointcloud/model/BlockIndex.d.ts +49 -49
- package/lib/cjs/pointcloud/model/BlockIndex.js +48 -48
- package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/CloudPoint.d.ts +210 -210
- package/lib/cjs/pointcloud/model/CloudPoint.js +318 -318
- package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/cjs/pointcloud/model/Grid.d.ts +91 -91
- package/lib/cjs/pointcloud/model/Grid.js +129 -129
- package/lib/cjs/pointcloud/model/Grid.js.map +1 -1
- package/lib/cjs/pointcloud/model/GridIndex.d.ts +66 -66
- package/lib/cjs/pointcloud/model/GridIndex.js +93 -93
- package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointAttribute.d.ts +208 -208
- package/lib/cjs/pointcloud/model/PointAttribute.js +374 -374
- package/lib/cjs/pointcloud/model/PointAttribute.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointCloudReader.d.ts +156 -156
- package/lib/cjs/pointcloud/model/PointCloudReader.js +189 -189
- package/lib/cjs/pointcloud/model/PointCloudReader.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointData.d.ts +17 -17
- package/lib/cjs/pointcloud/model/PointData.js +24 -24
- package/lib/cjs/pointcloud/model/PointData.js.map +1 -1
- package/lib/cjs/pointcloud/model/PointDataRaw.d.ts +34 -34
- package/lib/cjs/pointcloud/model/PointDataRaw.js +69 -69
- package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/cjs/pointcloud/model/ReadRequest.d.ts +175 -175
- package/lib/cjs/pointcloud/model/ReadRequest.js +239 -239
- package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/cjs/pointcloud/model/StandardAttributes.d.ts +40 -40
- package/lib/cjs/pointcloud/model/StandardAttributes.js +47 -47
- package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/cjs/pointcloud/model/TileIndex.d.ts +47 -47
- package/lib/cjs/pointcloud/model/TileIndex.js +47 -47
- package/lib/cjs/pointcloud/model/TileIndex.js.map +1 -1
- package/lib/cjs/pointcloud/render/AViewRequest.d.ts +38 -38
- package/lib/cjs/pointcloud/render/AViewRequest.js +24 -24
- package/lib/cjs/pointcloud/render/AViewRequest.js.map +1 -1
- package/lib/cjs/pointcloud/render/Block.d.ts +67 -67
- package/lib/cjs/pointcloud/render/Block.js +119 -119
- package/lib/cjs/pointcloud/render/Block.js.map +1 -1
- package/lib/cjs/pointcloud/render/DataManager.d.ts +136 -136
- package/lib/cjs/pointcloud/render/DataManager.js +342 -342
- package/lib/cjs/pointcloud/render/DataManager.js.map +1 -1
- package/lib/cjs/pointcloud/render/FrameData.d.ts +30 -30
- package/lib/cjs/pointcloud/render/FrameData.js +39 -39
- package/lib/cjs/pointcloud/render/FrameData.js.map +1 -1
- package/lib/cjs/pointcloud/render/Level.d.ts +90 -90
- package/lib/cjs/pointcloud/render/Level.js +119 -119
- package/lib/cjs/pointcloud/render/Level.js.map +1 -1
- package/lib/cjs/pointcloud/render/TileLoadSorter.d.ts +60 -60
- package/lib/cjs/pointcloud/render/TileLoadSorter.js +99 -99
- package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/cjs/pointcloud/render/ViewTree.d.ts +113 -113
- package/lib/cjs/pointcloud/render/ViewTree.js +363 -363
- package/lib/cjs/pointcloud/render/ViewTree.js.map +1 -1
- package/lib/cjs/spatial/crs/CRSEngine.d.ts +55 -55
- package/lib/cjs/spatial/crs/CRSEngine.js +93 -93
- package/lib/cjs/spatial/crs/CRSEngine.js.map +1 -1
- package/lib/cjs/spatial/crs/CRSManager.d.ts +49 -49
- package/lib/cjs/spatial/crs/CRSManager.js +109 -109
- package/lib/cjs/spatial/crs/CRSManager.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Axis.d.ts +77 -77
- package/lib/cjs/spatial/ecrs/Axis.js +93 -93
- package/lib/cjs/spatial/ecrs/Axis.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CRS.d.ts +447 -447
- package/lib/cjs/spatial/ecrs/CRS.js +930 -930
- package/lib/cjs/spatial/ecrs/CRS.js.map +1 -1
- package/lib/cjs/spatial/ecrs/CoordinateSystem.d.ts +142 -142
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js +326 -326
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/cjs/spatial/ecrs/DataFileUnit.d.ts +10 -10
- package/lib/cjs/spatial/ecrs/DataFileUnit.js +104 -104
- package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Datum.d.ts +111 -111
- package/lib/cjs/spatial/ecrs/Datum.js +166 -166
- package/lib/cjs/spatial/ecrs/Datum.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Ellipsoid.d.ts +188 -188
- package/lib/cjs/spatial/ecrs/Ellipsoid.js +336 -336
- package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineEngine.d.ts +48 -48
- package/lib/cjs/spatial/ecrs/OnlineEngine.js +102 -102
- package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OnlineRegistry.d.ts +37 -37
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js +76 -76
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Operation.d.ts +191 -191
- package/lib/cjs/spatial/ecrs/Operation.js +345 -345
- package/lib/cjs/spatial/ecrs/Operation.js.map +1 -1
- package/lib/cjs/spatial/ecrs/OperationMethod.d.ts +71 -71
- package/lib/cjs/spatial/ecrs/OperationMethod.js +75 -75
- package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValue.d.ts +49 -49
- package/lib/cjs/spatial/ecrs/ParameterValue.js +65 -65
- package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValueList.d.ts +72 -72
- package/lib/cjs/spatial/ecrs/ParameterValueList.js +120 -120
- package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/cjs/spatial/ecrs/PrimeMeridian.d.ts +78 -78
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js +108 -108
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Registry.d.ts +109 -109
- package/lib/cjs/spatial/ecrs/Registry.js +207 -207
- package/lib/cjs/spatial/ecrs/Registry.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Transform.d.ts +77 -77
- package/lib/cjs/spatial/ecrs/Transform.js +396 -396
- package/lib/cjs/spatial/ecrs/Transform.js.map +1 -1
- package/lib/cjs/spatial/ecrs/Unit.d.ts +170 -170
- package/lib/cjs/spatial/ecrs/Unit.js +336 -336
- package/lib/cjs/spatial/ecrs/Unit.js.map +1 -1
- package/lib/cjs/spatial/ecrs/VerticalModel.d.ts +69 -69
- package/lib/cjs/spatial/ecrs/VerticalModel.js +88 -88
- package/lib/cjs/spatial/ecrs/VerticalModel.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownText.d.ts +153 -153
- package/lib/cjs/spatial/ecrs/WellKnownText.js +494 -494
- package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.d.ts +69 -69
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js +128 -128
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.d.ts +101 -101
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js +162 -162
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts +79 -79
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js +125 -125
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts +47 -47
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +73 -73
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.d.ts +72 -72
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js +129 -129
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.d.ts +120 -120
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js +179 -179
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.d.ts +73 -73
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js +112 -112
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.d.ts +96 -96
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js +173 -173
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.d.ts +123 -123
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js +208 -208
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.d.ts +108 -108
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js +183 -183
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.d.ts +90 -90
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js +130 -130
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/cjs/spatial/geom/Bounds.d.ts +33 -33
- package/lib/cjs/spatial/geom/Bounds.js +156 -156
- package/lib/cjs/spatial/geom/Bounds.js.map +1 -1
- package/lib/cjs/spatial/geom/Coordinate.d.ts +61 -61
- package/lib/cjs/spatial/geom/Coordinate.js +186 -186
- package/lib/cjs/spatial/geom/Coordinate.js.map +1 -1
- package/lib/cjs/spatial/geom/Line.d.ts +225 -225
- package/lib/cjs/spatial/geom/Line.js +432 -432
- package/lib/cjs/spatial/geom/Line.js.map +1 -1
- package/lib/cjs/spatial/geom/Transform.d.ts +340 -340
- package/lib/cjs/spatial/geom/Transform.js +748 -748
- package/lib/cjs/spatial/geom/Transform.js.map +1 -1
- package/lib/cjs/system/buffer/ABuffer.d.ts +51 -51
- package/lib/cjs/system/buffer/ABuffer.js +90 -90
- package/lib/cjs/system/buffer/ABuffer.js.map +1 -1
- package/lib/cjs/system/buffer/Float32Buffer.d.ts +46 -46
- package/lib/cjs/system/buffer/Float32Buffer.js +60 -60
- package/lib/cjs/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/LittleEndian.d.ts +149 -149
- package/lib/cjs/system/buffer/LittleEndian.js +303 -303
- package/lib/cjs/system/buffer/LittleEndian.js.map +1 -1
- package/lib/cjs/system/buffer/Uint16Buffer.d.ts +49 -49
- package/lib/cjs/system/buffer/Uint16Buffer.js +65 -65
- package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/cjs/system/buffer/Uint8Buffer.d.ts +49 -49
- package/lib/cjs/system/buffer/Uint8Buffer.js +65 -65
- package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/cjs/system/collection/AList.d.ts +30 -30
- package/lib/cjs/system/collection/AList.js +70 -70
- package/lib/cjs/system/collection/AList.js.map +1 -1
- package/lib/cjs/system/collection/IntMap.d.ts +18 -18
- package/lib/cjs/system/collection/IntMap.js +35 -35
- package/lib/cjs/system/collection/IntMap.js.map +1 -1
- package/lib/cjs/system/collection/StringMap.d.ts +26 -26
- package/lib/cjs/system/collection/StringMap.js +63 -63
- package/lib/cjs/system/collection/StringMap.js.map +1 -1
- package/lib/cjs/system/io/ABufferInStream.d.ts +29 -29
- package/lib/cjs/system/io/ABufferInStream.js +46 -46
- package/lib/cjs/system/io/ABufferInStream.js.map +1 -1
- package/lib/cjs/system/io/InStream.d.ts +23 -23
- package/lib/cjs/system/io/InStream.js +34 -34
- package/lib/cjs/system/io/InStream.js.map +1 -1
- package/lib/cjs/system/io/OutStream.d.ts +23 -23
- package/lib/cjs/system/io/OutStream.js +33 -33
- package/lib/cjs/system/io/OutStream.js.map +1 -1
- package/lib/cjs/system/runtime/ALong.d.ts +329 -329
- package/lib/cjs/system/runtime/ALong.js +687 -687
- package/lib/cjs/system/runtime/ALong.js.map +1 -1
- package/lib/cjs/system/runtime/ASystem.d.ts +14 -14
- package/lib/cjs/system/runtime/ASystem.js +31 -31
- package/lib/cjs/system/runtime/ASystem.js.map +1 -1
- package/lib/cjs/system/runtime/Downloader.d.ts +17 -17
- package/lib/cjs/system/runtime/Downloader.js +38 -38
- package/lib/cjs/system/runtime/Downloader.js.map +1 -1
- package/lib/cjs/system/runtime/DownloaderNode.d.ts +18 -18
- package/lib/cjs/system/runtime/DownloaderNode.js +129 -129
- package/lib/cjs/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/cjs/system/runtime/DownloaderXhr.d.ts +18 -18
- package/lib/cjs/system/runtime/DownloaderXhr.js +131 -131
- package/lib/cjs/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/cjs/system/runtime/Message.d.ts +16 -16
- package/lib/cjs/system/runtime/Message.js +39 -39
- package/lib/cjs/system/runtime/Message.js.map +1 -1
- package/lib/cjs/system/runtime/Numbers.d.ts +34 -34
- package/lib/cjs/system/runtime/Numbers.js +87 -87
- package/lib/cjs/system/runtime/Numbers.js.map +1 -1
- package/lib/cjs/system/runtime/Strings.d.ts +49 -49
- package/lib/cjs/system/runtime/Strings.js +188 -188
- package/lib/cjs/system/runtime/Strings.js.map +1 -1
- package/lib/cjs/system/runtime/iComparator.d.ts +12 -12
- package/lib/cjs/system/runtime/iComparator.js +9 -9
- package/lib/cjs/system/runtime/iComparator.js.map +1 -1
- package/lib/cjs/system/storage/CacheList.d.ts +39 -39
- package/lib/cjs/system/storage/CacheList.js +80 -80
- package/lib/cjs/system/storage/CacheList.js.map +1 -1
- package/lib/cjs/system/storage/CachedItem.d.ts +21 -21
- package/lib/cjs/system/storage/CachedItem.js +25 -25
- package/lib/cjs/system/storage/CachedItem.js.map +1 -1
- package/lib/cjs/system/storage/ContentLoader.d.ts +64 -64
- package/lib/cjs/system/storage/ContentLoader.js +95 -95
- package/lib/cjs/system/storage/ContentLoader.js.map +1 -1
- package/lib/cjs/system/storage/FileContent.d.ts +19 -19
- package/lib/cjs/system/storage/FileContent.js +24 -24
- package/lib/cjs/system/storage/FileContent.js.map +1 -1
- package/lib/cjs/system/storage/FileRange.d.ts +20 -20
- package/lib/cjs/system/storage/FileRange.js +24 -24
- package/lib/cjs/system/storage/FileRange.js.map +1 -1
- package/lib/cjs/system/storage/FileStorage.d.ts +44 -44
- package/lib/cjs/system/storage/FileStorage.js +62 -62
- package/lib/cjs/system/storage/FileStorage.js.map +1 -1
- package/lib/cjs/system/storage/NodeFS.d.ts +41 -41
- package/lib/cjs/system/storage/NodeFS.js +79 -79
- package/lib/cjs/system/storage/NodeFS.js.map +1 -1
- package/lib/cjs/system/storage/PageCachedFile.d.ts +54 -54
- package/lib/cjs/system/storage/PageCachedFile.js +165 -165
- package/lib/cjs/system/storage/PageCachedFile.js.map +1 -1
- package/lib/cjs/system/storage/UrlFS.d.ts +53 -53
- package/lib/cjs/system/storage/UrlFS.js +114 -114
- package/lib/cjs/system/storage/UrlFS.js.map +1 -1
- package/lib/esm/core-orbitgt.d.ts +26 -26
- package/lib/esm/core-orbitgt.js +31 -31
- package/lib/esm/core-orbitgt.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeMask.d.ts +30 -30
- package/lib/esm/pointcloud/format/opc/AttributeMask.js +43 -43
- package/lib/esm/pointcloud/format/opc/AttributeMask.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeReader.d.ts +63 -63
- package/lib/esm/pointcloud/format/opc/AttributeReader.js +20 -20
- package/lib/esm/pointcloud/format/opc/AttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/BlockRecord.d.ts +54 -54
- package/lib/esm/pointcloud/format/opc/BlockRecord.js +80 -80
- package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFile.d.ts +85 -85
- package/lib/esm/pointcloud/format/opc/ContainerFile.js +195 -195
- package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.d.ts +55 -55
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js +71 -71
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryReader.d.ts +75 -75
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js +165 -165
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.d.ts +59 -59
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js +85 -85
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +106 -106
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js +193 -193
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileAccess.d.ts +39 -39
- package/lib/esm/pointcloud/format/opc/FileAccess.js +44 -44
- package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileReader.d.ts +118 -118
- package/lib/esm/pointcloud/format/opc/FileReader.js +244 -244
- package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileRecord.d.ts +89 -89
- package/lib/esm/pointcloud/format/opc/FileRecord.js +121 -121
- package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryReader.d.ts +79 -79
- package/lib/esm/pointcloud/format/opc/GeometryReader.js +159 -159
- package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryRecord.d.ts +53 -53
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js +103 -103
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/OPCReader.d.ts +157 -157
- package/lib/esm/pointcloud/format/opc/OPCReader.js +315 -315
- package/lib/esm/pointcloud/format/opc/OPCReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/PointReader.d.ts +72 -72
- package/lib/esm/pointcloud/format/opc/PointReader.js +148 -148
- package/lib/esm/pointcloud/format/opc/PointReader.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.d.ts +63 -63
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js +88 -88
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileRecord.d.ts +88 -88
- package/lib/esm/pointcloud/format/opc/TileRecord.js +157 -157
- package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeTypes.d.ts +37 -37
- package/lib/esm/pointcloud/model/AttributeTypes.js +60 -60
- package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -1
- package/lib/esm/pointcloud/model/AttributeValue.d.ts +247 -247
- package/lib/esm/pointcloud/model/AttributeValue.js +504 -504
- package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -1
- package/lib/esm/pointcloud/model/BlockIndex.d.ts +49 -49
- package/lib/esm/pointcloud/model/BlockIndex.js +44 -44
- package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/CloudPoint.d.ts +210 -210
- package/lib/esm/pointcloud/model/CloudPoint.js +314 -314
- package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -1
- package/lib/esm/pointcloud/model/Grid.d.ts +91 -91
- package/lib/esm/pointcloud/model/Grid.js +125 -125
- package/lib/esm/pointcloud/model/Grid.js.map +1 -1
- package/lib/esm/pointcloud/model/GridIndex.d.ts +66 -66
- package/lib/esm/pointcloud/model/GridIndex.js +89 -89
- package/lib/esm/pointcloud/model/GridIndex.js.map +1 -1
- package/lib/esm/pointcloud/model/PointAttribute.d.ts +208 -208
- package/lib/esm/pointcloud/model/PointAttribute.js +370 -370
- package/lib/esm/pointcloud/model/PointAttribute.js.map +1 -1
- package/lib/esm/pointcloud/model/PointCloudReader.d.ts +156 -156
- package/lib/esm/pointcloud/model/PointCloudReader.js +185 -185
- package/lib/esm/pointcloud/model/PointCloudReader.js.map +1 -1
- package/lib/esm/pointcloud/model/PointData.d.ts +17 -17
- package/lib/esm/pointcloud/model/PointData.js +20 -20
- package/lib/esm/pointcloud/model/PointData.js.map +1 -1
- package/lib/esm/pointcloud/model/PointDataRaw.d.ts +34 -34
- package/lib/esm/pointcloud/model/PointDataRaw.js +65 -65
- package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -1
- package/lib/esm/pointcloud/model/ReadRequest.d.ts +175 -175
- package/lib/esm/pointcloud/model/ReadRequest.js +235 -235
- package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -1
- package/lib/esm/pointcloud/model/StandardAttributes.d.ts +40 -40
- package/lib/esm/pointcloud/model/StandardAttributes.js +43 -43
- package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -1
- package/lib/esm/pointcloud/model/TileIndex.d.ts +47 -47
- package/lib/esm/pointcloud/model/TileIndex.js +43 -43
- package/lib/esm/pointcloud/model/TileIndex.js.map +1 -1
- package/lib/esm/pointcloud/render/AViewRequest.d.ts +38 -38
- package/lib/esm/pointcloud/render/AViewRequest.js +20 -20
- package/lib/esm/pointcloud/render/AViewRequest.js.map +1 -1
- package/lib/esm/pointcloud/render/Block.d.ts +67 -67
- package/lib/esm/pointcloud/render/Block.js +115 -115
- package/lib/esm/pointcloud/render/Block.js.map +1 -1
- package/lib/esm/pointcloud/render/DataManager.d.ts +136 -136
- package/lib/esm/pointcloud/render/DataManager.js +338 -338
- package/lib/esm/pointcloud/render/DataManager.js.map +1 -1
- package/lib/esm/pointcloud/render/FrameData.d.ts +30 -30
- package/lib/esm/pointcloud/render/FrameData.js +35 -35
- package/lib/esm/pointcloud/render/FrameData.js.map +1 -1
- package/lib/esm/pointcloud/render/Level.d.ts +90 -90
- package/lib/esm/pointcloud/render/Level.js +115 -115
- package/lib/esm/pointcloud/render/Level.js.map +1 -1
- package/lib/esm/pointcloud/render/TileLoadSorter.d.ts +60 -60
- package/lib/esm/pointcloud/render/TileLoadSorter.js +95 -95
- package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -1
- package/lib/esm/pointcloud/render/ViewTree.d.ts +113 -113
- package/lib/esm/pointcloud/render/ViewTree.js +359 -359
- package/lib/esm/pointcloud/render/ViewTree.js.map +1 -1
- package/lib/esm/spatial/crs/CRSEngine.d.ts +55 -55
- package/lib/esm/spatial/crs/CRSEngine.js +89 -89
- package/lib/esm/spatial/crs/CRSEngine.js.map +1 -1
- package/lib/esm/spatial/crs/CRSManager.d.ts +49 -49
- package/lib/esm/spatial/crs/CRSManager.js +105 -105
- package/lib/esm/spatial/crs/CRSManager.js.map +1 -1
- package/lib/esm/spatial/ecrs/Axis.d.ts +77 -77
- package/lib/esm/spatial/ecrs/Axis.js +89 -89
- package/lib/esm/spatial/ecrs/Axis.js.map +1 -1
- package/lib/esm/spatial/ecrs/CRS.d.ts +447 -447
- package/lib/esm/spatial/ecrs/CRS.js +926 -926
- package/lib/esm/spatial/ecrs/CRS.js.map +1 -1
- package/lib/esm/spatial/ecrs/CoordinateSystem.d.ts +142 -142
- package/lib/esm/spatial/ecrs/CoordinateSystem.js +322 -322
- package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -1
- package/lib/esm/spatial/ecrs/DataFileUnit.d.ts +10 -10
- package/lib/esm/spatial/ecrs/DataFileUnit.js +100 -100
- package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -1
- package/lib/esm/spatial/ecrs/Datum.d.ts +111 -111
- package/lib/esm/spatial/ecrs/Datum.js +162 -162
- package/lib/esm/spatial/ecrs/Datum.js.map +1 -1
- package/lib/esm/spatial/ecrs/Ellipsoid.d.ts +188 -188
- package/lib/esm/spatial/ecrs/Ellipsoid.js +332 -332
- package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineEngine.d.ts +48 -48
- package/lib/esm/spatial/ecrs/OnlineEngine.js +98 -98
- package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineRegistry.d.ts +37 -37
- package/lib/esm/spatial/ecrs/OnlineRegistry.js +72 -72
- package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Operation.d.ts +191 -191
- package/lib/esm/spatial/ecrs/Operation.js +341 -341
- package/lib/esm/spatial/ecrs/Operation.js.map +1 -1
- package/lib/esm/spatial/ecrs/OperationMethod.d.ts +71 -71
- package/lib/esm/spatial/ecrs/OperationMethod.js +71 -71
- package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValue.d.ts +49 -49
- package/lib/esm/spatial/ecrs/ParameterValue.js +61 -61
- package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValueList.d.ts +72 -72
- package/lib/esm/spatial/ecrs/ParameterValueList.js +116 -116
- package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -1
- package/lib/esm/spatial/ecrs/PrimeMeridian.d.ts +78 -78
- package/lib/esm/spatial/ecrs/PrimeMeridian.js +104 -104
- package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -1
- package/lib/esm/spatial/ecrs/Registry.d.ts +109 -109
- package/lib/esm/spatial/ecrs/Registry.js +203 -203
- package/lib/esm/spatial/ecrs/Registry.js.map +1 -1
- package/lib/esm/spatial/ecrs/Transform.d.ts +77 -77
- package/lib/esm/spatial/ecrs/Transform.js +392 -392
- package/lib/esm/spatial/ecrs/Transform.js.map +1 -1
- package/lib/esm/spatial/ecrs/Unit.d.ts +170 -170
- package/lib/esm/spatial/ecrs/Unit.js +332 -332
- package/lib/esm/spatial/ecrs/Unit.js.map +1 -1
- package/lib/esm/spatial/ecrs/VerticalModel.d.ts +69 -69
- package/lib/esm/spatial/ecrs/VerticalModel.js +84 -84
- package/lib/esm/spatial/ecrs/VerticalModel.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownText.d.ts +153 -153
- package/lib/esm/spatial/ecrs/WellKnownText.js +490 -490
- package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownTextNode.d.ts +69 -69
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js +124 -124
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.d.ts +101 -101
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js +158 -158
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts +79 -79
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js +121 -121
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts +47 -47
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +69 -69
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.d.ts +72 -72
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js +125 -125
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.d.ts +120 -120
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js +175 -175
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.d.ts +73 -73
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js +108 -108
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.d.ts +96 -96
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js +169 -169
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.d.ts +123 -123
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js +204 -204
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -1
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.d.ts +108 -108
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js +179 -179
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -1
- package/lib/esm/spatial/ecrs/transformation/PositionVector.d.ts +90 -90
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js +126 -126
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -1
- package/lib/esm/spatial/geom/Bounds.d.ts +33 -33
- package/lib/esm/spatial/geom/Bounds.js +152 -152
- package/lib/esm/spatial/geom/Bounds.js.map +1 -1
- package/lib/esm/spatial/geom/Coordinate.d.ts +61 -61
- package/lib/esm/spatial/geom/Coordinate.js +182 -182
- package/lib/esm/spatial/geom/Coordinate.js.map +1 -1
- package/lib/esm/spatial/geom/Line.d.ts +225 -225
- package/lib/esm/spatial/geom/Line.js +428 -428
- package/lib/esm/spatial/geom/Line.js.map +1 -1
- package/lib/esm/spatial/geom/Transform.d.ts +340 -340
- package/lib/esm/spatial/geom/Transform.js +744 -744
- package/lib/esm/spatial/geom/Transform.js.map +1 -1
- package/lib/esm/system/buffer/ABuffer.d.ts +51 -51
- package/lib/esm/system/buffer/ABuffer.js +86 -86
- package/lib/esm/system/buffer/ABuffer.js.map +1 -1
- package/lib/esm/system/buffer/Float32Buffer.d.ts +46 -46
- package/lib/esm/system/buffer/Float32Buffer.js +56 -56
- package/lib/esm/system/buffer/Float32Buffer.js.map +1 -1
- package/lib/esm/system/buffer/LittleEndian.d.ts +149 -149
- package/lib/esm/system/buffer/LittleEndian.js +299 -299
- package/lib/esm/system/buffer/LittleEndian.js.map +1 -1
- package/lib/esm/system/buffer/Uint16Buffer.d.ts +49 -49
- package/lib/esm/system/buffer/Uint16Buffer.js +61 -61
- package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -1
- package/lib/esm/system/buffer/Uint8Buffer.d.ts +49 -49
- package/lib/esm/system/buffer/Uint8Buffer.js +61 -61
- package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -1
- package/lib/esm/system/collection/AList.d.ts +30 -30
- package/lib/esm/system/collection/AList.js +66 -66
- package/lib/esm/system/collection/AList.js.map +1 -1
- package/lib/esm/system/collection/IntMap.d.ts +18 -18
- package/lib/esm/system/collection/IntMap.js +31 -31
- package/lib/esm/system/collection/IntMap.js.map +1 -1
- package/lib/esm/system/collection/StringMap.d.ts +26 -26
- package/lib/esm/system/collection/StringMap.js +59 -59
- package/lib/esm/system/collection/StringMap.js.map +1 -1
- package/lib/esm/system/io/ABufferInStream.d.ts +29 -29
- package/lib/esm/system/io/ABufferInStream.js +42 -42
- package/lib/esm/system/io/ABufferInStream.js.map +1 -1
- package/lib/esm/system/io/InStream.d.ts +23 -23
- package/lib/esm/system/io/InStream.js +30 -30
- package/lib/esm/system/io/InStream.js.map +1 -1
- package/lib/esm/system/io/OutStream.d.ts +23 -23
- package/lib/esm/system/io/OutStream.js +29 -29
- package/lib/esm/system/io/OutStream.js.map +1 -1
- package/lib/esm/system/runtime/ALong.d.ts +329 -329
- package/lib/esm/system/runtime/ALong.js +683 -683
- package/lib/esm/system/runtime/ALong.js.map +1 -1
- package/lib/esm/system/runtime/ASystem.d.ts +14 -14
- package/lib/esm/system/runtime/ASystem.js +27 -27
- package/lib/esm/system/runtime/ASystem.js.map +1 -1
- package/lib/esm/system/runtime/Downloader.d.ts +17 -17
- package/lib/esm/system/runtime/Downloader.js +34 -34
- package/lib/esm/system/runtime/Downloader.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderNode.d.ts +18 -18
- package/lib/esm/system/runtime/DownloaderNode.js +125 -125
- package/lib/esm/system/runtime/DownloaderNode.js.map +1 -1
- package/lib/esm/system/runtime/DownloaderXhr.d.ts +18 -18
- package/lib/esm/system/runtime/DownloaderXhr.js +127 -127
- package/lib/esm/system/runtime/DownloaderXhr.js.map +1 -1
- package/lib/esm/system/runtime/Message.d.ts +16 -16
- package/lib/esm/system/runtime/Message.js +35 -35
- package/lib/esm/system/runtime/Message.js.map +1 -1
- package/lib/esm/system/runtime/Numbers.d.ts +34 -34
- package/lib/esm/system/runtime/Numbers.js +83 -83
- package/lib/esm/system/runtime/Numbers.js.map +1 -1
- package/lib/esm/system/runtime/Strings.d.ts +49 -49
- package/lib/esm/system/runtime/Strings.js +184 -184
- package/lib/esm/system/runtime/Strings.js.map +1 -1
- package/lib/esm/system/runtime/iComparator.d.ts +12 -12
- package/lib/esm/system/runtime/iComparator.js +8 -8
- package/lib/esm/system/runtime/iComparator.js.map +1 -1
- package/lib/esm/system/storage/CacheList.d.ts +39 -39
- package/lib/esm/system/storage/CacheList.js +76 -76
- package/lib/esm/system/storage/CacheList.js.map +1 -1
- package/lib/esm/system/storage/CachedItem.d.ts +21 -21
- package/lib/esm/system/storage/CachedItem.js +21 -21
- package/lib/esm/system/storage/CachedItem.js.map +1 -1
- package/lib/esm/system/storage/ContentLoader.d.ts +64 -64
- package/lib/esm/system/storage/ContentLoader.js +91 -91
- package/lib/esm/system/storage/ContentLoader.js.map +1 -1
- package/lib/esm/system/storage/FileContent.d.ts +19 -19
- package/lib/esm/system/storage/FileContent.js +20 -20
- package/lib/esm/system/storage/FileContent.js.map +1 -1
- package/lib/esm/system/storage/FileRange.d.ts +20 -20
- package/lib/esm/system/storage/FileRange.js +20 -20
- package/lib/esm/system/storage/FileRange.js.map +1 -1
- package/lib/esm/system/storage/FileStorage.d.ts +44 -44
- package/lib/esm/system/storage/FileStorage.js +58 -58
- package/lib/esm/system/storage/FileStorage.js.map +1 -1
- package/lib/esm/system/storage/NodeFS.d.ts +41 -41
- package/lib/esm/system/storage/NodeFS.js +75 -75
- package/lib/esm/system/storage/NodeFS.js.map +1 -1
- package/lib/esm/system/storage/PageCachedFile.d.ts +54 -54
- package/lib/esm/system/storage/PageCachedFile.js +161 -161
- package/lib/esm/system/storage/PageCachedFile.js.map +1 -1
- package/lib/esm/system/storage/UrlFS.d.ts +53 -53
- package/lib/esm/system/storage/UrlFS.js +110 -110
- package/lib/esm/system/storage/UrlFS.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module OrbitGT
|
|
3
|
-
*/
|
|
4
|
-
declare type int32 = number;
|
|
5
|
-
import { Coordinate } from "../../geom/Coordinate";
|
|
6
|
-
import { CRS } from "../CRS";
|
|
7
|
-
import { Operation } from "../Operation";
|
|
8
|
-
import { OperationMethod } from "../OperationMethod";
|
|
9
|
-
import { ParameterValueList } from "../ParameterValueList";
|
|
10
|
-
/**
|
|
11
|
-
* Class ObliqueMercator defines an Oblique Mercator projection (Hotine Variant B).
|
|
12
|
-
*
|
|
13
|
-
* The 'source' CRS is the geographic CRS.
|
|
14
|
-
* The 'target' CRS is the projected CRS.
|
|
15
|
-
*
|
|
16
|
-
* Based on the following document:
|
|
17
|
-
*
|
|
18
|
-
* Coordinate Conversions and Transformations including Formulas
|
|
19
|
-
* Guidance Note Number 7, part 2
|
|
20
|
-
* Revised August 2006
|
|
21
|
-
* Available at: http://www.epsg.org/
|
|
22
|
-
*
|
|
23
|
-
* Formulas: see 1.4.6 (spec v6.13): Oblique Mercator and Hotine Oblique Mercator
|
|
24
|
-
*
|
|
25
|
-
* @version 1.0 May 2008
|
|
26
|
-
*/
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare class ObliqueMercator extends OperationMethod {
|
|
29
|
-
/** The code of this method */
|
|
30
|
-
static readonly METHOD_CODE: int32;
|
|
31
|
-
/** The value of PI */
|
|
32
|
-
private static readonly PI;
|
|
33
|
-
/** Latitude of the projection center */
|
|
34
|
-
private _latC;
|
|
35
|
-
/** Longitude of the projection center */
|
|
36
|
-
private _lonC;
|
|
37
|
-
/** Azimuth of the initial line passing through the projection center */
|
|
38
|
-
private _aziC;
|
|
39
|
-
/** Angle from the recified grid to the skew (oblique) grid */
|
|
40
|
-
private _gamC;
|
|
41
|
-
/** Scale factor on the initial line of projection */
|
|
42
|
-
private _kC;
|
|
43
|
-
/** False easting at the center of projection */
|
|
44
|
-
private _eC;
|
|
45
|
-
/** False northing at the center of projection */
|
|
46
|
-
private _nC;
|
|
47
|
-
/** Forward calculation parameters */
|
|
48
|
-
private _a;
|
|
49
|
-
private _e;
|
|
50
|
-
private _e2;
|
|
51
|
-
private _B;
|
|
52
|
-
private _A;
|
|
53
|
-
private _tO;
|
|
54
|
-
private _D;
|
|
55
|
-
private _F;
|
|
56
|
-
private _H;
|
|
57
|
-
private _G;
|
|
58
|
-
private _gamO;
|
|
59
|
-
private _lonO;
|
|
60
|
-
private _vC;
|
|
61
|
-
private _uC;
|
|
62
|
-
/** Reverse calculation parameters */
|
|
63
|
-
private _rev1;
|
|
64
|
-
private _rev2;
|
|
65
|
-
private _rev3;
|
|
66
|
-
private _rev4;
|
|
67
|
-
/**
|
|
68
|
-
* Create a new projection.
|
|
69
|
-
* @param parameters the values of the parameters.
|
|
70
|
-
*/
|
|
71
|
-
constructor(parameters: ParameterValueList);
|
|
72
|
-
/**
|
|
73
|
-
* Get the sign of a number.
|
|
74
|
-
*/
|
|
75
|
-
private static sign;
|
|
76
|
-
/**
|
|
77
|
-
* Get the power of a number (must be able to handle negative 'n' values).
|
|
78
|
-
*/
|
|
79
|
-
private static pow;
|
|
80
|
-
/**
|
|
81
|
-
* OperationMethod method.
|
|
82
|
-
* @see OperationMethod#initialize
|
|
83
|
-
*/
|
|
84
|
-
initialize(operation: Operation): void;
|
|
85
|
-
/**
|
|
86
|
-
* OperationMethod interface method.
|
|
87
|
-
* @see OperationMethod#forward
|
|
88
|
-
*/
|
|
89
|
-
forward(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void;
|
|
90
|
-
/**
|
|
91
|
-
* OperationMethod interface method.
|
|
92
|
-
* @see OperationMethod#reverse
|
|
93
|
-
*/
|
|
94
|
-
reverse(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void;
|
|
95
|
-
}
|
|
96
|
-
export {};
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module OrbitGT
|
|
3
|
+
*/
|
|
4
|
+
declare type int32 = number;
|
|
5
|
+
import { Coordinate } from "../../geom/Coordinate";
|
|
6
|
+
import { CRS } from "../CRS";
|
|
7
|
+
import { Operation } from "../Operation";
|
|
8
|
+
import { OperationMethod } from "../OperationMethod";
|
|
9
|
+
import { ParameterValueList } from "../ParameterValueList";
|
|
10
|
+
/**
|
|
11
|
+
* Class ObliqueMercator defines an Oblique Mercator projection (Hotine Variant B).
|
|
12
|
+
*
|
|
13
|
+
* The 'source' CRS is the geographic CRS.
|
|
14
|
+
* The 'target' CRS is the projected CRS.
|
|
15
|
+
*
|
|
16
|
+
* Based on the following document:
|
|
17
|
+
*
|
|
18
|
+
* Coordinate Conversions and Transformations including Formulas
|
|
19
|
+
* Guidance Note Number 7, part 2
|
|
20
|
+
* Revised August 2006
|
|
21
|
+
* Available at: http://www.epsg.org/
|
|
22
|
+
*
|
|
23
|
+
* Formulas: see 1.4.6 (spec v6.13): Oblique Mercator and Hotine Oblique Mercator
|
|
24
|
+
*
|
|
25
|
+
* @version 1.0 May 2008
|
|
26
|
+
*/
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare class ObliqueMercator extends OperationMethod {
|
|
29
|
+
/** The code of this method */
|
|
30
|
+
static readonly METHOD_CODE: int32;
|
|
31
|
+
/** The value of PI */
|
|
32
|
+
private static readonly PI;
|
|
33
|
+
/** Latitude of the projection center */
|
|
34
|
+
private _latC;
|
|
35
|
+
/** Longitude of the projection center */
|
|
36
|
+
private _lonC;
|
|
37
|
+
/** Azimuth of the initial line passing through the projection center */
|
|
38
|
+
private _aziC;
|
|
39
|
+
/** Angle from the recified grid to the skew (oblique) grid */
|
|
40
|
+
private _gamC;
|
|
41
|
+
/** Scale factor on the initial line of projection */
|
|
42
|
+
private _kC;
|
|
43
|
+
/** False easting at the center of projection */
|
|
44
|
+
private _eC;
|
|
45
|
+
/** False northing at the center of projection */
|
|
46
|
+
private _nC;
|
|
47
|
+
/** Forward calculation parameters */
|
|
48
|
+
private _a;
|
|
49
|
+
private _e;
|
|
50
|
+
private _e2;
|
|
51
|
+
private _B;
|
|
52
|
+
private _A;
|
|
53
|
+
private _tO;
|
|
54
|
+
private _D;
|
|
55
|
+
private _F;
|
|
56
|
+
private _H;
|
|
57
|
+
private _G;
|
|
58
|
+
private _gamO;
|
|
59
|
+
private _lonO;
|
|
60
|
+
private _vC;
|
|
61
|
+
private _uC;
|
|
62
|
+
/** Reverse calculation parameters */
|
|
63
|
+
private _rev1;
|
|
64
|
+
private _rev2;
|
|
65
|
+
private _rev3;
|
|
66
|
+
private _rev4;
|
|
67
|
+
/**
|
|
68
|
+
* Create a new projection.
|
|
69
|
+
* @param parameters the values of the parameters.
|
|
70
|
+
*/
|
|
71
|
+
constructor(parameters: ParameterValueList);
|
|
72
|
+
/**
|
|
73
|
+
* Get the sign of a number.
|
|
74
|
+
*/
|
|
75
|
+
private static sign;
|
|
76
|
+
/**
|
|
77
|
+
* Get the power of a number (must be able to handle negative 'n' values).
|
|
78
|
+
*/
|
|
79
|
+
private static pow;
|
|
80
|
+
/**
|
|
81
|
+
* OperationMethod method.
|
|
82
|
+
* @see OperationMethod#initialize
|
|
83
|
+
*/
|
|
84
|
+
initialize(operation: Operation): void;
|
|
85
|
+
/**
|
|
86
|
+
* OperationMethod interface method.
|
|
87
|
+
* @see OperationMethod#forward
|
|
88
|
+
*/
|
|
89
|
+
forward(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void;
|
|
90
|
+
/**
|
|
91
|
+
* OperationMethod interface method.
|
|
92
|
+
* @see OperationMethod#reverse
|
|
93
|
+
*/
|
|
94
|
+
reverse(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void;
|
|
95
|
+
}
|
|
96
|
+
export {};
|
|
97
97
|
//# sourceMappingURL=ObliqueMercator.d.ts.map
|
|
@@ -1,174 +1,174 @@
|
|
|
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.ObliqueMercator = void 0;
|
|
11
|
-
const OperationMethod_1 = require("../OperationMethod");
|
|
12
|
-
/**
|
|
13
|
-
* Class ObliqueMercator defines an Oblique Mercator projection (Hotine Variant B).
|
|
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.6 (spec v6.13): Oblique Mercator and Hotine Oblique Mercator
|
|
26
|
-
*
|
|
27
|
-
* @version 1.0 May 2008
|
|
28
|
-
*/
|
|
29
|
-
/** @internal */
|
|
30
|
-
class ObliqueMercator extends OperationMethod_1.OperationMethod {
|
|
31
|
-
/**
|
|
32
|
-
* Create a new projection.
|
|
33
|
-
* @param parameters the values of the parameters.
|
|
34
|
-
*/
|
|
35
|
-
constructor(parameters) {
|
|
36
|
-
super(ObliqueMercator.METHOD_CODE, "Oblique Mercator", parameters);
|
|
37
|
-
/* Store the parameters */
|
|
38
|
-
this._latC = parameters.getValue(8811);
|
|
39
|
-
this._lonC = parameters.getValue(8812);
|
|
40
|
-
this._aziC = parameters.getValue(8813);
|
|
41
|
-
this._gamC = parameters.getValue(8814);
|
|
42
|
-
this._kC = parameters.getValue(8815);
|
|
43
|
-
this._eC = parameters.getValue(8816);
|
|
44
|
-
this._nC = parameters.getValue(8817);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Get the sign of a number.
|
|
48
|
-
*/
|
|
49
|
-
static sign(v) {
|
|
50
|
-
return (v < 0.0) ? (-1.0) : (1.0);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Get the power of a number (must be able to handle negative 'n' values).
|
|
54
|
-
*/
|
|
55
|
-
static pow(n, e) {
|
|
56
|
-
let p = 1.0;
|
|
57
|
-
for (let i = 0; i < e; i++)
|
|
58
|
-
p *= n;
|
|
59
|
-
return p;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* OperationMethod method.
|
|
63
|
-
* @see OperationMethod#initialize
|
|
64
|
-
*/
|
|
65
|
-
initialize(operation) {
|
|
66
|
-
/* Get the ellipsoid */
|
|
67
|
-
const sourceCRS = operation.getSourceCRS();
|
|
68
|
-
/* Prepare the forward parameters */
|
|
69
|
-
this._a = sourceCRS.getEllipsoid().getA();
|
|
70
|
-
this._e = sourceCRS.getEllipsoid().getE();
|
|
71
|
-
this._e2 = this._e * this._e;
|
|
72
|
-
this._B = Math.sqrt(1.0 + (this._e2 * ObliqueMercator.pow(Math.cos(this._latC), 4) / (1.0 - this._e2)));
|
|
73
|
-
const esinLatC = this._e * Math.sin(this._latC);
|
|
74
|
-
this._A = this._a * this._B * this._kC * Math.sqrt(1.0 - this._e2) / (1.0 - ObliqueMercator.pow(esinLatC, 2));
|
|
75
|
-
this._tO = Math.tan(ObliqueMercator.PI / 4.0 - this._latC / 2.0) / Math.pow((1.0 - esinLatC) / (1.0 + esinLatC), this._e / 2.0);
|
|
76
|
-
this._D = this._B * Math.sqrt(1.0 - this._e2) / (Math.cos(this._latC) * Math.sqrt(1.0 - ObliqueMercator.pow(esinLatC, 2)));
|
|
77
|
-
const D2 = (this._D < 1.0) ? (1.0) : (this._D * this._D);
|
|
78
|
-
this._F = this._D + Math.sqrt(D2 - 1.0) * ObliqueMercator.sign(this._latC);
|
|
79
|
-
this._H = this._F * Math.pow(this._tO, this._B);
|
|
80
|
-
this._G = (this._F - 1.0 / this._F) / 2.0;
|
|
81
|
-
this._gamO = Math.asin(Math.sin(this._aziC) / this._D);
|
|
82
|
-
// fix for Switzerland CRS 2056 projection error. LER, 19/06/2018
|
|
83
|
-
let w = this._G * Math.tan(this._gamO);
|
|
84
|
-
if (Math.abs(1.0 - w) < 1.0e-13)
|
|
85
|
-
w = 1.0; // Math.asin(0.9999999999999999) gives a 1.49e-8 difference from the asin(1.0) value, which leads to a 19 cm projection error
|
|
86
|
-
// this._lonO = lonC-Math.asin(G*Math.tan(gamO))/B;
|
|
87
|
-
this._lonO = this._lonC - Math.asin(w) / this._B;
|
|
88
|
-
// end of fix
|
|
89
|
-
this._vC = 0.0;
|
|
90
|
-
if (Math.abs(this._aziC - 0.5 * ObliqueMercator.PI) < 1.0e-12)
|
|
91
|
-
this._uC = this._A * (this._lonC - this._lonO); // special case aziC==90 (Hungary, Switzerland)
|
|
92
|
-
else
|
|
93
|
-
this._uC = (this._A / this._B) * Math.atan(Math.sqrt(D2 - 1.0) / Math.cos(this._aziC)) * ObliqueMercator.sign(this._latC);
|
|
94
|
-
/* Prepare the reverse parameters */
|
|
95
|
-
const e4 = this._e2 * this._e2;
|
|
96
|
-
const e6 = e4 * this._e2;
|
|
97
|
-
const e8 = e4 * e4;
|
|
98
|
-
this._rev1 = (this._e2 / 2.0 + 5.0 * e4 / 24.0 + e6 / 12.0 + 13.0 * e8 / 360.0);
|
|
99
|
-
this._rev2 = (7.0 * e4 / 48.0 + 29.0 * e6 / 240.0 + 811.0 * e8 / 11520.0);
|
|
100
|
-
this._rev3 = (7.0 * e6 / 120.0 + 81.0 * e8 / 1120.0);
|
|
101
|
-
this._rev4 = (4279.0 * e8 / 161280.0);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* OperationMethod interface method.
|
|
105
|
-
* @see OperationMethod#forward
|
|
106
|
-
*/
|
|
107
|
-
forward(sourceCRS, source, targetCRS, target) {
|
|
108
|
-
/* Get the parameters (radians) */
|
|
109
|
-
const lon = source.getX();
|
|
110
|
-
const lat = source.getY();
|
|
111
|
-
/* Make the calculation */
|
|
112
|
-
const esinLat = this._e * Math.sin(lat);
|
|
113
|
-
const t = Math.tan(ObliqueMercator.PI / 4.0 - lat / 2.0) / Math.pow((1.0 - esinLat) / (1.0 + esinLat), this._e / 2.0);
|
|
114
|
-
const Q = this._H / Math.pow(t, this._B);
|
|
115
|
-
const S = (Q - 1.0 / Q) / 2.0;
|
|
116
|
-
const T = (Q + 1.0 / Q) / 2.0;
|
|
117
|
-
const V = Math.sin(this._B * (lon - this._lonO));
|
|
118
|
-
const U = (-V * Math.cos(this._gamO) + S * Math.sin(this._gamO)) / T;
|
|
119
|
-
const v = this._A * Math.log((1.0 - U) / (1.0 + U)) / (2.0 * this._B);
|
|
120
|
-
let u;
|
|
121
|
-
if (Math.abs(this._aziC - 0.5 * ObliqueMercator.PI) < 1.0e-12) // aziC==90? new in guidance note 2 version 8.5. LER, 21/09/2016
|
|
122
|
-
{
|
|
123
|
-
if (lon == this._lonC)
|
|
124
|
-
u = 0.0;
|
|
125
|
-
else
|
|
126
|
-
u = (this._A * Math.atan((S * Math.cos(this._gamO) + V * Math.sin(this._gamO)) / Math.cos(this._B * (lon - this._lonO))) / this._B) - (Math.abs(this._uC) * ObliqueMercator.sign(this._latC) * ObliqueMercator.sign(this._lonC - lon));
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
u = (this._A * Math.atan((S * Math.cos(this._gamO) + V * Math.sin(this._gamO)) / Math.cos(this._B * (lon - this._lonO))) / this._B) - (Math.abs(this._uC) * ObliqueMercator.sign(this._latC));
|
|
130
|
-
}
|
|
131
|
-
const sinGamC = Math.sin(this._gamC);
|
|
132
|
-
const cosGamC = Math.cos(this._gamC);
|
|
133
|
-
const E = v * cosGamC + u * sinGamC + this._eC;
|
|
134
|
-
const N = u * cosGamC - v * sinGamC + this._nC;
|
|
135
|
-
/* Save the position */
|
|
136
|
-
target.setX(E);
|
|
137
|
-
target.setY(N);
|
|
138
|
-
target.setZ(source.getZ()); // Keep the Z value
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* OperationMethod interface method.
|
|
142
|
-
* @see OperationMethod#reverse
|
|
143
|
-
*/
|
|
144
|
-
reverse(sourceCRS, source, targetCRS, target) {
|
|
145
|
-
/* Get the parameters */
|
|
146
|
-
const E = target.getX();
|
|
147
|
-
const N = target.getY();
|
|
148
|
-
/* Make the calculation */
|
|
149
|
-
const sinGamC = Math.sin(this._gamC);
|
|
150
|
-
const cosGamC = Math.cos(this._gamC);
|
|
151
|
-
const v = (E - this._eC) * cosGamC - (N - this._nC) * sinGamC;
|
|
152
|
-
const u = (N - this._nC) * cosGamC + (E - this._eC) * sinGamC + (Math.abs(this._uC) * ObliqueMercator.sign(this._latC));
|
|
153
|
-
const Q = Math.exp(-this._B * v / this._A);
|
|
154
|
-
const S = (Q - 1.0 / Q) / 2.0;
|
|
155
|
-
const T = (Q + 1.0 / Q) / 2.0;
|
|
156
|
-
const V = Math.sin(this._B * u / this._A);
|
|
157
|
-
const U = (V * Math.cos(this._gamO) + S * Math.sin(this._gamO)) / T;
|
|
158
|
-
const t = Math.pow(this._H / Math.sqrt((1.0 + U) / (1.0 - U)), 1.0 / this._B);
|
|
159
|
-
const chi = ObliqueMercator.PI / 2.0 - 2.0 * Math.atan(t);
|
|
160
|
-
const lat = chi + Math.sin(2.0 * chi) * this._rev1 + Math.sin(4.0 * chi) * this._rev2 + Math.sin(6.0 * chi) * this._rev3 + Math.sin(8.0 * chi) * this._rev4;
|
|
161
|
-
// double lon = lonO-Math.atan((S*Math.cos(gamO)-V*Math.sin(gamO))/Math.cos(B*u/A))/B;
|
|
162
|
-
const lon = this._lonO - Math.atan2((S * Math.cos(this._gamO) - V * Math.sin(this._gamO)), Math.cos(this._B * u / this._A)) / this._B; // replaced atan(y/x) by atan2(y,x). LER, 23/05/2017
|
|
163
|
-
/* Save the position */
|
|
164
|
-
source.setX(lon);
|
|
165
|
-
source.setY(lat);
|
|
166
|
-
source.setZ(target.getZ()); // Keep the Z value
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
exports.ObliqueMercator = ObliqueMercator;
|
|
170
|
-
/** The code of this method */
|
|
171
|
-
ObliqueMercator.METHOD_CODE = 9815; // Hotine Variant B
|
|
172
|
-
/** The value of PI */
|
|
173
|
-
ObliqueMercator.PI = Math.PI;
|
|
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.ObliqueMercator = void 0;
|
|
11
|
+
const OperationMethod_1 = require("../OperationMethod");
|
|
12
|
+
/**
|
|
13
|
+
* Class ObliqueMercator defines an Oblique Mercator projection (Hotine Variant B).
|
|
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.6 (spec v6.13): Oblique Mercator and Hotine Oblique Mercator
|
|
26
|
+
*
|
|
27
|
+
* @version 1.0 May 2008
|
|
28
|
+
*/
|
|
29
|
+
/** @internal */
|
|
30
|
+
class ObliqueMercator extends OperationMethod_1.OperationMethod {
|
|
31
|
+
/**
|
|
32
|
+
* Create a new projection.
|
|
33
|
+
* @param parameters the values of the parameters.
|
|
34
|
+
*/
|
|
35
|
+
constructor(parameters) {
|
|
36
|
+
super(ObliqueMercator.METHOD_CODE, "Oblique Mercator", parameters);
|
|
37
|
+
/* Store the parameters */
|
|
38
|
+
this._latC = parameters.getValue(8811);
|
|
39
|
+
this._lonC = parameters.getValue(8812);
|
|
40
|
+
this._aziC = parameters.getValue(8813);
|
|
41
|
+
this._gamC = parameters.getValue(8814);
|
|
42
|
+
this._kC = parameters.getValue(8815);
|
|
43
|
+
this._eC = parameters.getValue(8816);
|
|
44
|
+
this._nC = parameters.getValue(8817);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get the sign of a number.
|
|
48
|
+
*/
|
|
49
|
+
static sign(v) {
|
|
50
|
+
return (v < 0.0) ? (-1.0) : (1.0);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get the power of a number (must be able to handle negative 'n' values).
|
|
54
|
+
*/
|
|
55
|
+
static pow(n, e) {
|
|
56
|
+
let p = 1.0;
|
|
57
|
+
for (let i = 0; i < e; i++)
|
|
58
|
+
p *= n;
|
|
59
|
+
return p;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* OperationMethod method.
|
|
63
|
+
* @see OperationMethod#initialize
|
|
64
|
+
*/
|
|
65
|
+
initialize(operation) {
|
|
66
|
+
/* Get the ellipsoid */
|
|
67
|
+
const sourceCRS = operation.getSourceCRS();
|
|
68
|
+
/* Prepare the forward parameters */
|
|
69
|
+
this._a = sourceCRS.getEllipsoid().getA();
|
|
70
|
+
this._e = sourceCRS.getEllipsoid().getE();
|
|
71
|
+
this._e2 = this._e * this._e;
|
|
72
|
+
this._B = Math.sqrt(1.0 + (this._e2 * ObliqueMercator.pow(Math.cos(this._latC), 4) / (1.0 - this._e2)));
|
|
73
|
+
const esinLatC = this._e * Math.sin(this._latC);
|
|
74
|
+
this._A = this._a * this._B * this._kC * Math.sqrt(1.0 - this._e2) / (1.0 - ObliqueMercator.pow(esinLatC, 2));
|
|
75
|
+
this._tO = Math.tan(ObliqueMercator.PI / 4.0 - this._latC / 2.0) / Math.pow((1.0 - esinLatC) / (1.0 + esinLatC), this._e / 2.0);
|
|
76
|
+
this._D = this._B * Math.sqrt(1.0 - this._e2) / (Math.cos(this._latC) * Math.sqrt(1.0 - ObliqueMercator.pow(esinLatC, 2)));
|
|
77
|
+
const D2 = (this._D < 1.0) ? (1.0) : (this._D * this._D);
|
|
78
|
+
this._F = this._D + Math.sqrt(D2 - 1.0) * ObliqueMercator.sign(this._latC);
|
|
79
|
+
this._H = this._F * Math.pow(this._tO, this._B);
|
|
80
|
+
this._G = (this._F - 1.0 / this._F) / 2.0;
|
|
81
|
+
this._gamO = Math.asin(Math.sin(this._aziC) / this._D);
|
|
82
|
+
// fix for Switzerland CRS 2056 projection error. LER, 19/06/2018
|
|
83
|
+
let w = this._G * Math.tan(this._gamO);
|
|
84
|
+
if (Math.abs(1.0 - w) < 1.0e-13)
|
|
85
|
+
w = 1.0; // Math.asin(0.9999999999999999) gives a 1.49e-8 difference from the asin(1.0) value, which leads to a 19 cm projection error
|
|
86
|
+
// this._lonO = lonC-Math.asin(G*Math.tan(gamO))/B;
|
|
87
|
+
this._lonO = this._lonC - Math.asin(w) / this._B;
|
|
88
|
+
// end of fix
|
|
89
|
+
this._vC = 0.0;
|
|
90
|
+
if (Math.abs(this._aziC - 0.5 * ObliqueMercator.PI) < 1.0e-12)
|
|
91
|
+
this._uC = this._A * (this._lonC - this._lonO); // special case aziC==90 (Hungary, Switzerland)
|
|
92
|
+
else
|
|
93
|
+
this._uC = (this._A / this._B) * Math.atan(Math.sqrt(D2 - 1.0) / Math.cos(this._aziC)) * ObliqueMercator.sign(this._latC);
|
|
94
|
+
/* Prepare the reverse parameters */
|
|
95
|
+
const e4 = this._e2 * this._e2;
|
|
96
|
+
const e6 = e4 * this._e2;
|
|
97
|
+
const e8 = e4 * e4;
|
|
98
|
+
this._rev1 = (this._e2 / 2.0 + 5.0 * e4 / 24.0 + e6 / 12.0 + 13.0 * e8 / 360.0);
|
|
99
|
+
this._rev2 = (7.0 * e4 / 48.0 + 29.0 * e6 / 240.0 + 811.0 * e8 / 11520.0);
|
|
100
|
+
this._rev3 = (7.0 * e6 / 120.0 + 81.0 * e8 / 1120.0);
|
|
101
|
+
this._rev4 = (4279.0 * e8 / 161280.0);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* OperationMethod interface method.
|
|
105
|
+
* @see OperationMethod#forward
|
|
106
|
+
*/
|
|
107
|
+
forward(sourceCRS, source, targetCRS, target) {
|
|
108
|
+
/* Get the parameters (radians) */
|
|
109
|
+
const lon = source.getX();
|
|
110
|
+
const lat = source.getY();
|
|
111
|
+
/* Make the calculation */
|
|
112
|
+
const esinLat = this._e * Math.sin(lat);
|
|
113
|
+
const t = Math.tan(ObliqueMercator.PI / 4.0 - lat / 2.0) / Math.pow((1.0 - esinLat) / (1.0 + esinLat), this._e / 2.0);
|
|
114
|
+
const Q = this._H / Math.pow(t, this._B);
|
|
115
|
+
const S = (Q - 1.0 / Q) / 2.0;
|
|
116
|
+
const T = (Q + 1.0 / Q) / 2.0;
|
|
117
|
+
const V = Math.sin(this._B * (lon - this._lonO));
|
|
118
|
+
const U = (-V * Math.cos(this._gamO) + S * Math.sin(this._gamO)) / T;
|
|
119
|
+
const v = this._A * Math.log((1.0 - U) / (1.0 + U)) / (2.0 * this._B);
|
|
120
|
+
let u;
|
|
121
|
+
if (Math.abs(this._aziC - 0.5 * ObliqueMercator.PI) < 1.0e-12) // aziC==90? new in guidance note 2 version 8.5. LER, 21/09/2016
|
|
122
|
+
{
|
|
123
|
+
if (lon == this._lonC)
|
|
124
|
+
u = 0.0;
|
|
125
|
+
else
|
|
126
|
+
u = (this._A * Math.atan((S * Math.cos(this._gamO) + V * Math.sin(this._gamO)) / Math.cos(this._B * (lon - this._lonO))) / this._B) - (Math.abs(this._uC) * ObliqueMercator.sign(this._latC) * ObliqueMercator.sign(this._lonC - lon));
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
u = (this._A * Math.atan((S * Math.cos(this._gamO) + V * Math.sin(this._gamO)) / Math.cos(this._B * (lon - this._lonO))) / this._B) - (Math.abs(this._uC) * ObliqueMercator.sign(this._latC));
|
|
130
|
+
}
|
|
131
|
+
const sinGamC = Math.sin(this._gamC);
|
|
132
|
+
const cosGamC = Math.cos(this._gamC);
|
|
133
|
+
const E = v * cosGamC + u * sinGamC + this._eC;
|
|
134
|
+
const N = u * cosGamC - v * sinGamC + this._nC;
|
|
135
|
+
/* Save the position */
|
|
136
|
+
target.setX(E);
|
|
137
|
+
target.setY(N);
|
|
138
|
+
target.setZ(source.getZ()); // Keep the Z value
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* OperationMethod interface method.
|
|
142
|
+
* @see OperationMethod#reverse
|
|
143
|
+
*/
|
|
144
|
+
reverse(sourceCRS, source, targetCRS, target) {
|
|
145
|
+
/* Get the parameters */
|
|
146
|
+
const E = target.getX();
|
|
147
|
+
const N = target.getY();
|
|
148
|
+
/* Make the calculation */
|
|
149
|
+
const sinGamC = Math.sin(this._gamC);
|
|
150
|
+
const cosGamC = Math.cos(this._gamC);
|
|
151
|
+
const v = (E - this._eC) * cosGamC - (N - this._nC) * sinGamC;
|
|
152
|
+
const u = (N - this._nC) * cosGamC + (E - this._eC) * sinGamC + (Math.abs(this._uC) * ObliqueMercator.sign(this._latC));
|
|
153
|
+
const Q = Math.exp(-this._B * v / this._A);
|
|
154
|
+
const S = (Q - 1.0 / Q) / 2.0;
|
|
155
|
+
const T = (Q + 1.0 / Q) / 2.0;
|
|
156
|
+
const V = Math.sin(this._B * u / this._A);
|
|
157
|
+
const U = (V * Math.cos(this._gamO) + S * Math.sin(this._gamO)) / T;
|
|
158
|
+
const t = Math.pow(this._H / Math.sqrt((1.0 + U) / (1.0 - U)), 1.0 / this._B);
|
|
159
|
+
const chi = ObliqueMercator.PI / 2.0 - 2.0 * Math.atan(t);
|
|
160
|
+
const lat = chi + Math.sin(2.0 * chi) * this._rev1 + Math.sin(4.0 * chi) * this._rev2 + Math.sin(6.0 * chi) * this._rev3 + Math.sin(8.0 * chi) * this._rev4;
|
|
161
|
+
// double lon = lonO-Math.atan((S*Math.cos(gamO)-V*Math.sin(gamO))/Math.cos(B*u/A))/B;
|
|
162
|
+
const lon = this._lonO - Math.atan2((S * Math.cos(this._gamO) - V * Math.sin(this._gamO)), Math.cos(this._B * u / this._A)) / this._B; // replaced atan(y/x) by atan2(y,x). LER, 23/05/2017
|
|
163
|
+
/* Save the position */
|
|
164
|
+
source.setX(lon);
|
|
165
|
+
source.setY(lat);
|
|
166
|
+
source.setZ(target.getZ()); // Keep the Z value
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
exports.ObliqueMercator = ObliqueMercator;
|
|
170
|
+
/** The code of this method */
|
|
171
|
+
ObliqueMercator.METHOD_CODE = 9815; // Hotine Variant B
|
|
172
|
+
/** The value of PI */
|
|
173
|
+
ObliqueMercator.PI = Math.PI;
|
|
174
174
|
//# sourceMappingURL=ObliqueMercator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObliqueMercator.js","sourceRoot":"","sources":["../../../../../src/spatial/ecrs/projection/ObliqueMercator.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAaH,wDAAqD;AAGrD;;;;;;;;;;;;;;;;GAgBG;AACH,gBAAgB;AAChB,MAAa,eAAgB,SAAQ,iCAAe;IA2ChD;;;SAGK;IACL,YAAmB,UAA8B;QAC7C,KAAK,CAAC,eAAe,CAAC,WAAW,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC;QACnE,0BAA0B;QAC1B,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,QAA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GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,oDAAoD;QACpM,uBAAuB;QACvB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,mBAAmB;IACnD,CAAC;;AAjLL,0CAkLC;AAjLG,8BAA8B;AACP,2BAAW,GAAU,IAAI,CAAC,CAAC,mBAAmB;AAErE,sBAAsB;AACE,kBAAE,GAAY,IAAI,CAAC,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module OrbitGT\n */\n\n// package orbitgt.spatial.ecrs.projection;\n\ntype int8 = number;\ntype int16 = number;\ntype int32 = number;\ntype float32 = number;\ntype float64 = number;\n\nimport { Coordinate } from \"../../geom/Coordinate\";\nimport { CRS } from \"../CRS\";\nimport { Operation } from \"../Operation\";\nimport { OperationMethod } from \"../OperationMethod\";\nimport { ParameterValueList } from \"../ParameterValueList\";\n\n/**\n * Class ObliqueMercator defines an Oblique Mercator projection (Hotine Variant B).\n *\n * The 'source' CRS is the geographic CRS.\n * The 'target' CRS is the projected CRS.\n *\n * Based on the following document:\n *\n * Coordinate Conversions and Transformations including Formulas\n * Guidance Note Number 7, part 2\n * Revised August 2006\n * Available at: http://www.epsg.org/\n *\n * Formulas: see 1.4.6 (spec v6.13): Oblique Mercator and Hotine Oblique Mercator\n *\n * @version 1.0 May 2008\n */\n/** @internal */\nexport class ObliqueMercator extends OperationMethod {\n /** The code of this method */\n public static readonly METHOD_CODE: int32 = 9815; // Hotine Variant B\n\n /** The value of PI */\n private static readonly PI: float64 = Math.PI;\n\n /** Latitude of the projection center */\n private _latC: float64;\n /** Longitude of the projection center */\n private _lonC: float64;\n /** Azimuth of the initial line passing through the projection center */\n private _aziC: float64;\n /** Angle from the recified grid to the skew (oblique) grid */\n private _gamC: float64;\n /** Scale factor on the initial line of projection */\n private _kC: float64;\n /** False easting at the center of projection */\n private _eC: float64;\n /** False northing at the center of projection */\n private _nC: float64;\n\n /** Forward calculation parameters */\n private _a: float64;\n private _e: float64;\n private _e2: float64;\n private _B: float64;\n private _A: float64;\n private _tO: float64;\n private _D: float64;\n private _F: float64;\n private _H: float64;\n private _G: float64;\n private _gamO: float64;\n private _lonO: float64;\n private _vC: float64;\n private _uC: float64;\n /** Reverse calculation parameters */\n private _rev1: float64;\n private _rev2: float64;\n private _rev3: float64;\n private _rev4: float64;\n\n /**\n * Create a new projection.\n * @param parameters the values of the parameters.\n */\n public constructor(parameters: ParameterValueList) {\n super(ObliqueMercator.METHOD_CODE, \"Oblique Mercator\", parameters);\n /* Store the parameters */\n this._latC = parameters.getValue(8811);\n this._lonC = parameters.getValue(8812);\n this._aziC = parameters.getValue(8813);\n this._gamC = parameters.getValue(8814);\n this._kC = parameters.getValue(8815);\n this._eC = parameters.getValue(8816);\n this._nC = parameters.getValue(8817);\n }\n\n /**\n * Get the sign of a number.\n */\n private static sign(v: float64): float64 {\n return (v < 0.0) ? (-1.0) : (1.0);\n }\n\n /**\n * Get the power of a number (must be able to handle negative 'n' values).\n */\n private static pow(n: float64, e: int32): float64 {\n let p: float64 = 1.0;\n for (let i: number = 0; i < e; i++) p *= n;\n return p;\n }\n\n /**\n * OperationMethod method.\n * @see OperationMethod#initialize\n */\n public override initialize(operation: Operation): void {\n /* Get the ellipsoid */\n const sourceCRS: CRS = operation.getSourceCRS();\n /* Prepare the forward parameters */\n this._a = sourceCRS.getEllipsoid().getA();\n this._e = sourceCRS.getEllipsoid().getE();\n this._e2 = this._e * this._e;\n this._B = Math.sqrt(1.0 + (this._e2 * ObliqueMercator.pow(Math.cos(this._latC), 4) / (1.0 - this._e2)));\n const esinLatC: float64 = this._e * Math.sin(this._latC);\n this._A = this._a * this._B * this._kC * Math.sqrt(1.0 - this._e2) / (1.0 - ObliqueMercator.pow(esinLatC, 2));\n this._tO = Math.tan(ObliqueMercator.PI / 4.0 - this._latC / 2.0) / Math.pow((1.0 - esinLatC) / (1.0 + esinLatC), this._e / 2.0);\n this._D = this._B * Math.sqrt(1.0 - this._e2) / (Math.cos(this._latC) * Math.sqrt(1.0 - ObliqueMercator.pow(esinLatC, 2)));\n const D2: float64 = (this._D < 1.0) ? (1.0) : (this._D * this._D);\n this._F = this._D + Math.sqrt(D2 - 1.0) * ObliqueMercator.sign(this._latC);\n this._H = this._F * Math.pow(this._tO, this._B);\n this._G = (this._F - 1.0 / this._F) / 2.0;\n this._gamO = Math.asin(Math.sin(this._aziC) / this._D);\n // fix for Switzerland CRS 2056 projection error. LER, 19/06/2018\n let w: float64 = this._G * Math.tan(this._gamO);\n if (Math.abs(1.0 - w) < 1.0e-13) w = 1.0; // Math.asin(0.9999999999999999) gives a 1.49e-8 difference from the asin(1.0) value, which leads to a 19 cm projection error\n // this._lonO = lonC-Math.asin(G*Math.tan(gamO))/B;\n this._lonO = this._lonC - Math.asin(w) / this._B;\n // end of fix\n this._vC = 0.0;\n if (Math.abs(this._aziC - 0.5 * ObliqueMercator.PI) < 1.0e-12) this._uC = this._A * (this._lonC - this._lonO); // special case aziC==90 (Hungary, Switzerland)\n else this._uC = (this._A / this._B) * Math.atan(Math.sqrt(D2 - 1.0) / Math.cos(this._aziC)) * ObliqueMercator.sign(this._latC);\n /* Prepare the reverse parameters */\n const e4: float64 = this._e2 * this._e2;\n const e6: float64 = e4 * this._e2;\n const e8: float64 = e4 * e4;\n this._rev1 = (this._e2 / 2.0 + 5.0 * e4 / 24.0 + e6 / 12.0 + 13.0 * e8 / 360.0);\n this._rev2 = (7.0 * e4 / 48.0 + 29.0 * e6 / 240.0 + 811.0 * e8 / 11520.0);\n this._rev3 = (7.0 * e6 / 120.0 + 81.0 * e8 / 1120.0);\n this._rev4 = (4279.0 * e8 / 161280.0);\n }\n\n /**\n * OperationMethod interface method.\n * @see OperationMethod#forward\n */\n public forward(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void {\n /* Get the parameters (radians) */\n const lon: float64 = source.getX();\n const lat: float64 = source.getY();\n /* Make the calculation */\n const esinLat: float64 = this._e * Math.sin(lat);\n const t: float64 = Math.tan(ObliqueMercator.PI / 4.0 - lat / 2.0) / Math.pow((1.0 - esinLat) / (1.0 + esinLat), this._e / 2.0);\n const Q: float64 = this._H / Math.pow(t, this._B);\n const S: float64 = (Q - 1.0 / Q) / 2.0;\n const T: float64 = (Q + 1.0 / Q) / 2.0;\n const V: float64 = Math.sin(this._B * (lon - this._lonO));\n const U: float64 = (-V * Math.cos(this._gamO) + S * Math.sin(this._gamO)) / T;\n const v: float64 = this._A * Math.log((1.0 - U) / (1.0 + U)) / (2.0 * this._B);\n let u: float64;\n if (Math.abs(this._aziC - 0.5 * ObliqueMercator.PI) < 1.0e-12) // aziC==90? new in guidance note 2 version 8.5. LER, 21/09/2016\n {\n if (lon == this._lonC) u = 0.0;\n else u = (this._A * Math.atan((S * Math.cos(this._gamO) + V * Math.sin(this._gamO)) / Math.cos(this._B * (lon - this._lonO))) / this._B) - (Math.abs(this._uC) * ObliqueMercator.sign(this._latC) * ObliqueMercator.sign(this._lonC - lon));\n } else {\n u = (this._A * Math.atan((S * Math.cos(this._gamO) + V * Math.sin(this._gamO)) / Math.cos(this._B * (lon - this._lonO))) / this._B) - (Math.abs(this._uC) * ObliqueMercator.sign(this._latC));\n }\n const sinGamC: float64 = Math.sin(this._gamC);\n const cosGamC: float64 = Math.cos(this._gamC);\n const E: float64 = v * cosGamC + u * sinGamC + this._eC;\n const N: float64 = u * cosGamC - v * sinGamC + this._nC;\n /* Save the position */\n target.setX(E);\n target.setY(N);\n target.setZ(source.getZ()); // Keep the Z value\n }\n\n /**\n * OperationMethod interface method.\n * @see OperationMethod#reverse\n */\n public reverse(sourceCRS: CRS, source: Coordinate, targetCRS: CRS, target: Coordinate): void {\n /* Get the parameters */\n const E: float64 = target.getX();\n const N: float64 = target.getY();\n /* Make the calculation */\n const sinGamC: float64 = Math.sin(this._gamC);\n const cosGamC: float64 = Math.cos(this._gamC);\n const v: float64 = (E - this._eC) * cosGamC - (N - this._nC) * sinGamC;\n const u: float64 = (N - this._nC) * cosGamC + (E - this._eC) * sinGamC + (Math.abs(this._uC) * ObliqueMercator.sign(this._latC));\n const Q: float64 = Math.exp(-this._B * v / this._A);\n const S: float64 = (Q - 1.0 / Q) / 2.0;\n const T: float64 = (Q + 1.0 / Q) / 2.0;\n const V: float64 = Math.sin(this._B * u / this._A);\n const U: float64 = (V * Math.cos(this._gamO) + S * Math.sin(this._gamO)) / T;\n const t: float64 = Math.pow(this._H / Math.sqrt((1.0 + U) / (1.0 - U)), 1.0 / this._B);\n const chi: float64 = ObliqueMercator.PI / 2.0 - 2.0 * Math.atan(t);\n const lat: float64 = chi + Math.sin(2.0 * chi) * this._rev1 + Math.sin(4.0 * chi) * this._rev2 + Math.sin(6.0 * chi) * this._rev3 + Math.sin(8.0 * chi) * this._rev4;\n // double lon = lonO-Math.atan((S*Math.cos(gamO)-V*Math.sin(gamO))/Math.cos(B*u/A))/B;\n const lon: float64 = this._lonO - Math.atan2((S * Math.cos(this._gamO) - V * Math.sin(this._gamO)), Math.cos(this._B * u / this._A)) / this._B; // replaced atan(y/x) by atan2(y,x). LER, 23/05/2017\n /* Save the position */\n source.setX(lon);\n source.setY(lat);\n source.setZ(target.getZ()); // Keep the Z value\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ObliqueMercator.js","sourceRoot":"","sources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I,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 { Operation } from \"../Operation\";\r\nimport { OperationMethod } from \"../OperationMethod\";\r\nimport { ParameterValueList } from \"../ParameterValueList\";\r\n\r\n/**\r\n * Class ObliqueMercator defines an Oblique Mercator projection (Hotine Variant B).\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.6 (spec v6.13): Oblique Mercator and Hotine Oblique Mercator\r\n *\r\n * @version 1.0 May 2008\r\n */\r\n/** @internal */\r\nexport class ObliqueMercator extends OperationMethod {\r\n /** The code of this method */\r\n public static readonly METHOD_CODE: int32 = 9815; // Hotine Variant B\r\n\r\n /** The value of PI */\r\n private static readonly PI: float64 = Math.PI;\r\n\r\n /** Latitude of the projection center */\r\n private _latC: float64;\r\n /** Longitude of the projection center */\r\n private _lonC: float64;\r\n /** Azimuth of the initial line passing through the projection center */\r\n private _aziC: float64;\r\n /** Angle from the recified grid to the skew (oblique) grid */\r\n private _gamC: float64;\r\n /** Scale factor on the initial line of projection */\r\n private _kC: float64;\r\n /** False easting at the center of projection */\r\n private _eC: float64;\r\n /** False northing at the center of projection */\r\n private _nC: 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 _B: float64;\r\n private _A: float64;\r\n private _tO: float64;\r\n private _D: float64;\r\n private _F: float64;\r\n private _H: float64;\r\n private _G: float64;\r\n private _gamO: float64;\r\n private _lonO: float64;\r\n private _vC: float64;\r\n private _uC: float64;\r\n /** Reverse calculation parameters */\r\n private _rev1: float64;\r\n private _rev2: float64;\r\n private _rev3: float64;\r\n private _rev4: 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(ObliqueMercator.METHOD_CODE, \"Oblique Mercator\", parameters);\r\n /* Store the parameters */\r\n this._latC = parameters.getValue(8811);\r\n this._lonC = parameters.getValue(8812);\r\n this._aziC = parameters.getValue(8813);\r\n this._gamC = parameters.getValue(8814);\r\n this._kC = parameters.getValue(8815);\r\n this._eC = parameters.getValue(8816);\r\n this._nC = parameters.getValue(8817);\r\n }\r\n\r\n /**\r\n * Get the sign of a number.\r\n */\r\n private static sign(v: float64): float64 {\r\n return (v < 0.0) ? (-1.0) : (1.0);\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 * OperationMethod method.\r\n * @see OperationMethod#initialize\r\n */\r\n public override initialize(operation: Operation): void {\r\n /* Get the ellipsoid */\r\n const sourceCRS: CRS = operation.getSourceCRS();\r\n /* Prepare the forward parameters */\r\n this._a = sourceCRS.getEllipsoid().getA();\r\n this._e = sourceCRS.getEllipsoid().getE();\r\n this._e2 = this._e * this._e;\r\n this._B = Math.sqrt(1.0 + (this._e2 * ObliqueMercator.pow(Math.cos(this._latC), 4) / (1.0 - this._e2)));\r\n const esinLatC: float64 = this._e * Math.sin(this._latC);\r\n this._A = this._a * this._B * this._kC * Math.sqrt(1.0 - this._e2) / (1.0 - ObliqueMercator.pow(esinLatC, 2));\r\n this._tO = Math.tan(ObliqueMercator.PI / 4.0 - this._latC / 2.0) / Math.pow((1.0 - esinLatC) / (1.0 + esinLatC), this._e / 2.0);\r\n this._D = this._B * Math.sqrt(1.0 - this._e2) / (Math.cos(this._latC) * Math.sqrt(1.0 - ObliqueMercator.pow(esinLatC, 2)));\r\n const D2: float64 = (this._D < 1.0) ? (1.0) : (this._D * this._D);\r\n this._F = this._D + Math.sqrt(D2 - 1.0) * ObliqueMercator.sign(this._latC);\r\n this._H = this._F * Math.pow(this._tO, this._B);\r\n this._G = (this._F - 1.0 / this._F) / 2.0;\r\n this._gamO = Math.asin(Math.sin(this._aziC) / this._D);\r\n // fix for Switzerland CRS 2056 projection error. LER, 19/06/2018\r\n let w: float64 = this._G * Math.tan(this._gamO);\r\n if (Math.abs(1.0 - w) < 1.0e-13) w = 1.0; // Math.asin(0.9999999999999999) gives a 1.49e-8 difference from the asin(1.0) value, which leads to a 19 cm projection error\r\n // this._lonO = lonC-Math.asin(G*Math.tan(gamO))/B;\r\n this._lonO = this._lonC - Math.asin(w) / this._B;\r\n // end of fix\r\n this._vC = 0.0;\r\n if (Math.abs(this._aziC - 0.5 * ObliqueMercator.PI) < 1.0e-12) this._uC = this._A * (this._lonC - this._lonO); // special case aziC==90 (Hungary, Switzerland)\r\n else this._uC = (this._A / this._B) * Math.atan(Math.sqrt(D2 - 1.0) / Math.cos(this._aziC)) * ObliqueMercator.sign(this._latC);\r\n /* Prepare the reverse parameters */\r\n const e4: float64 = this._e2 * this._e2;\r\n const e6: float64 = e4 * this._e2;\r\n const e8: float64 = e4 * e4;\r\n this._rev1 = (this._e2 / 2.0 + 5.0 * e4 / 24.0 + e6 / 12.0 + 13.0 * e8 / 360.0);\r\n this._rev2 = (7.0 * e4 / 48.0 + 29.0 * e6 / 240.0 + 811.0 * e8 / 11520.0);\r\n this._rev3 = (7.0 * e6 / 120.0 + 81.0 * e8 / 1120.0);\r\n this._rev4 = (4279.0 * e8 / 161280.0);\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 (radians) */\r\n const lon: float64 = source.getX();\r\n const lat: float64 = source.getY();\r\n /* Make the calculation */\r\n const esinLat: float64 = this._e * Math.sin(lat);\r\n const t: float64 = Math.tan(ObliqueMercator.PI / 4.0 - lat / 2.0) / Math.pow((1.0 - esinLat) / (1.0 + esinLat), this._e / 2.0);\r\n const Q: float64 = this._H / Math.pow(t, this._B);\r\n const S: float64 = (Q - 1.0 / Q) / 2.0;\r\n const T: float64 = (Q + 1.0 / Q) / 2.0;\r\n const V: float64 = Math.sin(this._B * (lon - this._lonO));\r\n const U: float64 = (-V * Math.cos(this._gamO) + S * Math.sin(this._gamO)) / T;\r\n const v: float64 = this._A * Math.log((1.0 - U) / (1.0 + U)) / (2.0 * this._B);\r\n let u: float64;\r\n if (Math.abs(this._aziC - 0.5 * ObliqueMercator.PI) < 1.0e-12) // aziC==90? new in guidance note 2 version 8.5. LER, 21/09/2016\r\n {\r\n if (lon == this._lonC) u = 0.0;\r\n else u = (this._A * Math.atan((S * Math.cos(this._gamO) + V * Math.sin(this._gamO)) / Math.cos(this._B * (lon - this._lonO))) / this._B) - (Math.abs(this._uC) * ObliqueMercator.sign(this._latC) * ObliqueMercator.sign(this._lonC - lon));\r\n } else {\r\n u = (this._A * Math.atan((S * Math.cos(this._gamO) + V * Math.sin(this._gamO)) / Math.cos(this._B * (lon - this._lonO))) / this._B) - (Math.abs(this._uC) * ObliqueMercator.sign(this._latC));\r\n }\r\n const sinGamC: float64 = Math.sin(this._gamC);\r\n const cosGamC: float64 = Math.cos(this._gamC);\r\n const E: float64 = v * cosGamC + u * sinGamC + this._eC;\r\n const N: float64 = u * cosGamC - v * sinGamC + this._nC;\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();\r\n const N: float64 = target.getY();\r\n /* Make the calculation */\r\n const sinGamC: float64 = Math.sin(this._gamC);\r\n const cosGamC: float64 = Math.cos(this._gamC);\r\n const v: float64 = (E - this._eC) * cosGamC - (N - this._nC) * sinGamC;\r\n const u: float64 = (N - this._nC) * cosGamC + (E - this._eC) * sinGamC + (Math.abs(this._uC) * ObliqueMercator.sign(this._latC));\r\n const Q: float64 = Math.exp(-this._B * v / this._A);\r\n const S: float64 = (Q - 1.0 / Q) / 2.0;\r\n const T: float64 = (Q + 1.0 / Q) / 2.0;\r\n const V: float64 = Math.sin(this._B * u / this._A);\r\n const U: float64 = (V * Math.cos(this._gamO) + S * Math.sin(this._gamO)) / T;\r\n const t: float64 = Math.pow(this._H / Math.sqrt((1.0 + U) / (1.0 - U)), 1.0 / this._B);\r\n const chi: float64 = ObliqueMercator.PI / 2.0 - 2.0 * Math.atan(t);\r\n const lat: float64 = chi + Math.sin(2.0 * chi) * this._rev1 + Math.sin(4.0 * chi) * this._rev2 + Math.sin(6.0 * chi) * this._rev3 + Math.sin(8.0 * chi) * this._rev4;\r\n // double lon = lonO-Math.atan((S*Math.cos(gamO)-V*Math.sin(gamO))/Math.cos(B*u/A))/B;\r\n const lon: float64 = this._lonO - Math.atan2((S * Math.cos(this._gamO) - V * Math.sin(this._gamO)), Math.cos(this._B * u / this._A)) / this._B; // replaced atan(y/x) by atan2(y,x). LER, 23/05/2017\r\n /* Save the position */\r\n source.setX(lon);\r\n source.setY(lat);\r\n source.setZ(target.getZ()); // Keep the Z value\r\n }\r\n}\r\n"]}
|