@itwin/core-orbitgt 4.0.0-dev.7 → 4.0.0-dev.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -1
- package/lib/cjs/core-orbitgt.d.ts +26 -26
- package/lib/cjs/core-orbitgt.js +62 -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/AttributeReader.d.ts +63 -63
- package/lib/cjs/pointcloud/format/opc/AttributeReader.d.ts.map +1 -1
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js +24 -24
- package/lib/cjs/pointcloud/format/opc/BlockRecord.d.ts +54 -54
- package/lib/cjs/pointcloud/format/opc/BlockRecord.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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/DirectoryReader.d.ts +75 -75
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.d.ts.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js +169 -169
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.d.ts +59 -59
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.d.ts.map +1 -1
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js +89 -89
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +106 -106
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.d.ts.map +1 -1
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js +197 -197
- 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/FileReader.d.ts +118 -118
- package/lib/cjs/pointcloud/format/opc/FileReader.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/pointcloud/format/opc/FileRecord.js +125 -125
- package/lib/cjs/pointcloud/format/opc/GeometryReader.d.ts +79 -79
- package/lib/cjs/pointcloud/format/opc/GeometryReader.d.ts.map +1 -1
- 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/OPCReader.d.ts +157 -157
- package/lib/cjs/pointcloud/format/opc/OPCReader.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/pointcloud/format/opc/PointReader.js +152 -152
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.d.ts +63 -63
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.d.ts.map +1 -1
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js +92 -92
- package/lib/cjs/pointcloud/format/opc/TileRecord.d.ts +88 -88
- package/lib/cjs/pointcloud/format/opc/TileRecord.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/pointcloud/model/BlockIndex.js +48 -48
- package/lib/cjs/pointcloud/model/CloudPoint.d.ts +210 -210
- package/lib/cjs/pointcloud/model/CloudPoint.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/pointcloud/model/Grid.js +129 -129
- package/lib/cjs/pointcloud/model/GridIndex.d.ts +66 -66
- package/lib/cjs/pointcloud/model/GridIndex.d.ts.map +1 -1
- package/lib/cjs/pointcloud/model/GridIndex.js +93 -93
- package/lib/cjs/pointcloud/model/PointAttribute.d.ts +208 -208
- package/lib/cjs/pointcloud/model/PointAttribute.d.ts.map +1 -1
- package/lib/cjs/pointcloud/model/PointAttribute.js +374 -374
- package/lib/cjs/pointcloud/model/PointCloudReader.d.ts +156 -156
- package/lib/cjs/pointcloud/model/PointCloudReader.d.ts.map +1 -1
- package/lib/cjs/pointcloud/model/PointCloudReader.js +189 -189
- package/lib/cjs/pointcloud/model/PointData.d.ts +17 -17
- package/lib/cjs/pointcloud/model/PointData.js +24 -24
- package/lib/cjs/pointcloud/model/PointDataRaw.d.ts +34 -34
- package/lib/cjs/pointcloud/model/PointDataRaw.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/pointcloud/model/TileIndex.js +47 -47
- package/lib/cjs/pointcloud/render/AViewRequest.d.ts +38 -38
- package/lib/cjs/pointcloud/render/AViewRequest.d.ts.map +1 -1
- package/lib/cjs/pointcloud/render/AViewRequest.js +24 -24
- package/lib/cjs/pointcloud/render/Block.d.ts +67 -67
- package/lib/cjs/pointcloud/render/Block.js +119 -119
- package/lib/cjs/pointcloud/render/DataManager.d.ts +136 -136
- package/lib/cjs/pointcloud/render/DataManager.d.ts.map +1 -1
- 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/Level.d.ts +90 -90
- package/lib/cjs/pointcloud/render/Level.d.ts.map +1 -1
- package/lib/cjs/pointcloud/render/Level.js +119 -119
- package/lib/cjs/pointcloud/render/TileLoadSorter.d.ts +60 -60
- package/lib/cjs/pointcloud/render/TileLoadSorter.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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/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.d.ts.map +1 -1
- package/lib/cjs/spatial/ecrs/Axis.js +93 -93
- package/lib/cjs/spatial/ecrs/CRS.d.ts +447 -447
- package/lib/cjs/spatial/ecrs/CRS.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/spatial/ecrs/Ellipsoid.js +336 -336
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/spatial/ecrs/OperationMethod.js +75 -75
- package/lib/cjs/spatial/ecrs/ParameterValue.d.ts +49 -49
- package/lib/cjs/spatial/ecrs/ParameterValue.d.ts.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValue.js +65 -65
- package/lib/cjs/spatial/ecrs/ParameterValueList.d.ts +72 -72
- package/lib/cjs/spatial/ecrs/ParameterValueList.d.ts.map +1 -1
- package/lib/cjs/spatial/ecrs/ParameterValueList.js +120 -120
- package/lib/cjs/spatial/ecrs/PrimeMeridian.d.ts +78 -78
- package/lib/cjs/spatial/ecrs/PrimeMeridian.d.ts.map +1 -1
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js +108 -108
- package/lib/cjs/spatial/ecrs/Registry.d.ts +109 -109
- package/lib/cjs/spatial/ecrs/Registry.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/spatial/ecrs/VerticalModel.js +88 -88
- package/lib/cjs/spatial/ecrs/WellKnownText.d.ts +153 -153
- package/lib/cjs/spatial/ecrs/WellKnownText.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js +128 -128
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.d.ts +101 -101
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/spatial/geom/Bounds.js +156 -156
- package/lib/cjs/spatial/geom/Coordinate.d.ts +61 -61
- package/lib/cjs/spatial/geom/Coordinate.d.ts.map +1 -1
- package/lib/cjs/spatial/geom/Coordinate.js +186 -186
- package/lib/cjs/spatial/geom/Line.d.ts +225 -225
- package/lib/cjs/spatial/geom/Line.d.ts.map +1 -1
- package/lib/cjs/spatial/geom/Line.js +432 -432
- package/lib/cjs/spatial/geom/Transform.d.ts +340 -340
- package/lib/cjs/spatial/geom/Transform.d.ts.map +1 -1
- package/lib/cjs/spatial/geom/Transform.js +748 -748
- package/lib/cjs/system/buffer/ABuffer.d.ts +51 -51
- package/lib/cjs/system/buffer/ABuffer.d.ts.map +1 -1
- package/lib/cjs/system/buffer/ABuffer.js +90 -90
- package/lib/cjs/system/buffer/Float32Buffer.d.ts +46 -46
- package/lib/cjs/system/buffer/Float32Buffer.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/system/buffer/LittleEndian.js +303 -303
- package/lib/cjs/system/buffer/Uint16Buffer.d.ts +49 -49
- package/lib/cjs/system/buffer/Uint16Buffer.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/system/collection/AList.js +70 -70
- package/lib/cjs/system/collection/IntMap.d.ts +18 -18
- package/lib/cjs/system/collection/IntMap.d.ts.map +1 -1
- package/lib/cjs/system/collection/IntMap.js +35 -35
- package/lib/cjs/system/collection/StringMap.d.ts +26 -26
- package/lib/cjs/system/collection/StringMap.d.ts.map +1 -1
- package/lib/cjs/system/collection/StringMap.js +63 -63
- package/lib/cjs/system/io/ABufferInStream.d.ts +29 -29
- package/lib/cjs/system/io/ABufferInStream.d.ts.map +1 -1
- package/lib/cjs/system/io/ABufferInStream.js +46 -46
- package/lib/cjs/system/io/InStream.d.ts +23 -23
- package/lib/cjs/system/io/InStream.d.ts.map +1 -1
- package/lib/cjs/system/io/InStream.js +34 -34
- package/lib/cjs/system/io/OutStream.d.ts +23 -23
- package/lib/cjs/system/io/OutStream.d.ts.map +1 -1
- package/lib/cjs/system/io/OutStream.js +33 -33
- package/lib/cjs/system/runtime/ALong.d.ts +329 -329
- package/lib/cjs/system/runtime/ALong.d.ts.map +1 -1
- 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/DownloaderXhr.d.ts +18 -18
- package/lib/cjs/system/runtime/DownloaderXhr.js +131 -131
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/cjs/system/runtime/iComparator.js +9 -9
- package/lib/cjs/system/storage/CacheList.d.ts +39 -39
- package/lib/cjs/system/storage/CacheList.d.ts.map +1 -1
- package/lib/cjs/system/storage/CacheList.js +80 -80
- package/lib/cjs/system/storage/CachedItem.d.ts +21 -21
- package/lib/cjs/system/storage/CachedItem.d.ts.map +1 -1
- package/lib/cjs/system/storage/CachedItem.js +25 -25
- package/lib/cjs/system/storage/ContentLoader.d.ts +64 -64
- package/lib/cjs/system/storage/ContentLoader.d.ts.map +1 -1
- 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/FileRange.d.ts +20 -20
- package/lib/cjs/system/storage/FileRange.d.ts.map +1 -1
- package/lib/cjs/system/storage/FileRange.js +24 -24
- package/lib/cjs/system/storage/FileStorage.d.ts +44 -44
- package/lib/cjs/system/storage/FileStorage.d.ts.map +1 -1
- package/lib/cjs/system/storage/FileStorage.js +62 -62
- package/lib/cjs/system/storage/NodeFS.d.ts +41 -41
- package/lib/cjs/system/storage/NodeFS.d.ts.map +1 -1
- package/lib/cjs/system/storage/NodeFS.js +79 -79
- package/lib/cjs/system/storage/PageCachedFile.d.ts +54 -54
- package/lib/cjs/system/storage/PageCachedFile.d.ts.map +1 -1
- package/lib/cjs/system/storage/PageCachedFile.js +165 -165
- package/lib/cjs/system/storage/UrlFS.d.ts +53 -53
- package/lib/cjs/system/storage/UrlFS.d.ts.map +1 -1
- 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/pointcloud/format/opc/AttributeMask.d.ts +30 -30
- package/lib/esm/pointcloud/format/opc/AttributeMask.js +43 -43
- package/lib/esm/pointcloud/format/opc/AttributeReader.d.ts +63 -63
- package/lib/esm/pointcloud/format/opc/AttributeReader.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/AttributeReader.js +20 -20
- package/lib/esm/pointcloud/format/opc/BlockRecord.d.ts +54 -54
- package/lib/esm/pointcloud/format/opc/BlockRecord.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/BlockRecord.js +81 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/ContainerFile.js +196 -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/DirectoryReader.d.ts +75 -75
- package/lib/esm/pointcloud/format/opc/DirectoryReader.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js +165 -165
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.d.ts +59 -59
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js +85 -85
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +106 -106
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js +193 -193
- 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/FileReader.d.ts +118 -118
- package/lib/esm/pointcloud/format/opc/FileReader.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileReader.js +245 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/FileRecord.js +121 -121
- package/lib/esm/pointcloud/format/opc/GeometryReader.d.ts +79 -79
- package/lib/esm/pointcloud/format/opc/GeometryReader.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/GeometryReader.js +160 -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/OPCReader.d.ts +157 -157
- package/lib/esm/pointcloud/format/opc/OPCReader.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/PointReader.js +148 -148
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.d.ts +63 -63
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js +88 -88
- package/lib/esm/pointcloud/format/opc/TileRecord.d.ts +88 -88
- package/lib/esm/pointcloud/format/opc/TileRecord.d.ts.map +1 -1
- package/lib/esm/pointcloud/format/opc/TileRecord.js +158 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/AttributeTypes.js +61 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/AttributeValue.js +505 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/BlockIndex.js +44 -44
- package/lib/esm/pointcloud/model/CloudPoint.d.ts +210 -210
- package/lib/esm/pointcloud/model/CloudPoint.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/CloudPoint.js +315 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/Grid.js +125 -125
- package/lib/esm/pointcloud/model/GridIndex.d.ts +66 -66
- package/lib/esm/pointcloud/model/GridIndex.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/GridIndex.js +89 -89
- package/lib/esm/pointcloud/model/PointAttribute.d.ts +208 -208
- package/lib/esm/pointcloud/model/PointAttribute.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/PointAttribute.js +370 -370
- package/lib/esm/pointcloud/model/PointCloudReader.d.ts +156 -156
- package/lib/esm/pointcloud/model/PointCloudReader.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/PointCloudReader.js +185 -185
- package/lib/esm/pointcloud/model/PointData.d.ts +17 -17
- package/lib/esm/pointcloud/model/PointData.js +20 -20
- package/lib/esm/pointcloud/model/PointDataRaw.d.ts +34 -34
- package/lib/esm/pointcloud/model/PointDataRaw.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/PointDataRaw.js +66 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/ReadRequest.js +236 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/StandardAttributes.js +44 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/model/TileIndex.js +43 -43
- package/lib/esm/pointcloud/render/AViewRequest.d.ts +38 -38
- package/lib/esm/pointcloud/render/AViewRequest.d.ts.map +1 -1
- package/lib/esm/pointcloud/render/AViewRequest.js +20 -20
- package/lib/esm/pointcloud/render/Block.d.ts +67 -67
- package/lib/esm/pointcloud/render/Block.js +115 -115
- package/lib/esm/pointcloud/render/DataManager.d.ts +136 -136
- package/lib/esm/pointcloud/render/DataManager.d.ts.map +1 -1
- package/lib/esm/pointcloud/render/DataManager.js +339 -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/Level.d.ts +90 -90
- package/lib/esm/pointcloud/render/Level.d.ts.map +1 -1
- package/lib/esm/pointcloud/render/Level.js +115 -115
- package/lib/esm/pointcloud/render/TileLoadSorter.d.ts +60 -60
- package/lib/esm/pointcloud/render/TileLoadSorter.d.ts.map +1 -1
- package/lib/esm/pointcloud/render/TileLoadSorter.js +96 -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.d.ts.map +1 -1
- package/lib/esm/pointcloud/render/ViewTree.js +360 -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/CRSManager.d.ts +49 -49
- package/lib/esm/spatial/crs/CRSManager.js +106 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/Axis.js +89 -89
- package/lib/esm/spatial/ecrs/CRS.d.ts +447 -447
- package/lib/esm/spatial/ecrs/CRS.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/CRS.js +927 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/CoordinateSystem.js +323 -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 +101 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/Datum.js +163 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/Ellipsoid.js +332 -332
- 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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/OnlineRegistry.js +73 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/Operation.js +342 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/OperationMethod.js +71 -71
- package/lib/esm/spatial/ecrs/ParameterValue.d.ts +49 -49
- package/lib/esm/spatial/ecrs/ParameterValue.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValue.js +61 -61
- package/lib/esm/spatial/ecrs/ParameterValueList.d.ts +72 -72
- package/lib/esm/spatial/ecrs/ParameterValueList.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/ParameterValueList.js +116 -116
- package/lib/esm/spatial/ecrs/PrimeMeridian.d.ts +78 -78
- package/lib/esm/spatial/ecrs/PrimeMeridian.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/PrimeMeridian.js +104 -104
- package/lib/esm/spatial/ecrs/Registry.d.ts +109 -109
- package/lib/esm/spatial/ecrs/Registry.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/Registry.js +204 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/Transform.js +393 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/Unit.js +333 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/VerticalModel.js +84 -84
- package/lib/esm/spatial/ecrs/WellKnownText.d.ts +153 -153
- package/lib/esm/spatial/ecrs/WellKnownText.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownText.js +491 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js +124 -124
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.d.ts +101 -101
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js +159 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js +122 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +70 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js +126 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js +176 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js +109 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js +170 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js +205 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js +180 -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.d.ts.map +1 -1
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js +127 -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.d.ts.map +1 -1
- package/lib/esm/spatial/geom/Bounds.js +152 -152
- package/lib/esm/spatial/geom/Coordinate.d.ts +61 -61
- package/lib/esm/spatial/geom/Coordinate.d.ts.map +1 -1
- package/lib/esm/spatial/geom/Coordinate.js +182 -182
- package/lib/esm/spatial/geom/Line.d.ts +225 -225
- package/lib/esm/spatial/geom/Line.d.ts.map +1 -1
- package/lib/esm/spatial/geom/Line.js +428 -428
- package/lib/esm/spatial/geom/Transform.d.ts +340 -340
- package/lib/esm/spatial/geom/Transform.d.ts.map +1 -1
- package/lib/esm/spatial/geom/Transform.js +744 -744
- package/lib/esm/system/buffer/ABuffer.d.ts +51 -51
- package/lib/esm/system/buffer/ABuffer.d.ts.map +1 -1
- package/lib/esm/system/buffer/ABuffer.js +86 -86
- package/lib/esm/system/buffer/Float32Buffer.d.ts +46 -46
- package/lib/esm/system/buffer/Float32Buffer.d.ts.map +1 -1
- package/lib/esm/system/buffer/Float32Buffer.js +57 -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.d.ts.map +1 -1
- package/lib/esm/system/buffer/LittleEndian.js +299 -299
- package/lib/esm/system/buffer/Uint16Buffer.d.ts +49 -49
- package/lib/esm/system/buffer/Uint16Buffer.d.ts.map +1 -1
- package/lib/esm/system/buffer/Uint16Buffer.js +62 -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.d.ts.map +1 -1
- package/lib/esm/system/buffer/Uint8Buffer.js +62 -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.d.ts.map +1 -1
- package/lib/esm/system/collection/AList.js +66 -66
- package/lib/esm/system/collection/IntMap.d.ts +18 -18
- package/lib/esm/system/collection/IntMap.d.ts.map +1 -1
- package/lib/esm/system/collection/IntMap.js +31 -31
- package/lib/esm/system/collection/StringMap.d.ts +26 -26
- package/lib/esm/system/collection/StringMap.d.ts.map +1 -1
- package/lib/esm/system/collection/StringMap.js +59 -59
- package/lib/esm/system/io/ABufferInStream.d.ts +29 -29
- package/lib/esm/system/io/ABufferInStream.d.ts.map +1 -1
- package/lib/esm/system/io/ABufferInStream.js +42 -42
- package/lib/esm/system/io/InStream.d.ts +23 -23
- package/lib/esm/system/io/InStream.d.ts.map +1 -1
- package/lib/esm/system/io/InStream.js +30 -30
- package/lib/esm/system/io/OutStream.d.ts +23 -23
- package/lib/esm/system/io/OutStream.d.ts.map +1 -1
- package/lib/esm/system/io/OutStream.js +29 -29
- package/lib/esm/system/runtime/ALong.d.ts +329 -329
- package/lib/esm/system/runtime/ALong.d.ts.map +1 -1
- package/lib/esm/system/runtime/ALong.js +684 -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 +28 -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 +35 -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/DownloaderXhr.d.ts +18 -18
- package/lib/esm/system/runtime/DownloaderXhr.js +127 -127
- package/lib/esm/system/runtime/Message.d.ts +16 -16
- package/lib/esm/system/runtime/Message.js +36 -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.d.ts.map +1 -1
- package/lib/esm/system/runtime/Numbers.js +84 -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.d.ts.map +1 -1
- package/lib/esm/system/runtime/Strings.js +185 -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.d.ts.map +1 -1
- package/lib/esm/system/runtime/iComparator.js +8 -8
- package/lib/esm/system/storage/CacheList.d.ts +39 -39
- package/lib/esm/system/storage/CacheList.d.ts.map +1 -1
- package/lib/esm/system/storage/CacheList.js +76 -76
- package/lib/esm/system/storage/CachedItem.d.ts +21 -21
- package/lib/esm/system/storage/CachedItem.d.ts.map +1 -1
- package/lib/esm/system/storage/CachedItem.js +21 -21
- package/lib/esm/system/storage/ContentLoader.d.ts +64 -64
- package/lib/esm/system/storage/ContentLoader.d.ts.map +1 -1
- package/lib/esm/system/storage/ContentLoader.js +92 -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/FileRange.d.ts +20 -20
- package/lib/esm/system/storage/FileRange.d.ts.map +1 -1
- package/lib/esm/system/storage/FileRange.js +20 -20
- package/lib/esm/system/storage/FileStorage.d.ts +44 -44
- package/lib/esm/system/storage/FileStorage.d.ts.map +1 -1
- package/lib/esm/system/storage/FileStorage.js +58 -58
- package/lib/esm/system/storage/NodeFS.d.ts +41 -41
- package/lib/esm/system/storage/NodeFS.d.ts.map +1 -1
- package/lib/esm/system/storage/NodeFS.js +75 -75
- package/lib/esm/system/storage/PageCachedFile.d.ts +54 -54
- package/lib/esm/system/storage/PageCachedFile.d.ts.map +1 -1
- package/lib/esm/system/storage/PageCachedFile.js +161 -161
- package/lib/esm/system/storage/UrlFS.d.ts +53 -53
- package/lib/esm/system/storage/UrlFS.d.ts.map +1 -1
- package/lib/esm/system/storage/UrlFS.js +110 -110
- package/lib/esm/system/storage/UrlFS.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,342 +1,343 @@
|
|
|
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 { AList } from "../../system/collection/AList";
|
|
9
|
-
import { Numbers } from "../../system/runtime/Numbers";
|
|
10
|
-
import { Strings } from "../../system/runtime/Strings";
|
|
11
|
-
import { Registry } from "./Registry";
|
|
12
|
-
/**
|
|
13
|
-
* Class Operation defines an coordinate operation. The operation defines a specific method,
|
|
14
|
-
* together with specific values for the parameters of the method, and a specific source and
|
|
15
|
-
* destination coordinate reference system.
|
|
16
|
-
*
|
|
17
|
-
* 'Conversions' are operations that convert from projected systems to and from geographic systems (same datum).
|
|
18
|
-
* 'Transformations' are Operations that convert from one geocentric system to another (different datum).
|
|
19
|
-
*
|
|
20
|
-
* @version 1.0 July 2005
|
|
21
|
-
*/
|
|
22
|
-
/** @internal */
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Create a new coordinate operation.
|
|
26
|
-
* @param code the code.
|
|
27
|
-
* @param name the name.
|
|
28
|
-
* @param type the type (CONCATENATED, CONVERSION or TRANSFORMATION).
|
|
29
|
-
* @param sourceCRScode the code of the source CRS.
|
|
30
|
-
* @param targetCRScode the code of the target CRS.
|
|
31
|
-
* @param areaOfUse the area on which the operation has been defined (0 if unknown).
|
|
32
|
-
* @param method the method (null for concatenated operations).
|
|
33
|
-
*/
|
|
34
|
-
constructor(code, name, type, sourceCRScode, targetCRScode, areaOfUse, method) {
|
|
35
|
-
/* Store the parameters */
|
|
36
|
-
this._code = code;
|
|
37
|
-
this._name = name;
|
|
38
|
-
this._type = type;
|
|
39
|
-
this._sourceCRScode = sourceCRScode;
|
|
40
|
-
this._targetCRScode = targetCRScode;
|
|
41
|
-
this._areaOfUse = areaOfUse;
|
|
42
|
-
this._method = method;
|
|
43
|
-
/* Clear */
|
|
44
|
-
this._initialised = false;
|
|
45
|
-
this._sourceCRS = null;
|
|
46
|
-
this._targetCRS = null;
|
|
47
|
-
this._concatenatedOperations = null;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Get the code.
|
|
51
|
-
* @return the code.
|
|
52
|
-
*/
|
|
53
|
-
getCode() {
|
|
54
|
-
return this._code;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Get the name.
|
|
58
|
-
* @return the name.
|
|
59
|
-
*/
|
|
60
|
-
getName() {
|
|
61
|
-
return this._name;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Get the type (CONCATENATED, CONVERSION or TRANSFORMATION).
|
|
65
|
-
* @return the type.
|
|
66
|
-
*/
|
|
67
|
-
getType() {
|
|
68
|
-
return this._type;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get the code of the source CRS.
|
|
72
|
-
* @return the code of the source CRS.
|
|
73
|
-
*/
|
|
74
|
-
getSourceCRScode() {
|
|
75
|
-
return this._sourceCRScode;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Get the code of the target CRS.
|
|
79
|
-
* @return the code of the target CRS.
|
|
80
|
-
*/
|
|
81
|
-
getTargetCRScode() {
|
|
82
|
-
return this._targetCRScode;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Get the area on which the operation has been defined.
|
|
86
|
-
* @return the area on which the operation has been defined (0 if unknown).
|
|
87
|
-
*/
|
|
88
|
-
getAreaOfUse() {
|
|
89
|
-
return this._areaOfUse;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Get the method (null for concatenated operations).
|
|
93
|
-
* @return the method.
|
|
94
|
-
*/
|
|
95
|
-
getMethod() {
|
|
96
|
-
return this._method;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Set the method.
|
|
100
|
-
* @param method the new method (null for concatenated operations).
|
|
101
|
-
*/
|
|
102
|
-
setMethod(method) {
|
|
103
|
-
this._method = method;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Get the concatenated operations.
|
|
107
|
-
* @return the concatenated operations (null for a method).
|
|
108
|
-
*/
|
|
109
|
-
getConcatenatedOperations() {
|
|
110
|
-
return this._concatenatedOperations;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Set the concatenated operations.
|
|
114
|
-
* @param concatenatedOperations the concatenated operations (null for a method).
|
|
115
|
-
*/
|
|
116
|
-
setConcatenatedOperations(concatenatedOperations) {
|
|
117
|
-
this._concatenatedOperations = concatenatedOperations;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Initialise the operation.
|
|
121
|
-
*/
|
|
122
|
-
initialise() {
|
|
123
|
-
/* Initialize the systems */
|
|
124
|
-
if (this._sourceCRS == null)
|
|
125
|
-
this._sourceCRS = Registry.getCRS(this._sourceCRScode);
|
|
126
|
-
if (this._targetCRS == null)
|
|
127
|
-
this._targetCRS = Registry.getCRS(this._targetCRScode);
|
|
128
|
-
/* Already done ? */
|
|
129
|
-
if (this._initialised)
|
|
130
|
-
return;
|
|
131
|
-
this._initialised = true;
|
|
132
|
-
/* Concatenated operations ? */
|
|
133
|
-
if (this._type == Operation.CONCATENATED) {
|
|
134
|
-
/* Create the list of operations */
|
|
135
|
-
this._concatenatedOperations = new AList(); //Registry.readConcatenatedOperations(this.code);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
/* Initialise the method ? */
|
|
139
|
-
this._method.initialize(this);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Get the source CRS.
|
|
144
|
-
* @return the source CRS.
|
|
145
|
-
*/
|
|
146
|
-
getSourceCRS() {
|
|
147
|
-
if (this._sourceCRS == null)
|
|
148
|
-
this.initialise();
|
|
149
|
-
return this._sourceCRS;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Set the source CRS.
|
|
153
|
-
* @param sourceCRS the source CRS.
|
|
154
|
-
*/
|
|
155
|
-
setSourceCRS(sourceCRS) {
|
|
156
|
-
this._sourceCRS = sourceCRS;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Get the target CRS.
|
|
160
|
-
* @return the target CRS.
|
|
161
|
-
*/
|
|
162
|
-
getTargetCRS() {
|
|
163
|
-
if (this._targetCRS == null)
|
|
164
|
-
this.initialise();
|
|
165
|
-
return this._targetCRS;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Set the target CRS.
|
|
169
|
-
* @param targetCRS the target CRS.
|
|
170
|
-
*/
|
|
171
|
-
setTargetCRS(targetCRS) {
|
|
172
|
-
this._targetCRS = targetCRS;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Convert a source coordinate to a target coordinate.
|
|
176
|
-
* @param source the coordinates in the source CRS.
|
|
177
|
-
* @param target the coordinates in the target CRS (this is the result object).
|
|
178
|
-
*/
|
|
179
|
-
forward(source, target) {
|
|
180
|
-
this.initialise();
|
|
181
|
-
/* Concatenated operations ? */
|
|
182
|
-
if (this._type == Operation.CONCATENATED) {
|
|
183
|
-
/* Run all operations */
|
|
184
|
-
for (let i = 0; i < this._concatenatedOperations.size(); i++) {
|
|
185
|
-
this._concatenatedOperations.get(i).forward(source, target);
|
|
186
|
-
source = target;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
/* Let the method do it */
|
|
191
|
-
this._method.forward(this._sourceCRS, source, this._targetCRS, target);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Convert a target coordinate to a source coordinate.
|
|
196
|
-
* @param source the coordinates in the source CRS (this is the result object).
|
|
197
|
-
* @param target the coordinates in the target CRS.
|
|
198
|
-
*/
|
|
199
|
-
reverse(source, target) {
|
|
200
|
-
this.initialise();
|
|
201
|
-
/* Concatenated operations ? */
|
|
202
|
-
if (this._type == Operation.CONCATENATED) {
|
|
203
|
-
/* Run all operations */
|
|
204
|
-
for (let i = 0; i < this._concatenatedOperations.size(); i++) {
|
|
205
|
-
this._concatenatedOperations.get(this._concatenatedOperations.size() - 1 - i).reverse(source, target);
|
|
206
|
-
target = source;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
/* Let the method do it */
|
|
211
|
-
this._method.reverse(this._sourceCRS, source, this._targetCRS, target);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Check if another operation is compatible with this one.
|
|
216
|
-
* @param other the other operation.
|
|
217
|
-
* @return true if compatible.
|
|
218
|
-
*/
|
|
219
|
-
isCompatible(other) {
|
|
220
|
-
if (other._code == this._code)
|
|
221
|
-
return true; // all operations should have unique identifiers
|
|
222
|
-
if (other._type != this._type)
|
|
223
|
-
return false;
|
|
224
|
-
if (other._sourceCRScode != this._sourceCRScode)
|
|
225
|
-
return false;
|
|
226
|
-
if (other._targetCRScode != this._targetCRScode)
|
|
227
|
-
return false;
|
|
228
|
-
if (other._method.isCompatible(this._method) == false)
|
|
229
|
-
return false;
|
|
230
|
-
if (Operation.areCompatibleOperations(other._concatenatedOperations, this._concatenatedOperations) == false)
|
|
231
|
-
return false;
|
|
232
|
-
return true;
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Check if two operations are compatible.
|
|
236
|
-
* @param operation1 the first operation.
|
|
237
|
-
* @param operation2 the second operation.
|
|
238
|
-
* @return true if compatible.
|
|
239
|
-
*/
|
|
240
|
-
static isCompatibleOperation(operation1, operation2) {
|
|
241
|
-
if (operation1 == null)
|
|
242
|
-
return (operation2 == null);
|
|
243
|
-
if (operation2 == null)
|
|
244
|
-
return false;
|
|
245
|
-
return (operation1.isCompatible(operation2));
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Check if a list of operations is compatible with another one.
|
|
249
|
-
* @param list1 the first list.
|
|
250
|
-
* @param list2 the second list.
|
|
251
|
-
* @return true if compatible.
|
|
252
|
-
*/
|
|
253
|
-
static areCompatibleOperations(list1, list2) {
|
|
254
|
-
if (list1 == null)
|
|
255
|
-
return (list2 == null);
|
|
256
|
-
if (list2 == null)
|
|
257
|
-
return false;
|
|
258
|
-
if (list2.size() != list1.size())
|
|
259
|
-
return false;
|
|
260
|
-
for (let i = 0; i < list2.size(); i++)
|
|
261
|
-
if (list2.get(i).isCompatible(list1.get(i)) == false)
|
|
262
|
-
return false;
|
|
263
|
-
return true;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* The standard toString method.
|
|
267
|
-
* @see Object#toString
|
|
268
|
-
*/
|
|
269
|
-
toString() {
|
|
270
|
-
return "[Operation:code=" + this._code + ",name='" + this._name + "',type=" + this._type + ",sourceCRS=" + this._sourceCRScode + ",targetCRS=" + this._targetCRScode + ",area=" + this._areaOfUse + ",method=" + this._method + "]";
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* Find an operation by name.
|
|
274
|
-
* @param operations the list of operations.
|
|
275
|
-
* @param name the name of the operation.
|
|
276
|
-
* @return the index of the operation.
|
|
277
|
-
*/
|
|
278
|
-
static findByName(operations, name) {
|
|
279
|
-
/* No list ? */
|
|
280
|
-
if (operations == null)
|
|
281
|
-
return -1;
|
|
282
|
-
/* Check */
|
|
283
|
-
for (let i = 0; i < operations.length; i++)
|
|
284
|
-
if (Strings.equalsIgnoreCase(operations[i].getName(), name))
|
|
285
|
-
return i;
|
|
286
|
-
/* Not found */
|
|
287
|
-
return -1;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Get the version of a transformation.
|
|
291
|
-
* @param transformationName the name of the transformation.
|
|
292
|
-
* @return the version (0 if not found).
|
|
293
|
-
*/
|
|
294
|
-
static getTransformationVersion(transformationName) {
|
|
295
|
-
/* Find the (...) sequence */
|
|
296
|
-
let index0 = Strings.lastIndexOf(transformationName, "(");
|
|
297
|
-
if (index0 < 0)
|
|
298
|
-
return 0;
|
|
299
|
-
let index1 = Strings.lastIndexOf(transformationName, ")");
|
|
300
|
-
if ((index1 < 0) || (index1 < index0))
|
|
301
|
-
return 0;
|
|
302
|
-
/* Parse the version */
|
|
303
|
-
let version = Strings.substring(transformationName, index0 + 1, index1);
|
|
304
|
-
return Numbers.getInteger(version, 0);
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Get the latest transform from a set of transformations.
|
|
308
|
-
* @param transformations the set of transformations.
|
|
309
|
-
* @return the latest transform.
|
|
310
|
-
*/
|
|
311
|
-
static getLatestTransformation(transformations) {
|
|
312
|
-
/* We need at least two transforms */
|
|
313
|
-
if (transformations == null)
|
|
314
|
-
return null;
|
|
315
|
-
if (transformations.size() == 0)
|
|
316
|
-
return null;
|
|
317
|
-
if (transformations.size() == 1)
|
|
318
|
-
return transformations.get(0);
|
|
319
|
-
/* Start with the first transform */
|
|
320
|
-
let bestIndex = 0;
|
|
321
|
-
let bestVersion = Operation.getTransformationVersion(transformations.get(bestIndex).getName());
|
|
322
|
-
/* Check for better versions */
|
|
323
|
-
for (let i = 1; i < transformations.size(); i++) {
|
|
324
|
-
/* Check */
|
|
325
|
-
let version = Operation.getTransformationVersion(transformations.get(i).getName());
|
|
326
|
-
if (version > bestVersion) {
|
|
327
|
-
/* This one is later */
|
|
328
|
-
bestIndex = i;
|
|
329
|
-
bestVersion = version;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
/* Return the best transform */
|
|
333
|
-
return transformations.get(bestIndex);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
/** The type of a concatenated operation */
|
|
337
|
-
Operation.CONCATENATED = 1;
|
|
338
|
-
/** The type of a conversion operation (projected to geographic) */
|
|
339
|
-
Operation.CONVERSION = 2;
|
|
340
|
-
/** The type of a transformation operation (geocentric to geocentric) */
|
|
341
|
-
Operation.TRANSFORMATION = 3;
|
|
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 { AList } from "../../system/collection/AList";
|
|
9
|
+
import { Numbers } from "../../system/runtime/Numbers";
|
|
10
|
+
import { Strings } from "../../system/runtime/Strings";
|
|
11
|
+
import { Registry } from "./Registry";
|
|
12
|
+
/**
|
|
13
|
+
* Class Operation defines an coordinate operation. The operation defines a specific method,
|
|
14
|
+
* together with specific values for the parameters of the method, and a specific source and
|
|
15
|
+
* destination coordinate reference system.
|
|
16
|
+
*
|
|
17
|
+
* 'Conversions' are operations that convert from projected systems to and from geographic systems (same datum).
|
|
18
|
+
* 'Transformations' are Operations that convert from one geocentric system to another (different datum).
|
|
19
|
+
*
|
|
20
|
+
* @version 1.0 July 2005
|
|
21
|
+
*/
|
|
22
|
+
/** @internal */
|
|
23
|
+
class Operation {
|
|
24
|
+
/**
|
|
25
|
+
* Create a new coordinate operation.
|
|
26
|
+
* @param code the code.
|
|
27
|
+
* @param name the name.
|
|
28
|
+
* @param type the type (CONCATENATED, CONVERSION or TRANSFORMATION).
|
|
29
|
+
* @param sourceCRScode the code of the source CRS.
|
|
30
|
+
* @param targetCRScode the code of the target CRS.
|
|
31
|
+
* @param areaOfUse the area on which the operation has been defined (0 if unknown).
|
|
32
|
+
* @param method the method (null for concatenated operations).
|
|
33
|
+
*/
|
|
34
|
+
constructor(code, name, type, sourceCRScode, targetCRScode, areaOfUse, method) {
|
|
35
|
+
/* Store the parameters */
|
|
36
|
+
this._code = code;
|
|
37
|
+
this._name = name;
|
|
38
|
+
this._type = type;
|
|
39
|
+
this._sourceCRScode = sourceCRScode;
|
|
40
|
+
this._targetCRScode = targetCRScode;
|
|
41
|
+
this._areaOfUse = areaOfUse;
|
|
42
|
+
this._method = method;
|
|
43
|
+
/* Clear */
|
|
44
|
+
this._initialised = false;
|
|
45
|
+
this._sourceCRS = null;
|
|
46
|
+
this._targetCRS = null;
|
|
47
|
+
this._concatenatedOperations = null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get the code.
|
|
51
|
+
* @return the code.
|
|
52
|
+
*/
|
|
53
|
+
getCode() {
|
|
54
|
+
return this._code;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get the name.
|
|
58
|
+
* @return the name.
|
|
59
|
+
*/
|
|
60
|
+
getName() {
|
|
61
|
+
return this._name;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get the type (CONCATENATED, CONVERSION or TRANSFORMATION).
|
|
65
|
+
* @return the type.
|
|
66
|
+
*/
|
|
67
|
+
getType() {
|
|
68
|
+
return this._type;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get the code of the source CRS.
|
|
72
|
+
* @return the code of the source CRS.
|
|
73
|
+
*/
|
|
74
|
+
getSourceCRScode() {
|
|
75
|
+
return this._sourceCRScode;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Get the code of the target CRS.
|
|
79
|
+
* @return the code of the target CRS.
|
|
80
|
+
*/
|
|
81
|
+
getTargetCRScode() {
|
|
82
|
+
return this._targetCRScode;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get the area on which the operation has been defined.
|
|
86
|
+
* @return the area on which the operation has been defined (0 if unknown).
|
|
87
|
+
*/
|
|
88
|
+
getAreaOfUse() {
|
|
89
|
+
return this._areaOfUse;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Get the method (null for concatenated operations).
|
|
93
|
+
* @return the method.
|
|
94
|
+
*/
|
|
95
|
+
getMethod() {
|
|
96
|
+
return this._method;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Set the method.
|
|
100
|
+
* @param method the new method (null for concatenated operations).
|
|
101
|
+
*/
|
|
102
|
+
setMethod(method) {
|
|
103
|
+
this._method = method;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Get the concatenated operations.
|
|
107
|
+
* @return the concatenated operations (null for a method).
|
|
108
|
+
*/
|
|
109
|
+
getConcatenatedOperations() {
|
|
110
|
+
return this._concatenatedOperations;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Set the concatenated operations.
|
|
114
|
+
* @param concatenatedOperations the concatenated operations (null for a method).
|
|
115
|
+
*/
|
|
116
|
+
setConcatenatedOperations(concatenatedOperations) {
|
|
117
|
+
this._concatenatedOperations = concatenatedOperations;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Initialise the operation.
|
|
121
|
+
*/
|
|
122
|
+
initialise() {
|
|
123
|
+
/* Initialize the systems */
|
|
124
|
+
if (this._sourceCRS == null)
|
|
125
|
+
this._sourceCRS = Registry.getCRS(this._sourceCRScode);
|
|
126
|
+
if (this._targetCRS == null)
|
|
127
|
+
this._targetCRS = Registry.getCRS(this._targetCRScode);
|
|
128
|
+
/* Already done ? */
|
|
129
|
+
if (this._initialised)
|
|
130
|
+
return;
|
|
131
|
+
this._initialised = true;
|
|
132
|
+
/* Concatenated operations ? */
|
|
133
|
+
if (this._type == Operation.CONCATENATED) {
|
|
134
|
+
/* Create the list of operations */
|
|
135
|
+
this._concatenatedOperations = new AList(); //Registry.readConcatenatedOperations(this.code);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
/* Initialise the method ? */
|
|
139
|
+
this._method.initialize(this);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Get the source CRS.
|
|
144
|
+
* @return the source CRS.
|
|
145
|
+
*/
|
|
146
|
+
getSourceCRS() {
|
|
147
|
+
if (this._sourceCRS == null)
|
|
148
|
+
this.initialise();
|
|
149
|
+
return this._sourceCRS;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Set the source CRS.
|
|
153
|
+
* @param sourceCRS the source CRS.
|
|
154
|
+
*/
|
|
155
|
+
setSourceCRS(sourceCRS) {
|
|
156
|
+
this._sourceCRS = sourceCRS;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Get the target CRS.
|
|
160
|
+
* @return the target CRS.
|
|
161
|
+
*/
|
|
162
|
+
getTargetCRS() {
|
|
163
|
+
if (this._targetCRS == null)
|
|
164
|
+
this.initialise();
|
|
165
|
+
return this._targetCRS;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Set the target CRS.
|
|
169
|
+
* @param targetCRS the target CRS.
|
|
170
|
+
*/
|
|
171
|
+
setTargetCRS(targetCRS) {
|
|
172
|
+
this._targetCRS = targetCRS;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Convert a source coordinate to a target coordinate.
|
|
176
|
+
* @param source the coordinates in the source CRS.
|
|
177
|
+
* @param target the coordinates in the target CRS (this is the result object).
|
|
178
|
+
*/
|
|
179
|
+
forward(source, target) {
|
|
180
|
+
this.initialise();
|
|
181
|
+
/* Concatenated operations ? */
|
|
182
|
+
if (this._type == Operation.CONCATENATED) {
|
|
183
|
+
/* Run all operations */
|
|
184
|
+
for (let i = 0; i < this._concatenatedOperations.size(); i++) {
|
|
185
|
+
this._concatenatedOperations.get(i).forward(source, target);
|
|
186
|
+
source = target;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
/* Let the method do it */
|
|
191
|
+
this._method.forward(this._sourceCRS, source, this._targetCRS, target);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Convert a target coordinate to a source coordinate.
|
|
196
|
+
* @param source the coordinates in the source CRS (this is the result object).
|
|
197
|
+
* @param target the coordinates in the target CRS.
|
|
198
|
+
*/
|
|
199
|
+
reverse(source, target) {
|
|
200
|
+
this.initialise();
|
|
201
|
+
/* Concatenated operations ? */
|
|
202
|
+
if (this._type == Operation.CONCATENATED) {
|
|
203
|
+
/* Run all operations */
|
|
204
|
+
for (let i = 0; i < this._concatenatedOperations.size(); i++) {
|
|
205
|
+
this._concatenatedOperations.get(this._concatenatedOperations.size() - 1 - i).reverse(source, target);
|
|
206
|
+
target = source;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
/* Let the method do it */
|
|
211
|
+
this._method.reverse(this._sourceCRS, source, this._targetCRS, target);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Check if another operation is compatible with this one.
|
|
216
|
+
* @param other the other operation.
|
|
217
|
+
* @return true if compatible.
|
|
218
|
+
*/
|
|
219
|
+
isCompatible(other) {
|
|
220
|
+
if (other._code == this._code)
|
|
221
|
+
return true; // all operations should have unique identifiers
|
|
222
|
+
if (other._type != this._type)
|
|
223
|
+
return false;
|
|
224
|
+
if (other._sourceCRScode != this._sourceCRScode)
|
|
225
|
+
return false;
|
|
226
|
+
if (other._targetCRScode != this._targetCRScode)
|
|
227
|
+
return false;
|
|
228
|
+
if (other._method.isCompatible(this._method) == false)
|
|
229
|
+
return false;
|
|
230
|
+
if (Operation.areCompatibleOperations(other._concatenatedOperations, this._concatenatedOperations) == false)
|
|
231
|
+
return false;
|
|
232
|
+
return true;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Check if two operations are compatible.
|
|
236
|
+
* @param operation1 the first operation.
|
|
237
|
+
* @param operation2 the second operation.
|
|
238
|
+
* @return true if compatible.
|
|
239
|
+
*/
|
|
240
|
+
static isCompatibleOperation(operation1, operation2) {
|
|
241
|
+
if (operation1 == null)
|
|
242
|
+
return (operation2 == null);
|
|
243
|
+
if (operation2 == null)
|
|
244
|
+
return false;
|
|
245
|
+
return (operation1.isCompatible(operation2));
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Check if a list of operations is compatible with another one.
|
|
249
|
+
* @param list1 the first list.
|
|
250
|
+
* @param list2 the second list.
|
|
251
|
+
* @return true if compatible.
|
|
252
|
+
*/
|
|
253
|
+
static areCompatibleOperations(list1, list2) {
|
|
254
|
+
if (list1 == null)
|
|
255
|
+
return (list2 == null);
|
|
256
|
+
if (list2 == null)
|
|
257
|
+
return false;
|
|
258
|
+
if (list2.size() != list1.size())
|
|
259
|
+
return false;
|
|
260
|
+
for (let i = 0; i < list2.size(); i++)
|
|
261
|
+
if (list2.get(i).isCompatible(list1.get(i)) == false)
|
|
262
|
+
return false;
|
|
263
|
+
return true;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* The standard toString method.
|
|
267
|
+
* @see Object#toString
|
|
268
|
+
*/
|
|
269
|
+
toString() {
|
|
270
|
+
return "[Operation:code=" + this._code + ",name='" + this._name + "',type=" + this._type + ",sourceCRS=" + this._sourceCRScode + ",targetCRS=" + this._targetCRScode + ",area=" + this._areaOfUse + ",method=" + this._method + "]";
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Find an operation by name.
|
|
274
|
+
* @param operations the list of operations.
|
|
275
|
+
* @param name the name of the operation.
|
|
276
|
+
* @return the index of the operation.
|
|
277
|
+
*/
|
|
278
|
+
static findByName(operations, name) {
|
|
279
|
+
/* No list ? */
|
|
280
|
+
if (operations == null)
|
|
281
|
+
return -1;
|
|
282
|
+
/* Check */
|
|
283
|
+
for (let i = 0; i < operations.length; i++)
|
|
284
|
+
if (Strings.equalsIgnoreCase(operations[i].getName(), name))
|
|
285
|
+
return i;
|
|
286
|
+
/* Not found */
|
|
287
|
+
return -1;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Get the version of a transformation.
|
|
291
|
+
* @param transformationName the name of the transformation.
|
|
292
|
+
* @return the version (0 if not found).
|
|
293
|
+
*/
|
|
294
|
+
static getTransformationVersion(transformationName) {
|
|
295
|
+
/* Find the (...) sequence */
|
|
296
|
+
let index0 = Strings.lastIndexOf(transformationName, "(");
|
|
297
|
+
if (index0 < 0)
|
|
298
|
+
return 0;
|
|
299
|
+
let index1 = Strings.lastIndexOf(transformationName, ")");
|
|
300
|
+
if ((index1 < 0) || (index1 < index0))
|
|
301
|
+
return 0;
|
|
302
|
+
/* Parse the version */
|
|
303
|
+
let version = Strings.substring(transformationName, index0 + 1, index1);
|
|
304
|
+
return Numbers.getInteger(version, 0);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Get the latest transform from a set of transformations.
|
|
308
|
+
* @param transformations the set of transformations.
|
|
309
|
+
* @return the latest transform.
|
|
310
|
+
*/
|
|
311
|
+
static getLatestTransformation(transformations) {
|
|
312
|
+
/* We need at least two transforms */
|
|
313
|
+
if (transformations == null)
|
|
314
|
+
return null;
|
|
315
|
+
if (transformations.size() == 0)
|
|
316
|
+
return null;
|
|
317
|
+
if (transformations.size() == 1)
|
|
318
|
+
return transformations.get(0);
|
|
319
|
+
/* Start with the first transform */
|
|
320
|
+
let bestIndex = 0;
|
|
321
|
+
let bestVersion = Operation.getTransformationVersion(transformations.get(bestIndex).getName());
|
|
322
|
+
/* Check for better versions */
|
|
323
|
+
for (let i = 1; i < transformations.size(); i++) {
|
|
324
|
+
/* Check */
|
|
325
|
+
let version = Operation.getTransformationVersion(transformations.get(i).getName());
|
|
326
|
+
if (version > bestVersion) {
|
|
327
|
+
/* This one is later */
|
|
328
|
+
bestIndex = i;
|
|
329
|
+
bestVersion = version;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
/* Return the best transform */
|
|
333
|
+
return transformations.get(bestIndex);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
/** The type of a concatenated operation */
|
|
337
|
+
Operation.CONCATENATED = 1;
|
|
338
|
+
/** The type of a conversion operation (projected to geographic) */
|
|
339
|
+
Operation.CONVERSION = 2;
|
|
340
|
+
/** The type of a transformation operation (geocentric to geocentric) */
|
|
341
|
+
Operation.TRANSFORMATION = 3;
|
|
342
|
+
export { Operation };
|
|
342
343
|
//# sourceMappingURL=Operation.js.map
|