@itwin/core-orbitgt 3.0.0-dev.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +515 -0
- package/lib/cjs/core-orbitgt.d.ts +27 -0
- package/lib/cjs/core-orbitgt.d.ts.map +1 -0
- package/lib/cjs/core-orbitgt.js +59 -0
- package/lib/cjs/core-orbitgt.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/AttributeMask.d.ts +31 -0
- package/lib/cjs/pointcloud/format/opc/AttributeMask.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js +48 -0
- package/lib/cjs/pointcloud/format/opc/AttributeMask.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/AttributeReader.d.ts +64 -0
- package/lib/cjs/pointcloud/format/opc/AttributeReader.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js +25 -0
- package/lib/cjs/pointcloud/format/opc/AttributeReader.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/BlockRecord.d.ts +55 -0
- package/lib/cjs/pointcloud/format/opc/BlockRecord.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js +85 -0
- package/lib/cjs/pointcloud/format/opc/BlockRecord.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFile.d.ts +86 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFile.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js +200 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFile.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.d.ts +56 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js +76 -0
- package/lib/cjs/pointcloud/format/opc/ContainerFilePart.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.d.ts +76 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js +170 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryReader.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.d.ts +60 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js +90 -0
- package/lib/cjs/pointcloud/format/opc/DirectoryRecord.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +107 -0
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js +198 -0
- package/lib/cjs/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/FileAccess.d.ts +40 -0
- package/lib/cjs/pointcloud/format/opc/FileAccess.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/FileAccess.js +49 -0
- package/lib/cjs/pointcloud/format/opc/FileAccess.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/FileReader.d.ts +119 -0
- package/lib/cjs/pointcloud/format/opc/FileReader.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/FileReader.js +249 -0
- package/lib/cjs/pointcloud/format/opc/FileReader.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/FileRecord.d.ts +90 -0
- package/lib/cjs/pointcloud/format/opc/FileRecord.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/FileRecord.js +126 -0
- package/lib/cjs/pointcloud/format/opc/FileRecord.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/GeometryReader.d.ts +80 -0
- package/lib/cjs/pointcloud/format/opc/GeometryReader.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js +164 -0
- package/lib/cjs/pointcloud/format/opc/GeometryReader.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.d.ts +54 -0
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js +108 -0
- package/lib/cjs/pointcloud/format/opc/GeometryRecord.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/OPCReader.d.ts +158 -0
- package/lib/cjs/pointcloud/format/opc/OPCReader.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/OPCReader.js +320 -0
- package/lib/cjs/pointcloud/format/opc/OPCReader.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/PointReader.d.ts +73 -0
- package/lib/cjs/pointcloud/format/opc/PointReader.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/PointReader.js +153 -0
- package/lib/cjs/pointcloud/format/opc/PointReader.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.d.ts +64 -0
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js +93 -0
- package/lib/cjs/pointcloud/format/opc/TileReadBuffer.js.map +1 -0
- package/lib/cjs/pointcloud/format/opc/TileRecord.d.ts +89 -0
- package/lib/cjs/pointcloud/format/opc/TileRecord.d.ts.map +1 -0
- package/lib/cjs/pointcloud/format/opc/TileRecord.js +162 -0
- package/lib/cjs/pointcloud/format/opc/TileRecord.js.map +1 -0
- package/lib/cjs/pointcloud/model/AttributeTypes.d.ts +38 -0
- package/lib/cjs/pointcloud/model/AttributeTypes.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/AttributeTypes.js +65 -0
- package/lib/cjs/pointcloud/model/AttributeTypes.js.map +1 -0
- package/lib/cjs/pointcloud/model/AttributeValue.d.ts +248 -0
- package/lib/cjs/pointcloud/model/AttributeValue.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/AttributeValue.js +509 -0
- package/lib/cjs/pointcloud/model/AttributeValue.js.map +1 -0
- package/lib/cjs/pointcloud/model/BlockIndex.d.ts +50 -0
- package/lib/cjs/pointcloud/model/BlockIndex.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/BlockIndex.js +49 -0
- package/lib/cjs/pointcloud/model/BlockIndex.js.map +1 -0
- package/lib/cjs/pointcloud/model/CloudPoint.d.ts +211 -0
- package/lib/cjs/pointcloud/model/CloudPoint.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/CloudPoint.js +319 -0
- package/lib/cjs/pointcloud/model/CloudPoint.js.map +1 -0
- package/lib/cjs/pointcloud/model/Grid.d.ts +92 -0
- package/lib/cjs/pointcloud/model/Grid.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/Grid.js +130 -0
- package/lib/cjs/pointcloud/model/Grid.js.map +1 -0
- package/lib/cjs/pointcloud/model/GridIndex.d.ts +67 -0
- package/lib/cjs/pointcloud/model/GridIndex.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/GridIndex.js +94 -0
- package/lib/cjs/pointcloud/model/GridIndex.js.map +1 -0
- package/lib/cjs/pointcloud/model/PointAttribute.d.ts +209 -0
- package/lib/cjs/pointcloud/model/PointAttribute.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/PointAttribute.js +375 -0
- package/lib/cjs/pointcloud/model/PointAttribute.js.map +1 -0
- package/lib/cjs/pointcloud/model/PointCloudReader.d.ts +157 -0
- package/lib/cjs/pointcloud/model/PointCloudReader.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/PointCloudReader.js +190 -0
- package/lib/cjs/pointcloud/model/PointCloudReader.js.map +1 -0
- package/lib/cjs/pointcloud/model/PointData.d.ts +18 -0
- package/lib/cjs/pointcloud/model/PointData.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/PointData.js +25 -0
- package/lib/cjs/pointcloud/model/PointData.js.map +1 -0
- package/lib/cjs/pointcloud/model/PointDataRaw.d.ts +35 -0
- package/lib/cjs/pointcloud/model/PointDataRaw.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/PointDataRaw.js +70 -0
- package/lib/cjs/pointcloud/model/PointDataRaw.js.map +1 -0
- package/lib/cjs/pointcloud/model/ReadRequest.d.ts +176 -0
- package/lib/cjs/pointcloud/model/ReadRequest.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/ReadRequest.js +240 -0
- package/lib/cjs/pointcloud/model/ReadRequest.js.map +1 -0
- package/lib/cjs/pointcloud/model/StandardAttributes.d.ts +41 -0
- package/lib/cjs/pointcloud/model/StandardAttributes.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/StandardAttributes.js +48 -0
- package/lib/cjs/pointcloud/model/StandardAttributes.js.map +1 -0
- package/lib/cjs/pointcloud/model/TileIndex.d.ts +48 -0
- package/lib/cjs/pointcloud/model/TileIndex.d.ts.map +1 -0
- package/lib/cjs/pointcloud/model/TileIndex.js +48 -0
- package/lib/cjs/pointcloud/model/TileIndex.js.map +1 -0
- package/lib/cjs/pointcloud/render/AViewRequest.d.ts +39 -0
- package/lib/cjs/pointcloud/render/AViewRequest.d.ts.map +1 -0
- package/lib/cjs/pointcloud/render/AViewRequest.js +25 -0
- package/lib/cjs/pointcloud/render/AViewRequest.js.map +1 -0
- package/lib/cjs/pointcloud/render/Block.d.ts +68 -0
- package/lib/cjs/pointcloud/render/Block.d.ts.map +1 -0
- package/lib/cjs/pointcloud/render/Block.js +120 -0
- package/lib/cjs/pointcloud/render/Block.js.map +1 -0
- package/lib/cjs/pointcloud/render/DataManager.d.ts +137 -0
- package/lib/cjs/pointcloud/render/DataManager.d.ts.map +1 -0
- package/lib/cjs/pointcloud/render/DataManager.js +343 -0
- package/lib/cjs/pointcloud/render/DataManager.js.map +1 -0
- package/lib/cjs/pointcloud/render/FrameData.d.ts +31 -0
- package/lib/cjs/pointcloud/render/FrameData.d.ts.map +1 -0
- package/lib/cjs/pointcloud/render/FrameData.js +40 -0
- package/lib/cjs/pointcloud/render/FrameData.js.map +1 -0
- package/lib/cjs/pointcloud/render/Level.d.ts +91 -0
- package/lib/cjs/pointcloud/render/Level.d.ts.map +1 -0
- package/lib/cjs/pointcloud/render/Level.js +120 -0
- package/lib/cjs/pointcloud/render/Level.js.map +1 -0
- package/lib/cjs/pointcloud/render/TileLoadSorter.d.ts +61 -0
- package/lib/cjs/pointcloud/render/TileLoadSorter.d.ts.map +1 -0
- package/lib/cjs/pointcloud/render/TileLoadSorter.js +100 -0
- package/lib/cjs/pointcloud/render/TileLoadSorter.js.map +1 -0
- package/lib/cjs/pointcloud/render/ViewTree.d.ts +114 -0
- package/lib/cjs/pointcloud/render/ViewTree.d.ts.map +1 -0
- package/lib/cjs/pointcloud/render/ViewTree.js +364 -0
- package/lib/cjs/pointcloud/render/ViewTree.js.map +1 -0
- package/lib/cjs/spatial/crs/CRSEngine.d.ts +56 -0
- package/lib/cjs/spatial/crs/CRSEngine.d.ts.map +1 -0
- package/lib/cjs/spatial/crs/CRSEngine.js +94 -0
- package/lib/cjs/spatial/crs/CRSEngine.js.map +1 -0
- package/lib/cjs/spatial/crs/CRSManager.d.ts +50 -0
- package/lib/cjs/spatial/crs/CRSManager.d.ts.map +1 -0
- package/lib/cjs/spatial/crs/CRSManager.js +110 -0
- package/lib/cjs/spatial/crs/CRSManager.js.map +1 -0
- package/lib/cjs/spatial/ecrs/Axis.d.ts +78 -0
- package/lib/cjs/spatial/ecrs/Axis.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/Axis.js +94 -0
- package/lib/cjs/spatial/ecrs/Axis.js.map +1 -0
- package/lib/cjs/spatial/ecrs/CRS.d.ts +448 -0
- package/lib/cjs/spatial/ecrs/CRS.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/CRS.js +931 -0
- package/lib/cjs/spatial/ecrs/CRS.js.map +1 -0
- package/lib/cjs/spatial/ecrs/CoordinateSystem.d.ts +143 -0
- package/lib/cjs/spatial/ecrs/CoordinateSystem.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js +327 -0
- package/lib/cjs/spatial/ecrs/CoordinateSystem.js.map +1 -0
- package/lib/cjs/spatial/ecrs/DataFileUnit.d.ts +11 -0
- package/lib/cjs/spatial/ecrs/DataFileUnit.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/DataFileUnit.js +105 -0
- package/lib/cjs/spatial/ecrs/DataFileUnit.js.map +1 -0
- package/lib/cjs/spatial/ecrs/Datum.d.ts +112 -0
- package/lib/cjs/spatial/ecrs/Datum.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/Datum.js +167 -0
- package/lib/cjs/spatial/ecrs/Datum.js.map +1 -0
- package/lib/cjs/spatial/ecrs/Ellipsoid.d.ts +189 -0
- package/lib/cjs/spatial/ecrs/Ellipsoid.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/Ellipsoid.js +337 -0
- package/lib/cjs/spatial/ecrs/Ellipsoid.js.map +1 -0
- package/lib/cjs/spatial/ecrs/OnlineEngine.d.ts +49 -0
- package/lib/cjs/spatial/ecrs/OnlineEngine.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/OnlineEngine.js +103 -0
- package/lib/cjs/spatial/ecrs/OnlineEngine.js.map +1 -0
- package/lib/cjs/spatial/ecrs/OnlineRegistry.d.ts +38 -0
- package/lib/cjs/spatial/ecrs/OnlineRegistry.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js +77 -0
- package/lib/cjs/spatial/ecrs/OnlineRegistry.js.map +1 -0
- package/lib/cjs/spatial/ecrs/Operation.d.ts +192 -0
- package/lib/cjs/spatial/ecrs/Operation.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/Operation.js +346 -0
- package/lib/cjs/spatial/ecrs/Operation.js.map +1 -0
- package/lib/cjs/spatial/ecrs/OperationMethod.d.ts +72 -0
- package/lib/cjs/spatial/ecrs/OperationMethod.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/OperationMethod.js +76 -0
- package/lib/cjs/spatial/ecrs/OperationMethod.js.map +1 -0
- package/lib/cjs/spatial/ecrs/ParameterValue.d.ts +50 -0
- package/lib/cjs/spatial/ecrs/ParameterValue.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/ParameterValue.js +66 -0
- package/lib/cjs/spatial/ecrs/ParameterValue.js.map +1 -0
- package/lib/cjs/spatial/ecrs/ParameterValueList.d.ts +73 -0
- package/lib/cjs/spatial/ecrs/ParameterValueList.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/ParameterValueList.js +121 -0
- package/lib/cjs/spatial/ecrs/ParameterValueList.js.map +1 -0
- package/lib/cjs/spatial/ecrs/PrimeMeridian.d.ts +79 -0
- package/lib/cjs/spatial/ecrs/PrimeMeridian.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js +109 -0
- package/lib/cjs/spatial/ecrs/PrimeMeridian.js.map +1 -0
- package/lib/cjs/spatial/ecrs/Registry.d.ts +110 -0
- package/lib/cjs/spatial/ecrs/Registry.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/Registry.js +208 -0
- package/lib/cjs/spatial/ecrs/Registry.js.map +1 -0
- package/lib/cjs/spatial/ecrs/Transform.d.ts +78 -0
- package/lib/cjs/spatial/ecrs/Transform.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/Transform.js +397 -0
- package/lib/cjs/spatial/ecrs/Transform.js.map +1 -0
- package/lib/cjs/spatial/ecrs/Unit.d.ts +171 -0
- package/lib/cjs/spatial/ecrs/Unit.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/Unit.js +337 -0
- package/lib/cjs/spatial/ecrs/Unit.js.map +1 -0
- package/lib/cjs/spatial/ecrs/VerticalModel.d.ts +70 -0
- package/lib/cjs/spatial/ecrs/VerticalModel.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/VerticalModel.js +89 -0
- package/lib/cjs/spatial/ecrs/VerticalModel.js.map +1 -0
- package/lib/cjs/spatial/ecrs/WellKnownText.d.ts +154 -0
- package/lib/cjs/spatial/ecrs/WellKnownText.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/WellKnownText.js +495 -0
- package/lib/cjs/spatial/ecrs/WellKnownText.js.map +1 -0
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.d.ts +70 -0
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js +129 -0
- package/lib/cjs/spatial/ecrs/WellKnownTextNode.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.d.ts +102 -0
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js +163 -0
- package/lib/cjs/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts +80 -0
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js +126 -0
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts +48 -0
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +74 -0
- package/lib/cjs/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.d.ts +73 -0
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js +130 -0
- package/lib/cjs/spatial/ecrs/projection/LambertConical1SP.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.d.ts +121 -0
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js +180 -0
- package/lib/cjs/spatial/ecrs/projection/LambertConical2SP.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.d.ts +74 -0
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js +113 -0
- package/lib/cjs/spatial/ecrs/projection/Mercator1SP.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.d.ts +97 -0
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js +174 -0
- package/lib/cjs/spatial/ecrs/projection/ObliqueMercator.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.d.ts +124 -0
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js +209 -0
- package/lib/cjs/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.d.ts +109 -0
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js +184 -0
- package/lib/cjs/spatial/ecrs/projection/TransverseMercator.js.map +1 -0
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.d.ts +91 -0
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.d.ts.map +1 -0
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js +131 -0
- package/lib/cjs/spatial/ecrs/transformation/PositionVector.js.map +1 -0
- package/lib/cjs/spatial/geom/Bounds.d.ts +34 -0
- package/lib/cjs/spatial/geom/Bounds.d.ts.map +1 -0
- package/lib/cjs/spatial/geom/Bounds.js +157 -0
- package/lib/cjs/spatial/geom/Bounds.js.map +1 -0
- package/lib/cjs/spatial/geom/Coordinate.d.ts +62 -0
- package/lib/cjs/spatial/geom/Coordinate.d.ts.map +1 -0
- package/lib/cjs/spatial/geom/Coordinate.js +187 -0
- package/lib/cjs/spatial/geom/Coordinate.js.map +1 -0
- package/lib/cjs/spatial/geom/Line.d.ts +226 -0
- package/lib/cjs/spatial/geom/Line.d.ts.map +1 -0
- package/lib/cjs/spatial/geom/Line.js +433 -0
- package/lib/cjs/spatial/geom/Line.js.map +1 -0
- package/lib/cjs/spatial/geom/Transform.d.ts +341 -0
- package/lib/cjs/spatial/geom/Transform.d.ts.map +1 -0
- package/lib/cjs/spatial/geom/Transform.js +749 -0
- package/lib/cjs/spatial/geom/Transform.js.map +1 -0
- package/lib/cjs/system/buffer/ABuffer.d.ts +52 -0
- package/lib/cjs/system/buffer/ABuffer.d.ts.map +1 -0
- package/lib/cjs/system/buffer/ABuffer.js +91 -0
- package/lib/cjs/system/buffer/ABuffer.js.map +1 -0
- package/lib/cjs/system/buffer/Float32Buffer.d.ts +47 -0
- package/lib/cjs/system/buffer/Float32Buffer.d.ts.map +1 -0
- package/lib/cjs/system/buffer/Float32Buffer.js +61 -0
- package/lib/cjs/system/buffer/Float32Buffer.js.map +1 -0
- package/lib/cjs/system/buffer/LittleEndian.d.ts +150 -0
- package/lib/cjs/system/buffer/LittleEndian.d.ts.map +1 -0
- package/lib/cjs/system/buffer/LittleEndian.js +304 -0
- package/lib/cjs/system/buffer/LittleEndian.js.map +1 -0
- package/lib/cjs/system/buffer/Uint16Buffer.d.ts +50 -0
- package/lib/cjs/system/buffer/Uint16Buffer.d.ts.map +1 -0
- package/lib/cjs/system/buffer/Uint16Buffer.js +66 -0
- package/lib/cjs/system/buffer/Uint16Buffer.js.map +1 -0
- package/lib/cjs/system/buffer/Uint8Buffer.d.ts +50 -0
- package/lib/cjs/system/buffer/Uint8Buffer.d.ts.map +1 -0
- package/lib/cjs/system/buffer/Uint8Buffer.js +66 -0
- package/lib/cjs/system/buffer/Uint8Buffer.js.map +1 -0
- package/lib/cjs/system/collection/AList.d.ts +31 -0
- package/lib/cjs/system/collection/AList.d.ts.map +1 -0
- package/lib/cjs/system/collection/AList.js +71 -0
- package/lib/cjs/system/collection/AList.js.map +1 -0
- package/lib/cjs/system/collection/IntMap.d.ts +19 -0
- package/lib/cjs/system/collection/IntMap.d.ts.map +1 -0
- package/lib/cjs/system/collection/IntMap.js +36 -0
- package/lib/cjs/system/collection/IntMap.js.map +1 -0
- package/lib/cjs/system/collection/StringMap.d.ts +27 -0
- package/lib/cjs/system/collection/StringMap.d.ts.map +1 -0
- package/lib/cjs/system/collection/StringMap.js +64 -0
- package/lib/cjs/system/collection/StringMap.js.map +1 -0
- package/lib/cjs/system/io/ABufferInStream.d.ts +30 -0
- package/lib/cjs/system/io/ABufferInStream.d.ts.map +1 -0
- package/lib/cjs/system/io/ABufferInStream.js +47 -0
- package/lib/cjs/system/io/ABufferInStream.js.map +1 -0
- package/lib/cjs/system/io/InStream.d.ts +24 -0
- package/lib/cjs/system/io/InStream.d.ts.map +1 -0
- package/lib/cjs/system/io/InStream.js +35 -0
- package/lib/cjs/system/io/InStream.js.map +1 -0
- package/lib/cjs/system/io/OutStream.d.ts +24 -0
- package/lib/cjs/system/io/OutStream.d.ts.map +1 -0
- package/lib/cjs/system/io/OutStream.js +34 -0
- package/lib/cjs/system/io/OutStream.js.map +1 -0
- package/lib/cjs/system/runtime/ALong.d.ts +330 -0
- package/lib/cjs/system/runtime/ALong.d.ts.map +1 -0
- package/lib/cjs/system/runtime/ALong.js +688 -0
- package/lib/cjs/system/runtime/ALong.js.map +1 -0
- package/lib/cjs/system/runtime/ASystem.d.ts +15 -0
- package/lib/cjs/system/runtime/ASystem.d.ts.map +1 -0
- package/lib/cjs/system/runtime/ASystem.js +32 -0
- package/lib/cjs/system/runtime/ASystem.js.map +1 -0
- package/lib/cjs/system/runtime/Downloader.d.ts +18 -0
- package/lib/cjs/system/runtime/Downloader.d.ts.map +1 -0
- package/lib/cjs/system/runtime/Downloader.js +39 -0
- package/lib/cjs/system/runtime/Downloader.js.map +1 -0
- package/lib/cjs/system/runtime/DownloaderNode.d.ts +19 -0
- package/lib/cjs/system/runtime/DownloaderNode.d.ts.map +1 -0
- package/lib/cjs/system/runtime/DownloaderNode.js +130 -0
- package/lib/cjs/system/runtime/DownloaderNode.js.map +1 -0
- package/lib/cjs/system/runtime/DownloaderXhr.d.ts +19 -0
- package/lib/cjs/system/runtime/DownloaderXhr.d.ts.map +1 -0
- package/lib/cjs/system/runtime/DownloaderXhr.js +132 -0
- package/lib/cjs/system/runtime/DownloaderXhr.js.map +1 -0
- package/lib/cjs/system/runtime/Message.d.ts +17 -0
- package/lib/cjs/system/runtime/Message.d.ts.map +1 -0
- package/lib/cjs/system/runtime/Message.js +40 -0
- package/lib/cjs/system/runtime/Message.js.map +1 -0
- package/lib/cjs/system/runtime/Numbers.d.ts +35 -0
- package/lib/cjs/system/runtime/Numbers.d.ts.map +1 -0
- package/lib/cjs/system/runtime/Numbers.js +88 -0
- package/lib/cjs/system/runtime/Numbers.js.map +1 -0
- package/lib/cjs/system/runtime/Strings.d.ts +50 -0
- package/lib/cjs/system/runtime/Strings.d.ts.map +1 -0
- package/lib/cjs/system/runtime/Strings.js +189 -0
- package/lib/cjs/system/runtime/Strings.js.map +1 -0
- package/lib/cjs/system/runtime/iComparator.d.ts +13 -0
- package/lib/cjs/system/runtime/iComparator.d.ts.map +1 -0
- package/lib/cjs/system/runtime/iComparator.js +10 -0
- package/lib/cjs/system/runtime/iComparator.js.map +1 -0
- package/lib/cjs/system/storage/CacheList.d.ts +40 -0
- package/lib/cjs/system/storage/CacheList.d.ts.map +1 -0
- package/lib/cjs/system/storage/CacheList.js +81 -0
- package/lib/cjs/system/storage/CacheList.js.map +1 -0
- package/lib/cjs/system/storage/CachedItem.d.ts +22 -0
- package/lib/cjs/system/storage/CachedItem.d.ts.map +1 -0
- package/lib/cjs/system/storage/CachedItem.js +26 -0
- package/lib/cjs/system/storage/CachedItem.js.map +1 -0
- package/lib/cjs/system/storage/ContentLoader.d.ts +65 -0
- package/lib/cjs/system/storage/ContentLoader.d.ts.map +1 -0
- package/lib/cjs/system/storage/ContentLoader.js +96 -0
- package/lib/cjs/system/storage/ContentLoader.js.map +1 -0
- package/lib/cjs/system/storage/FileContent.d.ts +20 -0
- package/lib/cjs/system/storage/FileContent.d.ts.map +1 -0
- package/lib/cjs/system/storage/FileContent.js +25 -0
- package/lib/cjs/system/storage/FileContent.js.map +1 -0
- package/lib/cjs/system/storage/FileRange.d.ts +21 -0
- package/lib/cjs/system/storage/FileRange.d.ts.map +1 -0
- package/lib/cjs/system/storage/FileRange.js +25 -0
- package/lib/cjs/system/storage/FileRange.js.map +1 -0
- package/lib/cjs/system/storage/FileStorage.d.ts +45 -0
- package/lib/cjs/system/storage/FileStorage.d.ts.map +1 -0
- package/lib/cjs/system/storage/FileStorage.js +63 -0
- package/lib/cjs/system/storage/FileStorage.js.map +1 -0
- package/lib/cjs/system/storage/NodeFS.d.ts +42 -0
- package/lib/cjs/system/storage/NodeFS.d.ts.map +1 -0
- package/lib/cjs/system/storage/NodeFS.js +80 -0
- package/lib/cjs/system/storage/NodeFS.js.map +1 -0
- package/lib/cjs/system/storage/PageCachedFile.d.ts +55 -0
- package/lib/cjs/system/storage/PageCachedFile.d.ts.map +1 -0
- package/lib/cjs/system/storage/PageCachedFile.js +166 -0
- package/lib/cjs/system/storage/PageCachedFile.js.map +1 -0
- package/lib/cjs/system/storage/UrlFS.d.ts +54 -0
- package/lib/cjs/system/storage/UrlFS.d.ts.map +1 -0
- package/lib/cjs/system/storage/UrlFS.js +115 -0
- package/lib/cjs/system/storage/UrlFS.js.map +1 -0
- package/lib/esm/core-orbitgt.d.ts +27 -0
- package/lib/esm/core-orbitgt.d.ts.map +1 -0
- package/lib/esm/core-orbitgt.js +32 -0
- package/lib/esm/core-orbitgt.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/AttributeMask.d.ts +31 -0
- package/lib/esm/pointcloud/format/opc/AttributeMask.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/AttributeMask.js +44 -0
- package/lib/esm/pointcloud/format/opc/AttributeMask.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/AttributeReader.d.ts +64 -0
- package/lib/esm/pointcloud/format/opc/AttributeReader.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/AttributeReader.js +21 -0
- package/lib/esm/pointcloud/format/opc/AttributeReader.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/BlockRecord.d.ts +55 -0
- package/lib/esm/pointcloud/format/opc/BlockRecord.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/BlockRecord.js +81 -0
- package/lib/esm/pointcloud/format/opc/BlockRecord.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/ContainerFile.d.ts +86 -0
- package/lib/esm/pointcloud/format/opc/ContainerFile.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/ContainerFile.js +196 -0
- package/lib/esm/pointcloud/format/opc/ContainerFile.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.d.ts +56 -0
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js +72 -0
- package/lib/esm/pointcloud/format/opc/ContainerFilePart.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/DirectoryReader.d.ts +76 -0
- package/lib/esm/pointcloud/format/opc/DirectoryReader.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js +166 -0
- package/lib/esm/pointcloud/format/opc/DirectoryReader.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.d.ts +60 -0
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js +86 -0
- package/lib/esm/pointcloud/format/opc/DirectoryRecord.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.d.ts +107 -0
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js +194 -0
- package/lib/esm/pointcloud/format/opc/EmbeddedAttributeReader.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/FileAccess.d.ts +40 -0
- package/lib/esm/pointcloud/format/opc/FileAccess.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/FileAccess.js +45 -0
- package/lib/esm/pointcloud/format/opc/FileAccess.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/FileReader.d.ts +119 -0
- package/lib/esm/pointcloud/format/opc/FileReader.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/FileReader.js +245 -0
- package/lib/esm/pointcloud/format/opc/FileReader.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/FileRecord.d.ts +90 -0
- package/lib/esm/pointcloud/format/opc/FileRecord.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/FileRecord.js +122 -0
- package/lib/esm/pointcloud/format/opc/FileRecord.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/GeometryReader.d.ts +80 -0
- package/lib/esm/pointcloud/format/opc/GeometryReader.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/GeometryReader.js +160 -0
- package/lib/esm/pointcloud/format/opc/GeometryReader.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/GeometryRecord.d.ts +54 -0
- package/lib/esm/pointcloud/format/opc/GeometryRecord.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js +104 -0
- package/lib/esm/pointcloud/format/opc/GeometryRecord.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/OPCReader.d.ts +158 -0
- package/lib/esm/pointcloud/format/opc/OPCReader.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/OPCReader.js +316 -0
- package/lib/esm/pointcloud/format/opc/OPCReader.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/PointReader.d.ts +73 -0
- package/lib/esm/pointcloud/format/opc/PointReader.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/PointReader.js +149 -0
- package/lib/esm/pointcloud/format/opc/PointReader.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.d.ts +64 -0
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js +89 -0
- package/lib/esm/pointcloud/format/opc/TileReadBuffer.js.map +1 -0
- package/lib/esm/pointcloud/format/opc/TileRecord.d.ts +89 -0
- package/lib/esm/pointcloud/format/opc/TileRecord.d.ts.map +1 -0
- package/lib/esm/pointcloud/format/opc/TileRecord.js +158 -0
- package/lib/esm/pointcloud/format/opc/TileRecord.js.map +1 -0
- package/lib/esm/pointcloud/model/AttributeTypes.d.ts +38 -0
- package/lib/esm/pointcloud/model/AttributeTypes.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/AttributeTypes.js +61 -0
- package/lib/esm/pointcloud/model/AttributeTypes.js.map +1 -0
- package/lib/esm/pointcloud/model/AttributeValue.d.ts +248 -0
- package/lib/esm/pointcloud/model/AttributeValue.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/AttributeValue.js +505 -0
- package/lib/esm/pointcloud/model/AttributeValue.js.map +1 -0
- package/lib/esm/pointcloud/model/BlockIndex.d.ts +50 -0
- package/lib/esm/pointcloud/model/BlockIndex.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/BlockIndex.js +45 -0
- package/lib/esm/pointcloud/model/BlockIndex.js.map +1 -0
- package/lib/esm/pointcloud/model/CloudPoint.d.ts +211 -0
- package/lib/esm/pointcloud/model/CloudPoint.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/CloudPoint.js +315 -0
- package/lib/esm/pointcloud/model/CloudPoint.js.map +1 -0
- package/lib/esm/pointcloud/model/Grid.d.ts +92 -0
- package/lib/esm/pointcloud/model/Grid.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/Grid.js +126 -0
- package/lib/esm/pointcloud/model/Grid.js.map +1 -0
- package/lib/esm/pointcloud/model/GridIndex.d.ts +67 -0
- package/lib/esm/pointcloud/model/GridIndex.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/GridIndex.js +90 -0
- package/lib/esm/pointcloud/model/GridIndex.js.map +1 -0
- package/lib/esm/pointcloud/model/PointAttribute.d.ts +209 -0
- package/lib/esm/pointcloud/model/PointAttribute.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/PointAttribute.js +371 -0
- package/lib/esm/pointcloud/model/PointAttribute.js.map +1 -0
- package/lib/esm/pointcloud/model/PointCloudReader.d.ts +157 -0
- package/lib/esm/pointcloud/model/PointCloudReader.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/PointCloudReader.js +186 -0
- package/lib/esm/pointcloud/model/PointCloudReader.js.map +1 -0
- package/lib/esm/pointcloud/model/PointData.d.ts +18 -0
- package/lib/esm/pointcloud/model/PointData.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/PointData.js +21 -0
- package/lib/esm/pointcloud/model/PointData.js.map +1 -0
- package/lib/esm/pointcloud/model/PointDataRaw.d.ts +35 -0
- package/lib/esm/pointcloud/model/PointDataRaw.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/PointDataRaw.js +66 -0
- package/lib/esm/pointcloud/model/PointDataRaw.js.map +1 -0
- package/lib/esm/pointcloud/model/ReadRequest.d.ts +176 -0
- package/lib/esm/pointcloud/model/ReadRequest.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/ReadRequest.js +236 -0
- package/lib/esm/pointcloud/model/ReadRequest.js.map +1 -0
- package/lib/esm/pointcloud/model/StandardAttributes.d.ts +41 -0
- package/lib/esm/pointcloud/model/StandardAttributes.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/StandardAttributes.js +44 -0
- package/lib/esm/pointcloud/model/StandardAttributes.js.map +1 -0
- package/lib/esm/pointcloud/model/TileIndex.d.ts +48 -0
- package/lib/esm/pointcloud/model/TileIndex.d.ts.map +1 -0
- package/lib/esm/pointcloud/model/TileIndex.js +44 -0
- package/lib/esm/pointcloud/model/TileIndex.js.map +1 -0
- package/lib/esm/pointcloud/render/AViewRequest.d.ts +39 -0
- package/lib/esm/pointcloud/render/AViewRequest.d.ts.map +1 -0
- package/lib/esm/pointcloud/render/AViewRequest.js +21 -0
- package/lib/esm/pointcloud/render/AViewRequest.js.map +1 -0
- package/lib/esm/pointcloud/render/Block.d.ts +68 -0
- package/lib/esm/pointcloud/render/Block.d.ts.map +1 -0
- package/lib/esm/pointcloud/render/Block.js +116 -0
- package/lib/esm/pointcloud/render/Block.js.map +1 -0
- package/lib/esm/pointcloud/render/DataManager.d.ts +137 -0
- package/lib/esm/pointcloud/render/DataManager.d.ts.map +1 -0
- package/lib/esm/pointcloud/render/DataManager.js +339 -0
- package/lib/esm/pointcloud/render/DataManager.js.map +1 -0
- package/lib/esm/pointcloud/render/FrameData.d.ts +31 -0
- package/lib/esm/pointcloud/render/FrameData.d.ts.map +1 -0
- package/lib/esm/pointcloud/render/FrameData.js +36 -0
- package/lib/esm/pointcloud/render/FrameData.js.map +1 -0
- package/lib/esm/pointcloud/render/Level.d.ts +91 -0
- package/lib/esm/pointcloud/render/Level.d.ts.map +1 -0
- package/lib/esm/pointcloud/render/Level.js +116 -0
- package/lib/esm/pointcloud/render/Level.js.map +1 -0
- package/lib/esm/pointcloud/render/TileLoadSorter.d.ts +61 -0
- package/lib/esm/pointcloud/render/TileLoadSorter.d.ts.map +1 -0
- package/lib/esm/pointcloud/render/TileLoadSorter.js +96 -0
- package/lib/esm/pointcloud/render/TileLoadSorter.js.map +1 -0
- package/lib/esm/pointcloud/render/ViewTree.d.ts +114 -0
- package/lib/esm/pointcloud/render/ViewTree.d.ts.map +1 -0
- package/lib/esm/pointcloud/render/ViewTree.js +360 -0
- package/lib/esm/pointcloud/render/ViewTree.js.map +1 -0
- package/lib/esm/spatial/crs/CRSEngine.d.ts +56 -0
- package/lib/esm/spatial/crs/CRSEngine.d.ts.map +1 -0
- package/lib/esm/spatial/crs/CRSEngine.js +90 -0
- package/lib/esm/spatial/crs/CRSEngine.js.map +1 -0
- package/lib/esm/spatial/crs/CRSManager.d.ts +50 -0
- package/lib/esm/spatial/crs/CRSManager.d.ts.map +1 -0
- package/lib/esm/spatial/crs/CRSManager.js +106 -0
- package/lib/esm/spatial/crs/CRSManager.js.map +1 -0
- package/lib/esm/spatial/ecrs/Axis.d.ts +78 -0
- package/lib/esm/spatial/ecrs/Axis.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/Axis.js +90 -0
- package/lib/esm/spatial/ecrs/Axis.js.map +1 -0
- package/lib/esm/spatial/ecrs/CRS.d.ts +448 -0
- package/lib/esm/spatial/ecrs/CRS.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/CRS.js +927 -0
- package/lib/esm/spatial/ecrs/CRS.js.map +1 -0
- package/lib/esm/spatial/ecrs/CoordinateSystem.d.ts +143 -0
- package/lib/esm/spatial/ecrs/CoordinateSystem.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/CoordinateSystem.js +323 -0
- package/lib/esm/spatial/ecrs/CoordinateSystem.js.map +1 -0
- package/lib/esm/spatial/ecrs/DataFileUnit.d.ts +11 -0
- package/lib/esm/spatial/ecrs/DataFileUnit.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/DataFileUnit.js +101 -0
- package/lib/esm/spatial/ecrs/DataFileUnit.js.map +1 -0
- package/lib/esm/spatial/ecrs/Datum.d.ts +112 -0
- package/lib/esm/spatial/ecrs/Datum.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/Datum.js +163 -0
- package/lib/esm/spatial/ecrs/Datum.js.map +1 -0
- package/lib/esm/spatial/ecrs/Ellipsoid.d.ts +189 -0
- package/lib/esm/spatial/ecrs/Ellipsoid.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/Ellipsoid.js +333 -0
- package/lib/esm/spatial/ecrs/Ellipsoid.js.map +1 -0
- package/lib/esm/spatial/ecrs/OnlineEngine.d.ts +49 -0
- package/lib/esm/spatial/ecrs/OnlineEngine.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/OnlineEngine.js +99 -0
- package/lib/esm/spatial/ecrs/OnlineEngine.js.map +1 -0
- package/lib/esm/spatial/ecrs/OnlineRegistry.d.ts +38 -0
- package/lib/esm/spatial/ecrs/OnlineRegistry.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/OnlineRegistry.js +73 -0
- package/lib/esm/spatial/ecrs/OnlineRegistry.js.map +1 -0
- package/lib/esm/spatial/ecrs/Operation.d.ts +192 -0
- package/lib/esm/spatial/ecrs/Operation.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/Operation.js +342 -0
- package/lib/esm/spatial/ecrs/Operation.js.map +1 -0
- package/lib/esm/spatial/ecrs/OperationMethod.d.ts +72 -0
- package/lib/esm/spatial/ecrs/OperationMethod.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/OperationMethod.js +72 -0
- package/lib/esm/spatial/ecrs/OperationMethod.js.map +1 -0
- package/lib/esm/spatial/ecrs/ParameterValue.d.ts +50 -0
- package/lib/esm/spatial/ecrs/ParameterValue.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/ParameterValue.js +62 -0
- package/lib/esm/spatial/ecrs/ParameterValue.js.map +1 -0
- package/lib/esm/spatial/ecrs/ParameterValueList.d.ts +73 -0
- package/lib/esm/spatial/ecrs/ParameterValueList.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/ParameterValueList.js +117 -0
- package/lib/esm/spatial/ecrs/ParameterValueList.js.map +1 -0
- package/lib/esm/spatial/ecrs/PrimeMeridian.d.ts +79 -0
- package/lib/esm/spatial/ecrs/PrimeMeridian.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/PrimeMeridian.js +105 -0
- package/lib/esm/spatial/ecrs/PrimeMeridian.js.map +1 -0
- package/lib/esm/spatial/ecrs/Registry.d.ts +110 -0
- package/lib/esm/spatial/ecrs/Registry.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/Registry.js +204 -0
- package/lib/esm/spatial/ecrs/Registry.js.map +1 -0
- package/lib/esm/spatial/ecrs/Transform.d.ts +78 -0
- package/lib/esm/spatial/ecrs/Transform.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/Transform.js +393 -0
- package/lib/esm/spatial/ecrs/Transform.js.map +1 -0
- package/lib/esm/spatial/ecrs/Unit.d.ts +171 -0
- package/lib/esm/spatial/ecrs/Unit.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/Unit.js +333 -0
- package/lib/esm/spatial/ecrs/Unit.js.map +1 -0
- package/lib/esm/spatial/ecrs/VerticalModel.d.ts +70 -0
- package/lib/esm/spatial/ecrs/VerticalModel.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/VerticalModel.js +85 -0
- package/lib/esm/spatial/ecrs/VerticalModel.js.map +1 -0
- package/lib/esm/spatial/ecrs/WellKnownText.d.ts +154 -0
- package/lib/esm/spatial/ecrs/WellKnownText.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/WellKnownText.js +491 -0
- package/lib/esm/spatial/ecrs/WellKnownText.js.map +1 -0
- package/lib/esm/spatial/ecrs/WellKnownTextNode.d.ts +70 -0
- package/lib/esm/spatial/ecrs/WellKnownTextNode.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js +125 -0
- package/lib/esm/spatial/ecrs/WellKnownTextNode.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.d.ts +102 -0
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js +159 -0
- package/lib/esm/spatial/ecrs/projection/HotineObliqueMercator.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts +80 -0
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js +122 -0
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConic.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts +48 -0
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js +70 -0
- package/lib/esm/spatial/ecrs/projection/KrovakObliqueConformalConicEN.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.d.ts +73 -0
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js +126 -0
- package/lib/esm/spatial/ecrs/projection/LambertConical1SP.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.d.ts +121 -0
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js +176 -0
- package/lib/esm/spatial/ecrs/projection/LambertConical2SP.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.d.ts +74 -0
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js +109 -0
- package/lib/esm/spatial/ecrs/projection/Mercator1SP.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.d.ts +97 -0
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js +170 -0
- package/lib/esm/spatial/ecrs/projection/ObliqueMercator.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.d.ts +124 -0
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js +205 -0
- package/lib/esm/spatial/ecrs/projection/ObliqueStereographic.js.map +1 -0
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.d.ts +109 -0
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js +180 -0
- package/lib/esm/spatial/ecrs/projection/TransverseMercator.js.map +1 -0
- package/lib/esm/spatial/ecrs/transformation/PositionVector.d.ts +91 -0
- package/lib/esm/spatial/ecrs/transformation/PositionVector.d.ts.map +1 -0
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js +127 -0
- package/lib/esm/spatial/ecrs/transformation/PositionVector.js.map +1 -0
- package/lib/esm/spatial/geom/Bounds.d.ts +34 -0
- package/lib/esm/spatial/geom/Bounds.d.ts.map +1 -0
- package/lib/esm/spatial/geom/Bounds.js +153 -0
- package/lib/esm/spatial/geom/Bounds.js.map +1 -0
- package/lib/esm/spatial/geom/Coordinate.d.ts +62 -0
- package/lib/esm/spatial/geom/Coordinate.d.ts.map +1 -0
- package/lib/esm/spatial/geom/Coordinate.js +183 -0
- package/lib/esm/spatial/geom/Coordinate.js.map +1 -0
- package/lib/esm/spatial/geom/Line.d.ts +226 -0
- package/lib/esm/spatial/geom/Line.d.ts.map +1 -0
- package/lib/esm/spatial/geom/Line.js +429 -0
- package/lib/esm/spatial/geom/Line.js.map +1 -0
- package/lib/esm/spatial/geom/Transform.d.ts +341 -0
- package/lib/esm/spatial/geom/Transform.d.ts.map +1 -0
- package/lib/esm/spatial/geom/Transform.js +745 -0
- package/lib/esm/spatial/geom/Transform.js.map +1 -0
- package/lib/esm/system/buffer/ABuffer.d.ts +52 -0
- package/lib/esm/system/buffer/ABuffer.d.ts.map +1 -0
- package/lib/esm/system/buffer/ABuffer.js +87 -0
- package/lib/esm/system/buffer/ABuffer.js.map +1 -0
- package/lib/esm/system/buffer/Float32Buffer.d.ts +47 -0
- package/lib/esm/system/buffer/Float32Buffer.d.ts.map +1 -0
- package/lib/esm/system/buffer/Float32Buffer.js +57 -0
- package/lib/esm/system/buffer/Float32Buffer.js.map +1 -0
- package/lib/esm/system/buffer/LittleEndian.d.ts +150 -0
- package/lib/esm/system/buffer/LittleEndian.d.ts.map +1 -0
- package/lib/esm/system/buffer/LittleEndian.js +300 -0
- package/lib/esm/system/buffer/LittleEndian.js.map +1 -0
- package/lib/esm/system/buffer/Uint16Buffer.d.ts +50 -0
- package/lib/esm/system/buffer/Uint16Buffer.d.ts.map +1 -0
- package/lib/esm/system/buffer/Uint16Buffer.js +62 -0
- package/lib/esm/system/buffer/Uint16Buffer.js.map +1 -0
- package/lib/esm/system/buffer/Uint8Buffer.d.ts +50 -0
- package/lib/esm/system/buffer/Uint8Buffer.d.ts.map +1 -0
- package/lib/esm/system/buffer/Uint8Buffer.js +62 -0
- package/lib/esm/system/buffer/Uint8Buffer.js.map +1 -0
- package/lib/esm/system/collection/AList.d.ts +31 -0
- package/lib/esm/system/collection/AList.d.ts.map +1 -0
- package/lib/esm/system/collection/AList.js +67 -0
- package/lib/esm/system/collection/AList.js.map +1 -0
- package/lib/esm/system/collection/IntMap.d.ts +19 -0
- package/lib/esm/system/collection/IntMap.d.ts.map +1 -0
- package/lib/esm/system/collection/IntMap.js +32 -0
- package/lib/esm/system/collection/IntMap.js.map +1 -0
- package/lib/esm/system/collection/StringMap.d.ts +27 -0
- package/lib/esm/system/collection/StringMap.d.ts.map +1 -0
- package/lib/esm/system/collection/StringMap.js +60 -0
- package/lib/esm/system/collection/StringMap.js.map +1 -0
- package/lib/esm/system/io/ABufferInStream.d.ts +30 -0
- package/lib/esm/system/io/ABufferInStream.d.ts.map +1 -0
- package/lib/esm/system/io/ABufferInStream.js +43 -0
- package/lib/esm/system/io/ABufferInStream.js.map +1 -0
- package/lib/esm/system/io/InStream.d.ts +24 -0
- package/lib/esm/system/io/InStream.d.ts.map +1 -0
- package/lib/esm/system/io/InStream.js +31 -0
- package/lib/esm/system/io/InStream.js.map +1 -0
- package/lib/esm/system/io/OutStream.d.ts +24 -0
- package/lib/esm/system/io/OutStream.d.ts.map +1 -0
- package/lib/esm/system/io/OutStream.js +30 -0
- package/lib/esm/system/io/OutStream.js.map +1 -0
- package/lib/esm/system/runtime/ALong.d.ts +330 -0
- package/lib/esm/system/runtime/ALong.d.ts.map +1 -0
- package/lib/esm/system/runtime/ALong.js +684 -0
- package/lib/esm/system/runtime/ALong.js.map +1 -0
- package/lib/esm/system/runtime/ASystem.d.ts +15 -0
- package/lib/esm/system/runtime/ASystem.d.ts.map +1 -0
- package/lib/esm/system/runtime/ASystem.js +28 -0
- package/lib/esm/system/runtime/ASystem.js.map +1 -0
- package/lib/esm/system/runtime/Downloader.d.ts +18 -0
- package/lib/esm/system/runtime/Downloader.d.ts.map +1 -0
- package/lib/esm/system/runtime/Downloader.js +35 -0
- package/lib/esm/system/runtime/Downloader.js.map +1 -0
- package/lib/esm/system/runtime/DownloaderNode.d.ts +19 -0
- package/lib/esm/system/runtime/DownloaderNode.d.ts.map +1 -0
- package/lib/esm/system/runtime/DownloaderNode.js +126 -0
- package/lib/esm/system/runtime/DownloaderNode.js.map +1 -0
- package/lib/esm/system/runtime/DownloaderXhr.d.ts +19 -0
- package/lib/esm/system/runtime/DownloaderXhr.d.ts.map +1 -0
- package/lib/esm/system/runtime/DownloaderXhr.js +128 -0
- package/lib/esm/system/runtime/DownloaderXhr.js.map +1 -0
- package/lib/esm/system/runtime/Message.d.ts +17 -0
- package/lib/esm/system/runtime/Message.d.ts.map +1 -0
- package/lib/esm/system/runtime/Message.js +36 -0
- package/lib/esm/system/runtime/Message.js.map +1 -0
- package/lib/esm/system/runtime/Numbers.d.ts +35 -0
- package/lib/esm/system/runtime/Numbers.d.ts.map +1 -0
- package/lib/esm/system/runtime/Numbers.js +84 -0
- package/lib/esm/system/runtime/Numbers.js.map +1 -0
- package/lib/esm/system/runtime/Strings.d.ts +50 -0
- package/lib/esm/system/runtime/Strings.d.ts.map +1 -0
- package/lib/esm/system/runtime/Strings.js +185 -0
- package/lib/esm/system/runtime/Strings.js.map +1 -0
- package/lib/esm/system/runtime/iComparator.d.ts +13 -0
- package/lib/esm/system/runtime/iComparator.d.ts.map +1 -0
- package/lib/esm/system/runtime/iComparator.js +9 -0
- package/lib/esm/system/runtime/iComparator.js.map +1 -0
- package/lib/esm/system/storage/CacheList.d.ts +40 -0
- package/lib/esm/system/storage/CacheList.d.ts.map +1 -0
- package/lib/esm/system/storage/CacheList.js +77 -0
- package/lib/esm/system/storage/CacheList.js.map +1 -0
- package/lib/esm/system/storage/CachedItem.d.ts +22 -0
- package/lib/esm/system/storage/CachedItem.d.ts.map +1 -0
- package/lib/esm/system/storage/CachedItem.js +22 -0
- package/lib/esm/system/storage/CachedItem.js.map +1 -0
- package/lib/esm/system/storage/ContentLoader.d.ts +65 -0
- package/lib/esm/system/storage/ContentLoader.d.ts.map +1 -0
- package/lib/esm/system/storage/ContentLoader.js +92 -0
- package/lib/esm/system/storage/ContentLoader.js.map +1 -0
- package/lib/esm/system/storage/FileContent.d.ts +20 -0
- package/lib/esm/system/storage/FileContent.d.ts.map +1 -0
- package/lib/esm/system/storage/FileContent.js +21 -0
- package/lib/esm/system/storage/FileContent.js.map +1 -0
- package/lib/esm/system/storage/FileRange.d.ts +21 -0
- package/lib/esm/system/storage/FileRange.d.ts.map +1 -0
- package/lib/esm/system/storage/FileRange.js +21 -0
- package/lib/esm/system/storage/FileRange.js.map +1 -0
- package/lib/esm/system/storage/FileStorage.d.ts +45 -0
- package/lib/esm/system/storage/FileStorage.d.ts.map +1 -0
- package/lib/esm/system/storage/FileStorage.js +59 -0
- package/lib/esm/system/storage/FileStorage.js.map +1 -0
- package/lib/esm/system/storage/NodeFS.d.ts +42 -0
- package/lib/esm/system/storage/NodeFS.d.ts.map +1 -0
- package/lib/esm/system/storage/NodeFS.js +76 -0
- package/lib/esm/system/storage/NodeFS.js.map +1 -0
- package/lib/esm/system/storage/PageCachedFile.d.ts +55 -0
- package/lib/esm/system/storage/PageCachedFile.d.ts.map +1 -0
- package/lib/esm/system/storage/PageCachedFile.js +162 -0
- package/lib/esm/system/storage/PageCachedFile.js.map +1 -0
- package/lib/esm/system/storage/UrlFS.d.ts +54 -0
- package/lib/esm/system/storage/UrlFS.d.ts.map +1 -0
- package/lib/esm/system/storage/UrlFS.js +111 -0
- package/lib/esm/system/storage/UrlFS.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,94 @@
|
|
|
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.CRSEngine = void 0;
|
|
11
|
+
const Bounds_1 = require("../geom/Bounds");
|
|
12
|
+
const Coordinate_1 = require("../geom/Coordinate");
|
|
13
|
+
/**
|
|
14
|
+
* Abstract class CRSEngine provides a model for CRS transformation engines to implement.
|
|
15
|
+
*/
|
|
16
|
+
/** @internal */
|
|
17
|
+
class CRSEngine {
|
|
18
|
+
/**
|
|
19
|
+
* Create a new engine.
|
|
20
|
+
*/
|
|
21
|
+
constructor() {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Prepare a CRS for making transforms in a certain area.
|
|
25
|
+
* @param crs the CRS to prepare.
|
|
26
|
+
* @param area the area to prepare for (can be invalid to prepare only for the crs).
|
|
27
|
+
*/
|
|
28
|
+
async prepareForArea(crs, area) {
|
|
29
|
+
// subclasses should override this method if they need to download some part of a grid correction file, or the CRS declaration
|
|
30
|
+
return area;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Transform a coordinate from one CRS to another.
|
|
34
|
+
* @param point the point coordinate.
|
|
35
|
+
* @param sourceCRS the source CRS.
|
|
36
|
+
* @param targetCRS the target CRS.
|
|
37
|
+
* @return the transformed coordinate.
|
|
38
|
+
*/
|
|
39
|
+
transformPoint(point, sourceCRS, targetCRS) {
|
|
40
|
+
// subclasses should override this method
|
|
41
|
+
return point;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a CRS is geocentric.
|
|
45
|
+
* @param crs the CRS to check.
|
|
46
|
+
* @return true if geocentric.
|
|
47
|
+
*/
|
|
48
|
+
isGeocentricCRS(crs) {
|
|
49
|
+
// subclasses should override this method
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a CRS is geographic.
|
|
54
|
+
* @param crs the CRS to check.
|
|
55
|
+
* @return true if geocentric.
|
|
56
|
+
*/
|
|
57
|
+
isGeographicCRS(crs) {
|
|
58
|
+
// subclasses should override this method
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a CRS is projected.
|
|
63
|
+
* @param crs the CRS to check.
|
|
64
|
+
* @return true if geocentric.
|
|
65
|
+
*/
|
|
66
|
+
isProjectedCRS(crs) {
|
|
67
|
+
// subclasses should override this method
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Transform spatial bounds from one CRS to another.
|
|
72
|
+
* @param point the point coordinate.
|
|
73
|
+
* @param sourceCRS the source CRS.
|
|
74
|
+
* @param targetCRS the target CRS.
|
|
75
|
+
* @return the transformed bounds.
|
|
76
|
+
*/
|
|
77
|
+
transformBounds(bounds, sourceCRS, targetCRS) {
|
|
78
|
+
// no real need to override this method in subclasses
|
|
79
|
+
/* Create new bounds */
|
|
80
|
+
let targetBounds = new Bounds_1.Bounds();
|
|
81
|
+
if (bounds.isValid()) {
|
|
82
|
+
/* Transform all 8 corners */
|
|
83
|
+
let corner = Coordinate_1.Coordinate.create();
|
|
84
|
+
for (let i = 0; i < 8; i++) {
|
|
85
|
+
bounds.getCorner(i, corner);
|
|
86
|
+
targetBounds.add(this.transformPoint(corner, sourceCRS, targetCRS));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/* Return the target bounds */
|
|
90
|
+
return targetBounds;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.CRSEngine = CRSEngine;
|
|
94
|
+
//# sourceMappingURL=CRSEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CRSEngine.js","sourceRoot":"","sources":["../../../../src/spatial/crs/CRSEngine.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH,2CAAwC;AACxC,mDAAgD;AAEhD;;GAEG;AACH,gBAAgB;AAChB,MAAa,SAAS;IAClB;;OAEG;IACH;IACA,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,cAAc,CAAC,GAAW,EAAE,IAAY;QACjD,8HAA8H;QAC9H,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;;OAMG;IACI,cAAc,CAAC,KAAiB,EAAE,SAAiB,EAAE,SAAiB;QACzE,yCAAyC;QACzC,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACI,eAAe,CAAC,GAAW;QAC9B,yCAAyC;QACzC,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACI,eAAe,CAAC,GAAW;QAC9B,yCAAyC;QACzC,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACI,cAAc,CAAC,GAAW;QAC7B,yCAAyC;QACzC,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;;;OAMG;IACI,eAAe,CAAC,MAAc,EAAE,SAAiB,EAAE,SAAiB;QACvE,qDAAqD;QACrD,uBAAuB;QACvB,IAAI,YAAY,GAAW,IAAI,eAAM,EAAE,CAAC;QACxC,IAAI,MAAM,CAAC,OAAO,EAAE,EAAE;YAClB,6BAA6B;YAC7B,IAAI,MAAM,GAAe,uBAAU,CAAC,MAAM,EAAE,CAAC;YAC7C,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;gBAChC,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;gBAC5B,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;aACvE;SACJ;QACD,8BAA8B;QAC9B,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ;AAjFD,8BAiFC","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.crs;\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 { Bounds } from \"../geom/Bounds\";\r\nimport { Coordinate } from \"../geom/Coordinate\";\r\n\r\n/**\r\n * Abstract class CRSEngine provides a model for CRS transformation engines to implement.\r\n */\r\n/** @internal */\r\nexport class CRSEngine {\r\n /**\r\n * Create a new engine.\r\n */\r\n public constructor() {\r\n }\r\n\r\n /**\r\n * Prepare a CRS for making transforms in a certain area.\r\n * @param crs the CRS to prepare.\r\n * @param area the area to prepare for (can be invalid to prepare only for the crs).\r\n */\r\n public async prepareForArea(crs: string, area: Bounds): Promise<Bounds> {\r\n // subclasses should override this method if they need to download some part of a grid correction file, or the CRS declaration\r\n return area;\r\n }\r\n\r\n /**\r\n * Transform a coordinate from one CRS to another.\r\n * @param point the point coordinate.\r\n * @param sourceCRS the source CRS.\r\n * @param targetCRS the target CRS.\r\n * @return the transformed coordinate.\r\n */\r\n public transformPoint(point: Coordinate, sourceCRS: string, targetCRS: string): Coordinate {\r\n // subclasses should override this method\r\n return point;\r\n }\r\n\r\n /**\r\n * Check if a CRS is geocentric.\r\n * @param crs the CRS to check.\r\n * @return true if geocentric.\r\n */\r\n public isGeocentricCRS(crs: string): boolean {\r\n // subclasses should override this method\r\n return false;\r\n }\r\n\r\n /**\r\n * Check if a CRS is geographic.\r\n * @param crs the CRS to check.\r\n * @return true if geocentric.\r\n */\r\n public isGeographicCRS(crs: string): boolean {\r\n // subclasses should override this method\r\n return false;\r\n }\r\n\r\n /**\r\n * Check if a CRS is projected.\r\n * @param crs the CRS to check.\r\n * @return true if geocentric.\r\n */\r\n public isProjectedCRS(crs: string): boolean {\r\n // subclasses should override this method\r\n return false;\r\n }\r\n\r\n /**\r\n * Transform spatial bounds from one CRS to another.\r\n * @param point the point coordinate.\r\n * @param sourceCRS the source CRS.\r\n * @param targetCRS the target CRS.\r\n * @return the transformed bounds.\r\n */\r\n public transformBounds(bounds: Bounds, sourceCRS: string, targetCRS: string): Bounds {\r\n // no real need to override this method in subclasses\r\n /* Create new bounds */\r\n let targetBounds: Bounds = new Bounds();\r\n if (bounds.isValid()) {\r\n /* Transform all 8 corners */\r\n let corner: Coordinate = Coordinate.create();\r\n for (let i: number = 0; i < 8; i++) {\r\n bounds.getCorner(i, corner);\r\n targetBounds.add(this.transformPoint(corner, sourceCRS, targetCRS));\r\n }\r\n }\r\n /* Return the target bounds */\r\n return targetBounds;\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module OrbitGT
|
|
3
|
+
*/
|
|
4
|
+
import { Bounds } from "../geom/Bounds";
|
|
5
|
+
import { Coordinate } from "../geom/Coordinate";
|
|
6
|
+
import { Transform } from "../geom/Transform";
|
|
7
|
+
import { CRSEngine } from "./CRSEngine";
|
|
8
|
+
/**
|
|
9
|
+
* Class CRSManager defines the main access point to the CRS transformation engine.
|
|
10
|
+
*/
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare class CRSManager {
|
|
13
|
+
/** The main instance of the CRS engine. This needs to be set by the application on startup. */
|
|
14
|
+
static ENGINE: CRSEngine;
|
|
15
|
+
/**
|
|
16
|
+
* Allow no instances, all methods are static.
|
|
17
|
+
*/
|
|
18
|
+
private constructor();
|
|
19
|
+
/**
|
|
20
|
+
* Prepare a CRS for making transforms in a certain area.
|
|
21
|
+
* @param crs the CRS to prepare.
|
|
22
|
+
* @param area the area to prepare for (can be invalid to prepare only for the crs).
|
|
23
|
+
*/
|
|
24
|
+
static prepareForArea(crs: string, area: Bounds): Promise<Bounds>;
|
|
25
|
+
/**
|
|
26
|
+
* Transform a coordinate from one CRS to another.
|
|
27
|
+
* @param point the point coordinate.
|
|
28
|
+
* @param sourceCRS the source CRS.
|
|
29
|
+
* @param targetCRS the target CRS.
|
|
30
|
+
* @return the transformed coordinate.
|
|
31
|
+
*/
|
|
32
|
+
static transformPoint(point: Coordinate, sourceCRS: string, targetCRS: string): Coordinate;
|
|
33
|
+
/**
|
|
34
|
+
* Transform spatial bounds from one CRS to another.
|
|
35
|
+
* @param point the point coordinate.
|
|
36
|
+
* @param sourceCRS the source CRS.
|
|
37
|
+
* @param targetCRS the target CRS.
|
|
38
|
+
* @return the transformed bounds.
|
|
39
|
+
*/
|
|
40
|
+
static transformBounds(bounds: Bounds, sourceCRS: string, targetCRS: string): Bounds;
|
|
41
|
+
/**
|
|
42
|
+
* Create an approximate 3D transformation from a source to a target CRS.
|
|
43
|
+
* @param sourceCRS the source CRS.
|
|
44
|
+
* @param sourcePoint the origin point in the source CRS.
|
|
45
|
+
* @param targetCRS the target CRS.
|
|
46
|
+
* @return the transform.
|
|
47
|
+
*/
|
|
48
|
+
static createTransform(sourceCRS: string, sourcePoint: Coordinate, targetCRS: string): Transform;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=CRSManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CRSManager.d.ts","sourceRoot":"","sources":["../../../../src/spatial/crs/CRSManager.ts"],"names":[],"mappings":"AAIA;;GAEG;AAYH,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,gBAAgB;AAChB,qBAAa,UAAU;IACnB,+FAA+F;IAC/F,OAAc,MAAM,EAAE,SAAS,CAAQ;IAEvC;;OAEG;IACH,OAAO;IAGP;;;;OAIG;WACiB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAK9E;;;;;;OAMG;WACW,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU;IAKjG;;;;;;OAMG;WACW,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM;IAK3F;;;;;;OAMG;WACW,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,GAAG,SAAS;CAmC1G"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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.CRSManager = void 0;
|
|
11
|
+
const Strings_1 = require("../../system/runtime/Strings");
|
|
12
|
+
const Coordinate_1 = require("../geom/Coordinate");
|
|
13
|
+
const Transform_1 = require("../geom/Transform");
|
|
14
|
+
/**
|
|
15
|
+
* Class CRSManager defines the main access point to the CRS transformation engine.
|
|
16
|
+
*/
|
|
17
|
+
/** @internal */
|
|
18
|
+
class CRSManager {
|
|
19
|
+
/**
|
|
20
|
+
* Allow no instances, all methods are static.
|
|
21
|
+
*/
|
|
22
|
+
constructor() {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Prepare a CRS for making transforms in a certain area.
|
|
26
|
+
* @param crs the CRS to prepare.
|
|
27
|
+
* @param area the area to prepare for (can be invalid to prepare only for the crs).
|
|
28
|
+
*/
|
|
29
|
+
static async prepareForArea(crs, area) {
|
|
30
|
+
if (CRSManager.ENGINE == null)
|
|
31
|
+
return area;
|
|
32
|
+
return CRSManager.ENGINE.prepareForArea(crs, area);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Transform a coordinate from one CRS to another.
|
|
36
|
+
* @param point the point coordinate.
|
|
37
|
+
* @param sourceCRS the source CRS.
|
|
38
|
+
* @param targetCRS the target CRS.
|
|
39
|
+
* @return the transformed coordinate.
|
|
40
|
+
*/
|
|
41
|
+
static transformPoint(point, sourceCRS, targetCRS) {
|
|
42
|
+
if (CRSManager.ENGINE == null)
|
|
43
|
+
return point;
|
|
44
|
+
return CRSManager.ENGINE.transformPoint(point, sourceCRS, targetCRS);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Transform spatial bounds from one CRS to another.
|
|
48
|
+
* @param point the point coordinate.
|
|
49
|
+
* @param sourceCRS the source CRS.
|
|
50
|
+
* @param targetCRS the target CRS.
|
|
51
|
+
* @return the transformed bounds.
|
|
52
|
+
*/
|
|
53
|
+
static transformBounds(bounds, sourceCRS, targetCRS) {
|
|
54
|
+
if (CRSManager.ENGINE == null)
|
|
55
|
+
return bounds;
|
|
56
|
+
return CRSManager.ENGINE.transformBounds(bounds, sourceCRS, targetCRS);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create an approximate 3D transformation from a source to a target CRS.
|
|
60
|
+
* @param sourceCRS the source CRS.
|
|
61
|
+
* @param sourcePoint the origin point in the source CRS.
|
|
62
|
+
* @param targetCRS the target CRS.
|
|
63
|
+
* @return the transform.
|
|
64
|
+
*/
|
|
65
|
+
static createTransform(sourceCRS, sourcePoint, targetCRS) {
|
|
66
|
+
/* Check */
|
|
67
|
+
let transform = new Transform_1.Transform();
|
|
68
|
+
if (CRSManager.ENGINE == null)
|
|
69
|
+
return transform;
|
|
70
|
+
if (sourceCRS == null)
|
|
71
|
+
return transform;
|
|
72
|
+
if (targetCRS == null)
|
|
73
|
+
return transform;
|
|
74
|
+
if (sourcePoint == null)
|
|
75
|
+
return transform;
|
|
76
|
+
/* Same? */
|
|
77
|
+
if (Strings_1.Strings.equals(targetCRS, sourceCRS))
|
|
78
|
+
return transform;
|
|
79
|
+
/* Transform X and Y at 100 meter distance (assume Z is metric) */
|
|
80
|
+
let sizeXY = 100.0;
|
|
81
|
+
if (CRSManager.ENGINE.isGeographicCRS(sourceCRS))
|
|
82
|
+
sizeXY = (sizeXY / 40000000.0 * 360.0);
|
|
83
|
+
let sizeZ = 100.0;
|
|
84
|
+
/* Create the frame */
|
|
85
|
+
let p0 = sourcePoint.copy();
|
|
86
|
+
let pX = p0.copy();
|
|
87
|
+
pX.add0(new Coordinate_1.Coordinate(sizeXY, 0.0, 0.0));
|
|
88
|
+
let pY = p0.copy();
|
|
89
|
+
pY.add0(new Coordinate_1.Coordinate(0.0, sizeXY, 0.0));
|
|
90
|
+
let pZ = p0.copy();
|
|
91
|
+
pZ.add0(new Coordinate_1.Coordinate(0.0, 0.0, sizeZ));
|
|
92
|
+
/* Transform the frame */
|
|
93
|
+
p0 = CRSManager.ENGINE.transformPoint(p0, sourceCRS, targetCRS);
|
|
94
|
+
pX = CRSManager.ENGINE.transformPoint(pX, sourceCRS, targetCRS);
|
|
95
|
+
pY = CRSManager.ENGINE.transformPoint(pY, sourceCRS, targetCRS);
|
|
96
|
+
pZ = CRSManager.ENGINE.transformPoint(pZ, sourceCRS, targetCRS);
|
|
97
|
+
/* Get the columns */
|
|
98
|
+
let colX = pX.subtract(p0).scale(1.0 / sizeXY);
|
|
99
|
+
let colY = pY.subtract(p0).scale(1.0 / sizeXY);
|
|
100
|
+
let colZ = pZ.subtract(p0).scale(1.0 / sizeZ);
|
|
101
|
+
/* Create the transform */
|
|
102
|
+
transform = Transform_1.Transform.createWithColumns(colX, colY, colZ, p0);
|
|
103
|
+
transform.translate(-sourcePoint.getX(), -sourcePoint.getY(), -sourcePoint.getZ());
|
|
104
|
+
return transform;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.CRSManager = CRSManager;
|
|
108
|
+
/** The main instance of the CRS engine. This needs to be set by the application on startup. */
|
|
109
|
+
CRSManager.ENGINE = null;
|
|
110
|
+
//# sourceMappingURL=CRSManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CRSManager.js","sourceRoot":"","sources":["../../../../src/spatial/crs/CRSManager.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAWH,0DAAuD;AAEvD,mDAAgD;AAChD,iDAA8C;AAG9C;;GAEG;AACH,gBAAgB;AAChB,MAAa,UAAU;IAInB;;OAEG;IACH;IACA,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,GAAW,EAAE,IAAY;QACxD,IAAI,UAAU,CAAC,MAAM,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;QAC3C,OAAO,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,cAAc,CAAC,KAAiB,EAAE,SAAiB,EAAE,SAAiB;QAChF,IAAI,UAAU,CAAC,MAAM,IAAI,IAAI;YAAE,OAAO,KAAK,CAAC;QAC5C,OAAO,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,eAAe,CAAC,MAAc,EAAE,SAAiB,EAAE,SAAiB;QAC9E,IAAI,UAAU,CAAC,MAAM,IAAI,IAAI;YAAE,OAAO,MAAM,CAAC;QAC7C,OAAO,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,eAAe,CAAC,SAAiB,EAAE,WAAuB,EAAE,SAAiB;QACvF,WAAW;QACX,IAAI,SAAS,GAAc,IAAI,qBAAS,EAAE,CAAC;QAC3C,IAAI,UAAU,CAAC,MAAM,IAAI,IAAI;YAAE,OAAO,SAAS,CAAC;QAChD,IAAI,SAAS,IAAI,IAAI;YAAE,OAAO,SAAS,CAAC;QACxC,IAAI,SAAS,IAAI,IAAI;YAAE,OAAO,SAAS,CAAC;QACxC,IAAI,WAAW,IAAI,IAAI;YAAE,OAAO,SAAS,CAAC;QAC1C,WAAW;QACX,IAAI,iBAAO,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC;YAAE,OAAO,SAAS,CAAC;QAC3D,kEAAkE;QAClE,IAAI,MAAM,GAAY,KAAK,CAAC;QAC5B,IAAI,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC;YAAE,MAAM,GAAG,CAAC,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC,CAAC;QACzF,IAAI,KAAK,GAAY,KAAK,CAAC;QAC3B,sBAAsB;QACtB,IAAI,EAAE,GAAe,WAAW,CAAC,IAAI,EAAE,CAAC;QACxC,IAAI,EAAE,GAAe,EAAE,CAAC,IAAI,EAAE,CAAC;QAC/B,EAAE,CAAC,IAAI,CAAC,IAAI,uBAAU,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAC1C,IAAI,EAAE,GAAe,EAAE,CAAC,IAAI,EAAE,CAAC;QAC/B,EAAE,CAAC,IAAI,CAAC,IAAI,uBAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;QAC1C,IAAI,EAAE,GAAe,EAAE,CAAC,IAAI,EAAE,CAAC;QAC/B,EAAE,CAAC,IAAI,CAAC,IAAI,uBAAU,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;QACzC,yBAAyB;QACzB,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAChE,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAChE,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAChE,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAChE,qBAAqB;QACrB,IAAI,IAAI,GAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;QAC3D,IAAI,IAAI,GAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;QAC3D,IAAI,IAAI,GAAe,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC;QAC1D,0BAA0B;QAC1B,SAAS,GAAG,qBAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAC9D,SAAS,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;QACnF,OAAO,SAAS,CAAC;IACrB,CAAC;;AArFL,gCAsFC;AArFG,+FAA+F;AACjF,iBAAM,GAAc,IAAI,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.spatial.crs;\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\n\r\nimport { Strings } from \"../../system/runtime/Strings\";\r\nimport { Bounds } from \"../geom/Bounds\";\r\nimport { Coordinate } from \"../geom/Coordinate\";\r\nimport { Transform } from \"../geom/Transform\";\r\nimport { CRSEngine } from \"./CRSEngine\";\r\n\r\n/**\r\n * Class CRSManager defines the main access point to the CRS transformation engine.\r\n */\r\n/** @internal */\r\nexport class CRSManager {\r\n /** The main instance of the CRS engine. This needs to be set by the application on startup. */\r\n public static ENGINE: CRSEngine = null;\r\n\r\n /**\r\n * Allow no instances, all methods are static.\r\n */\r\n private constructor() {\r\n }\r\n\r\n /**\r\n * Prepare a CRS for making transforms in a certain area.\r\n * @param crs the CRS to prepare.\r\n * @param area the area to prepare for (can be invalid to prepare only for the crs).\r\n */\r\n public static async prepareForArea(crs: string, area: Bounds): Promise<Bounds> {\r\n if (CRSManager.ENGINE == null) return area;\r\n return CRSManager.ENGINE.prepareForArea(crs, area);\r\n }\r\n\r\n /**\r\n * Transform a coordinate from one CRS to another.\r\n * @param point the point coordinate.\r\n * @param sourceCRS the source CRS.\r\n * @param targetCRS the target CRS.\r\n * @return the transformed coordinate.\r\n */\r\n public static transformPoint(point: Coordinate, sourceCRS: string, targetCRS: string): Coordinate {\r\n if (CRSManager.ENGINE == null) return point;\r\n return CRSManager.ENGINE.transformPoint(point, sourceCRS, targetCRS);\r\n }\r\n\r\n /**\r\n * Transform spatial bounds from one CRS to another.\r\n * @param point the point coordinate.\r\n * @param sourceCRS the source CRS.\r\n * @param targetCRS the target CRS.\r\n * @return the transformed bounds.\r\n */\r\n public static transformBounds(bounds: Bounds, sourceCRS: string, targetCRS: string): Bounds {\r\n if (CRSManager.ENGINE == null) return bounds;\r\n return CRSManager.ENGINE.transformBounds(bounds, sourceCRS, targetCRS);\r\n }\r\n\r\n /**\r\n * Create an approximate 3D transformation from a source to a target CRS.\r\n * @param sourceCRS the source CRS.\r\n * @param sourcePoint the origin point in the source CRS.\r\n * @param targetCRS the target CRS.\r\n * @return the transform.\r\n */\r\n public static createTransform(sourceCRS: string, sourcePoint: Coordinate, targetCRS: string): Transform {\r\n /* Check */\r\n let transform: Transform = new Transform();\r\n if (CRSManager.ENGINE == null) return transform;\r\n if (sourceCRS == null) return transform;\r\n if (targetCRS == null) return transform;\r\n if (sourcePoint == null) return transform;\r\n /* Same? */\r\n if (Strings.equals(targetCRS, sourceCRS)) return transform;\r\n /* Transform X and Y at 100 meter distance (assume Z is metric) */\r\n let sizeXY: float64 = 100.0;\r\n if (CRSManager.ENGINE.isGeographicCRS(sourceCRS)) sizeXY = (sizeXY / 40000000.0 * 360.0);\r\n let sizeZ: float64 = 100.0;\r\n /* Create the frame */\r\n let p0: Coordinate = sourcePoint.copy();\r\n let pX: Coordinate = p0.copy();\r\n pX.add0(new Coordinate(sizeXY, 0.0, 0.0));\r\n let pY: Coordinate = p0.copy();\r\n pY.add0(new Coordinate(0.0, sizeXY, 0.0));\r\n let pZ: Coordinate = p0.copy();\r\n pZ.add0(new Coordinate(0.0, 0.0, sizeZ));\r\n /* Transform the frame */\r\n p0 = CRSManager.ENGINE.transformPoint(p0, sourceCRS, targetCRS);\r\n pX = CRSManager.ENGINE.transformPoint(pX, sourceCRS, targetCRS);\r\n pY = CRSManager.ENGINE.transformPoint(pY, sourceCRS, targetCRS);\r\n pZ = CRSManager.ENGINE.transformPoint(pZ, sourceCRS, targetCRS);\r\n /* Get the columns */\r\n let colX: Coordinate = pX.subtract(p0).scale(1.0 / sizeXY);\r\n let colY: Coordinate = pY.subtract(p0).scale(1.0 / sizeXY);\r\n let colZ: Coordinate = pZ.subtract(p0).scale(1.0 / sizeZ);\r\n /* Create the transform */\r\n transform = Transform.createWithColumns(colX, colY, colZ, p0);\r\n transform.translate(-sourcePoint.getX(), -sourcePoint.getY(), -sourcePoint.getZ());\r\n return transform;\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module OrbitGT
|
|
3
|
+
*/
|
|
4
|
+
declare type int32 = number;
|
|
5
|
+
/**
|
|
6
|
+
* Class Axis defines the parameters of a coordinate axis.
|
|
7
|
+
*
|
|
8
|
+
* Based on the following document:
|
|
9
|
+
*
|
|
10
|
+
* Coordinate Conversions and Transformations including Formulas
|
|
11
|
+
* Guidance Note Number 7, part 2
|
|
12
|
+
* Revised May 2005
|
|
13
|
+
* Available at: http://www.epsg.org/
|
|
14
|
+
*
|
|
15
|
+
* @version 1.0 July 2008
|
|
16
|
+
*/
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare class Axis {
|
|
19
|
+
/** The code */
|
|
20
|
+
private _code;
|
|
21
|
+
/** The axis name */
|
|
22
|
+
private _axisName;
|
|
23
|
+
/** The axis orientation */
|
|
24
|
+
private _axisOrientation;
|
|
25
|
+
/** The abbreviation */
|
|
26
|
+
private _abbreviation;
|
|
27
|
+
/** The unit-of-measurement code */
|
|
28
|
+
private _unitCode;
|
|
29
|
+
/** The axis order */
|
|
30
|
+
private _order;
|
|
31
|
+
/**
|
|
32
|
+
* Create a new axis.
|
|
33
|
+
* @param code the code.
|
|
34
|
+
* @param axisName the name of the axis.
|
|
35
|
+
* @param axisOrientation the orientation of the axis.
|
|
36
|
+
* @param abbreviation the abbreviation.
|
|
37
|
+
* @param unitCode the unit-of-measurement code.
|
|
38
|
+
* @param order the axis order.
|
|
39
|
+
*/
|
|
40
|
+
constructor(code: int32, axisName: string, axisOrientation: string, abbreviation: string, unitCode: int32, order: int32);
|
|
41
|
+
/**
|
|
42
|
+
* Get the code.
|
|
43
|
+
* @return the code.
|
|
44
|
+
*/
|
|
45
|
+
getCode(): int32;
|
|
46
|
+
/**
|
|
47
|
+
* Get the axis name.
|
|
48
|
+
* @return the axis name.
|
|
49
|
+
*/
|
|
50
|
+
getAxisName(): string;
|
|
51
|
+
/**
|
|
52
|
+
* Get the axis orientation.
|
|
53
|
+
* @return the axis orientation.
|
|
54
|
+
*/
|
|
55
|
+
getAxisOrientation(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Get the abbreviation.
|
|
58
|
+
* @return the abbreviation.
|
|
59
|
+
*/
|
|
60
|
+
getAbbreviation(): string;
|
|
61
|
+
/**
|
|
62
|
+
* Get the unit-of-measurement code.
|
|
63
|
+
* @return the unit-of-measurement code.
|
|
64
|
+
*/
|
|
65
|
+
getUnitCode(): int32;
|
|
66
|
+
/**
|
|
67
|
+
* Get the axis order.
|
|
68
|
+
* @return the axis order.
|
|
69
|
+
*/
|
|
70
|
+
getOrder(): int32;
|
|
71
|
+
/**
|
|
72
|
+
* The standard toString method.
|
|
73
|
+
* @see Object#toString
|
|
74
|
+
*/
|
|
75
|
+
toString(): string;
|
|
76
|
+
}
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=Axis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Axis.d.ts","sourceRoot":"","sources":["../../../../src/spatial/ecrs/Axis.ts"],"names":[],"mappings":"AAIA;;GAEG;AAMH,aAAK,KAAK,GAAG,MAAM,CAAC;AAIpB;;;;;;;;;;;GAWG;AACH,gBAAgB;AAChB,qBAAa,IAAI;IACb,eAAe;IACf,OAAO,CAAC,KAAK,CAAQ;IACrB,oBAAoB;IACpB,OAAO,CAAC,SAAS,CAAS;IAC1B,2BAA2B;IAC3B,OAAO,CAAC,gBAAgB,CAAS;IACjC,uBAAuB;IACvB,OAAO,CAAC,aAAa,CAAS;IAC9B,mCAAmC;IACnC,OAAO,CAAC,SAAS,CAAQ;IACzB,qBAAqB;IACrB,OAAO,CAAC,MAAM,CAAQ;IAEtB;;;;;;;;OAQG;gBACgB,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;IAU9H;;;OAGG;IACI,OAAO,IAAI,KAAK;IAIvB;;;OAGG;IACI,WAAW,IAAI,MAAM;IAI5B;;;OAGG;IACI,kBAAkB,IAAI,MAAM;IAInC;;;OAGG;IACI,eAAe,IAAI,MAAM;IAIhC;;;OAGG;IACI,WAAW,IAAI,KAAK;IAI3B;;;OAGG;IACI,QAAQ,IAAI,KAAK;IAIxB;;;OAGG;IACI,QAAQ,IAAI,MAAM;CAG5B"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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.Axis = void 0;
|
|
11
|
+
/**
|
|
12
|
+
* Class Axis defines the parameters of a coordinate axis.
|
|
13
|
+
*
|
|
14
|
+
* Based on the following document:
|
|
15
|
+
*
|
|
16
|
+
* Coordinate Conversions and Transformations including Formulas
|
|
17
|
+
* Guidance Note Number 7, part 2
|
|
18
|
+
* Revised May 2005
|
|
19
|
+
* Available at: http://www.epsg.org/
|
|
20
|
+
*
|
|
21
|
+
* @version 1.0 July 2008
|
|
22
|
+
*/
|
|
23
|
+
/** @internal */
|
|
24
|
+
class Axis {
|
|
25
|
+
/**
|
|
26
|
+
* Create a new axis.
|
|
27
|
+
* @param code the code.
|
|
28
|
+
* @param axisName the name of the axis.
|
|
29
|
+
* @param axisOrientation the orientation of the axis.
|
|
30
|
+
* @param abbreviation the abbreviation.
|
|
31
|
+
* @param unitCode the unit-of-measurement code.
|
|
32
|
+
* @param order the axis order.
|
|
33
|
+
*/
|
|
34
|
+
constructor(code, axisName, axisOrientation, abbreviation, unitCode, order) {
|
|
35
|
+
/* Store parameters */
|
|
36
|
+
this._code = code;
|
|
37
|
+
this._axisName = axisName;
|
|
38
|
+
this._axisOrientation = axisOrientation;
|
|
39
|
+
this._abbreviation = abbreviation;
|
|
40
|
+
this._unitCode = unitCode;
|
|
41
|
+
this._order = order;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get the code.
|
|
45
|
+
* @return the code.
|
|
46
|
+
*/
|
|
47
|
+
getCode() {
|
|
48
|
+
return this._code;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Get the axis name.
|
|
52
|
+
* @return the axis name.
|
|
53
|
+
*/
|
|
54
|
+
getAxisName() {
|
|
55
|
+
return this._axisName;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get the axis orientation.
|
|
59
|
+
* @return the axis orientation.
|
|
60
|
+
*/
|
|
61
|
+
getAxisOrientation() {
|
|
62
|
+
return this._axisOrientation;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get the abbreviation.
|
|
66
|
+
* @return the abbreviation.
|
|
67
|
+
*/
|
|
68
|
+
getAbbreviation() {
|
|
69
|
+
return this._abbreviation;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Get the unit-of-measurement code.
|
|
73
|
+
* @return the unit-of-measurement code.
|
|
74
|
+
*/
|
|
75
|
+
getUnitCode() {
|
|
76
|
+
return this._unitCode;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get the axis order.
|
|
80
|
+
* @return the axis order.
|
|
81
|
+
*/
|
|
82
|
+
getOrder() {
|
|
83
|
+
return this._order;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The standard toString method.
|
|
87
|
+
* @see Object#toString
|
|
88
|
+
*/
|
|
89
|
+
toString() {
|
|
90
|
+
return "[Axis:code=" + this._code + ",name='" + this._axisName + "',orientation='" + this._axisOrientation + "',abbreviation='" + this._abbreviation + "',unit=" + this._unitCode + ",order=" + this._order + "]";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.Axis = Axis;
|
|
94
|
+
//# sourceMappingURL=Axis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Axis.js","sourceRoot":"","sources":["../../../../src/spatial/ecrs/Axis.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAUH;;;;;;;;;;;GAWG;AACH,gBAAgB;AAChB,MAAa,IAAI;IAcb;;;;;;;;OAQG;IACH,YAAmB,IAAW,EAAE,QAAgB,EAAE,eAAuB,EAAE,YAAoB,EAAE,QAAe,EAAE,KAAY;QAC1H,sBAAsB;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,kBAAkB;QACrB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED;;;OAGG;IACI,eAAe;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACI,WAAW;QACd,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,QAAQ;QACX,OAAO,aAAa,GAAG,IAAI,CAAC,KAAK,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,iBAAiB,GAAG,IAAI,CAAC,gBAAgB,GAAG,kBAAkB,GAAG,IAAI,CAAC,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC;IACtN,CAAC;CACJ;AAxFD,oBAwFC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module OrbitGT\r\n */\r\n\r\n//package orbitgt.spatial.ecrs;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\n/**\r\n * Class Axis defines the parameters of a coordinate axis.\r\n *\r\n * Based on the following document:\r\n *\r\n * Coordinate Conversions and Transformations including Formulas\r\n * Guidance Note Number 7, part 2\r\n * Revised May 2005\r\n * Available at: http://www.epsg.org/\r\n *\r\n * @version 1.0 July 2008\r\n */\r\n/** @internal */\r\nexport class Axis {\r\n /** The code */\r\n private _code: int32;\r\n /** The axis name */\r\n private _axisName: string;\r\n /** The axis orientation */\r\n private _axisOrientation: string;\r\n /** The abbreviation */\r\n private _abbreviation: string;\r\n /** The unit-of-measurement code */\r\n private _unitCode: int32;\r\n /** The axis order */\r\n private _order: int32;\r\n\r\n /**\r\n * Create a new axis.\r\n * @param code the code.\r\n * @param axisName the name of the axis.\r\n * @param axisOrientation the orientation of the axis.\r\n * @param abbreviation the abbreviation.\r\n * @param unitCode the unit-of-measurement code.\r\n * @param order the axis order.\r\n */\r\n public constructor(code: int32, axisName: string, axisOrientation: string, abbreviation: string, unitCode: int32, order: int32) {\r\n /* Store parameters */\r\n this._code = code;\r\n this._axisName = axisName;\r\n this._axisOrientation = axisOrientation;\r\n this._abbreviation = abbreviation;\r\n this._unitCode = unitCode;\r\n this._order = order;\r\n }\r\n\r\n /**\r\n * Get the code.\r\n * @return the code.\r\n */\r\n public getCode(): int32 {\r\n return this._code;\r\n }\r\n\r\n /**\r\n * Get the axis name.\r\n * @return the axis name.\r\n */\r\n public getAxisName(): string {\r\n return this._axisName;\r\n }\r\n\r\n /**\r\n * Get the axis orientation.\r\n * @return the axis orientation.\r\n */\r\n public getAxisOrientation(): string {\r\n return this._axisOrientation;\r\n }\r\n\r\n /**\r\n * Get the abbreviation.\r\n * @return the abbreviation.\r\n */\r\n public getAbbreviation(): string {\r\n return this._abbreviation;\r\n }\r\n\r\n /**\r\n * Get the unit-of-measurement code.\r\n * @return the unit-of-measurement code.\r\n */\r\n public getUnitCode(): int32 {\r\n return this._unitCode;\r\n }\r\n\r\n /**\r\n * Get the axis order.\r\n * @return the axis order.\r\n */\r\n public getOrder(): int32 {\r\n return this._order;\r\n }\r\n\r\n /**\r\n * The standard toString method.\r\n * @see Object#toString\r\n */\r\n public toString(): string {\r\n return \"[Axis:code=\" + this._code + \",name='\" + this._axisName + \"',orientation='\" + this._axisOrientation + \"',abbreviation='\" + this._abbreviation + \"',unit=\" + this._unitCode + \",order=\" + this._order + \"]\";\r\n }\r\n}\r\n"]}
|