@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,249 @@
|
|
|
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.FileReader = void 0;
|
|
11
|
+
const ALong_1 = require("../../../system/runtime/ALong");
|
|
12
|
+
const Message_1 = require("../../../system/runtime/Message");
|
|
13
|
+
const Strings_1 = require("../../../system/runtime/Strings");
|
|
14
|
+
const ContentLoader_1 = require("../../../system/storage/ContentLoader");
|
|
15
|
+
const ContainerFile_1 = require("./ContainerFile");
|
|
16
|
+
const DirectoryReader_1 = require("./DirectoryReader");
|
|
17
|
+
const EmbeddedAttributeReader_1 = require("./EmbeddedAttributeReader");
|
|
18
|
+
const FileRecord_1 = require("./FileRecord");
|
|
19
|
+
const GeometryReader_1 = require("./GeometryReader");
|
|
20
|
+
/**
|
|
21
|
+
* Class FileReader reads OPC files.
|
|
22
|
+
*
|
|
23
|
+
* @version 1.0 January 2014
|
|
24
|
+
*/
|
|
25
|
+
/** @internal */
|
|
26
|
+
class FileReader {
|
|
27
|
+
/**
|
|
28
|
+
* Create a new reader.
|
|
29
|
+
* @param fileName the name of the file.
|
|
30
|
+
* @param container the container file.
|
|
31
|
+
* @param fileRecord the file record.
|
|
32
|
+
*/
|
|
33
|
+
constructor(fileStorage, fileName, container, fileRecord) {
|
|
34
|
+
/* Store the parameters */
|
|
35
|
+
this._fileStorage = fileStorage;
|
|
36
|
+
this._fileName = fileName;
|
|
37
|
+
this._container = container;
|
|
38
|
+
this._fileRecord = fileRecord;
|
|
39
|
+
/* Clear */
|
|
40
|
+
this._directoryReaders = null;
|
|
41
|
+
this._geometryReaders = null;
|
|
42
|
+
this._attributeReaders = null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Open a file.
|
|
46
|
+
* @param fileName the name of the file.
|
|
47
|
+
* @param lazyLoading avoid early loading to keep a low memory profile?
|
|
48
|
+
* @return the reader.
|
|
49
|
+
*/
|
|
50
|
+
static async openFile(fileStorage, fileName, lazyLoading) {
|
|
51
|
+
/* Open the container file */
|
|
52
|
+
let container = await ContainerFile_1.ContainerFile.read(fileStorage, fileName, "OPC3");
|
|
53
|
+
/* Read the file record */
|
|
54
|
+
let filePart = container.getPart("file");
|
|
55
|
+
let fileRecord = await FileRecord_1.FileRecord.readNew(fileStorage, filePart.getFileAccess().getFileName(), filePart.getOffset(), filePart.getSize());
|
|
56
|
+
/* Create a reader */
|
|
57
|
+
let fileReader = new FileReader(fileStorage, fileName, container, fileRecord);
|
|
58
|
+
/* Open the reader */
|
|
59
|
+
fileReader = await fileReader.open(lazyLoading);
|
|
60
|
+
/* Return the reader */
|
|
61
|
+
return fileReader;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Open the reader.
|
|
65
|
+
* @param lazyLoading avoid early loading to keep a low memory profile?
|
|
66
|
+
* @return the reader.
|
|
67
|
+
*/
|
|
68
|
+
async open(lazyLoading) {
|
|
69
|
+
/* Log */
|
|
70
|
+
Message_1.Message.print(FileReader.MODULE, "Opening OPC with " + this._fileRecord.getLevelCount() + " levels (crs " + this._fileRecord.getCRS() + ", lazy? " + lazyLoading + ")");
|
|
71
|
+
Message_1.Message.print(FileReader.MODULE, "Container has " + this._container.getPartCount() + " parts");
|
|
72
|
+
// for(ContainerFilePart part: this._container.getParts()) Message.print(MODULE,"Part '"+part.getName()+"'");
|
|
73
|
+
/* Define the content we are going to need (dozens of parts) */
|
|
74
|
+
Message_1.Message.print(FileReader.MODULE, "Loading " + this._fileRecord.getLevelCount() + " levels and " + this._fileRecord.getAttributeCount() + " attributes");
|
|
75
|
+
let fileContents = new ContentLoader_1.ContentLoader(this._fileStorage, this._fileName);
|
|
76
|
+
/* Only read the block list for the top levels? (to save memory) */
|
|
77
|
+
let prefetchLevelIndex = (this._fileRecord.getLevelCount() - 6);
|
|
78
|
+
if (prefetchLevelIndex < 0)
|
|
79
|
+
prefetchLevelIndex = 0;
|
|
80
|
+
if (lazyLoading == false)
|
|
81
|
+
prefetchLevelIndex = 0;
|
|
82
|
+
Message_1.Message.print(FileReader.MODULE, "Prefetching from level " + prefetchLevelIndex);
|
|
83
|
+
/* Read the directory */
|
|
84
|
+
this._directoryReaders = new Array(this._fileRecord.getLevelCount());
|
|
85
|
+
for (let i = 0; i < this._directoryReaders.length; i++) {
|
|
86
|
+
let directoryReader = new DirectoryReader_1.DirectoryReader(this, i);
|
|
87
|
+
let readBlockList = (i >= prefetchLevelIndex);
|
|
88
|
+
directoryReader.loadData(readBlockList, fileContents);
|
|
89
|
+
this._directoryReaders[i] = directoryReader;
|
|
90
|
+
}
|
|
91
|
+
/* Read the geometry */
|
|
92
|
+
this._geometryReaders = new Array(this._fileRecord.getLevelCount());
|
|
93
|
+
for (let i = 0; i < this._geometryReaders.length; i++) {
|
|
94
|
+
let geometryReader = new GeometryReader_1.GeometryReader(this, i);
|
|
95
|
+
geometryReader.loadData(fileContents);
|
|
96
|
+
this._geometryReaders[i] = geometryReader;
|
|
97
|
+
}
|
|
98
|
+
/* Read the attributes */
|
|
99
|
+
this._attributeReaders = new Array(this._fileRecord.getAttributeCount());
|
|
100
|
+
for (let i = 0; i < this._fileRecord.getAttributeCount(); i++) {
|
|
101
|
+
let attributeReader = new EmbeddedAttributeReader_1.EmbeddedAttributeReader(this._container, i, this._fileRecord.getLevelCount());
|
|
102
|
+
attributeReader.loadData(fileContents);
|
|
103
|
+
this._attributeReaders[i] = attributeReader;
|
|
104
|
+
}
|
|
105
|
+
/* Load all data needed for the structures */
|
|
106
|
+
fileContents = await fileContents.load();
|
|
107
|
+
/* Read the directory */
|
|
108
|
+
for (let i = 0; i < this._directoryReaders.length; i++) {
|
|
109
|
+
let readBlockList = (i >= prefetchLevelIndex);
|
|
110
|
+
this._directoryReaders[i].loadData(readBlockList, fileContents);
|
|
111
|
+
}
|
|
112
|
+
/* Read the geometry */
|
|
113
|
+
for (let i = 0; i < this._geometryReaders.length; i++) {
|
|
114
|
+
this._geometryReaders[i].loadData(fileContents);
|
|
115
|
+
}
|
|
116
|
+
/* Read the attributes */
|
|
117
|
+
for (let i = 0; i < this._fileRecord.getAttributeCount(); i++) {
|
|
118
|
+
let attributeReader = (this._attributeReaders[i]);
|
|
119
|
+
attributeReader.loadData(fileContents);
|
|
120
|
+
}
|
|
121
|
+
/* Log file info */
|
|
122
|
+
Message_1.Message.print(FileReader.MODULE, "OPC bounds are " + this._geometryReaders[0].getGeometryRecord().getBounds());
|
|
123
|
+
let tileGridSize0 = this._geometryReaders[0].getGeometryRecord().getTileGrid().size;
|
|
124
|
+
Message_1.Message.print(FileReader.MODULE, "OPC level0 tile size is (" + tileGridSize0.x + "," + tileGridSize0.y + "," + tileGridSize0.z + ")");
|
|
125
|
+
let totalPointCount = ALong_1.ALong.ZERO;
|
|
126
|
+
let totalTileCount = 0;
|
|
127
|
+
let totalBlockCount = 0;
|
|
128
|
+
for (let i = 0; i < this._fileRecord.getLevelCount(); i++) {
|
|
129
|
+
let directoryRecord = this._directoryReaders[i].getDirectoryRecord();
|
|
130
|
+
Message_1.Message.print(FileReader.MODULE, "Level " + i + " has " + directoryRecord.getPointCount() + " points, " + directoryRecord.getTileCount() + " tiles, " + directoryRecord.getBlockCount() + " blocks");
|
|
131
|
+
totalPointCount = totalPointCount.add(directoryRecord.getPointCount());
|
|
132
|
+
totalTileCount += directoryRecord.getTileCount();
|
|
133
|
+
totalBlockCount += directoryRecord.getBlockCount();
|
|
134
|
+
}
|
|
135
|
+
Message_1.Message.print(FileReader.MODULE, "Pointcloud has " + totalPointCount + " points, " + totalTileCount + " tiles, " + totalBlockCount + " blocks");
|
|
136
|
+
/* Get the attributes */
|
|
137
|
+
Message_1.Message.print(FileReader.MODULE, "Pointcloud has " + this._attributeReaders.length + " static attributes:");
|
|
138
|
+
for (let i = 0; i < this._attributeReaders.length; i++) {
|
|
139
|
+
Message_1.Message.print(FileReader.MODULE, "Attribute " + i + ": " + this._attributeReaders[i].getAttribute());
|
|
140
|
+
Message_1.Message.print(FileReader.MODULE, " min: " + this._attributeReaders[i].getMinimumValue());
|
|
141
|
+
Message_1.Message.print(FileReader.MODULE, " max: " + this._attributeReaders[i].getMaximumValue());
|
|
142
|
+
}
|
|
143
|
+
/* Return the reader */
|
|
144
|
+
return this;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Close the file.
|
|
148
|
+
*/
|
|
149
|
+
close() {
|
|
150
|
+
for (let attributeReader of this._attributeReaders)
|
|
151
|
+
attributeReader.close();
|
|
152
|
+
if (this._container != null)
|
|
153
|
+
this._container.close(true);
|
|
154
|
+
this._container = null;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Get the storage of the file.
|
|
158
|
+
* @return the storage of the file.
|
|
159
|
+
*/
|
|
160
|
+
getFileStorage() {
|
|
161
|
+
return this._fileStorage;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Get the name of the file.
|
|
165
|
+
* @return the name of the file.
|
|
166
|
+
*/
|
|
167
|
+
getFileName() {
|
|
168
|
+
return this._fileName;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Get the container file.
|
|
172
|
+
* @return the container file.
|
|
173
|
+
*/
|
|
174
|
+
getContainer() {
|
|
175
|
+
return this._container;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Get the file record.
|
|
179
|
+
* @return the file record.
|
|
180
|
+
*/
|
|
181
|
+
getFileRecord() {
|
|
182
|
+
return this._fileRecord;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Get the number of resolution levels.
|
|
186
|
+
* @return the number of resolution levels.
|
|
187
|
+
*/
|
|
188
|
+
getLevelCount() {
|
|
189
|
+
return this._fileRecord.getLevelCount();
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Get a directory reader.
|
|
193
|
+
* @param level the index of the level.
|
|
194
|
+
* @return the directory reader.
|
|
195
|
+
*/
|
|
196
|
+
getDirectoryReader(level) {
|
|
197
|
+
return this._directoryReaders[level];
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Get a geometry reader.
|
|
201
|
+
* @param level the index of the level.
|
|
202
|
+
* @return the geometry reader.
|
|
203
|
+
*/
|
|
204
|
+
getGeometryReader(level) {
|
|
205
|
+
return this._geometryReaders[level];
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Get the static attribute readers.
|
|
209
|
+
* @return the static attribute readers.
|
|
210
|
+
*/
|
|
211
|
+
getStaticAttributeReaders() {
|
|
212
|
+
return this._attributeReaders;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Get the attribute readers.
|
|
216
|
+
* @return the attribute readers.
|
|
217
|
+
*/
|
|
218
|
+
getAttributeReaders() {
|
|
219
|
+
return this._attributeReaders;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Get the attributes.
|
|
223
|
+
* @return the attributes.
|
|
224
|
+
*/
|
|
225
|
+
getAttributes() {
|
|
226
|
+
let list = new Array(this._attributeReaders.length);
|
|
227
|
+
for (let i = 0; i < this._attributeReaders.length; i++)
|
|
228
|
+
list[i] = this._attributeReaders[i].getAttribute();
|
|
229
|
+
return list;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Find an attribute reader.
|
|
233
|
+
* @param attributeName the name of the attribute.
|
|
234
|
+
* @return the attribute reader (null if not found).
|
|
235
|
+
*/
|
|
236
|
+
findAttributeReader(attributeName) {
|
|
237
|
+
/* Check the static attributes */
|
|
238
|
+
for (let attributeReader of this._attributeReaders) {
|
|
239
|
+
if (Strings_1.Strings.equalsIgnoreCase(attributeReader.getAttribute().getName(), attributeName))
|
|
240
|
+
return attributeReader;
|
|
241
|
+
}
|
|
242
|
+
/* Not found */
|
|
243
|
+
return null;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
exports.FileReader = FileReader;
|
|
247
|
+
/** The name of this module */
|
|
248
|
+
FileReader.MODULE = "FileReader";
|
|
249
|
+
//# sourceMappingURL=FileReader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileReader.js","sourceRoot":"","sources":["../../../../../src/pointcloud/format/opc/FileReader.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAYH,yDAAsD;AACtD,6DAA0D;AAC1D,6DAA0D;AAC1D,yEAAsE;AAItE,mDAAgD;AAEhD,uDAAoD;AAEpD,uEAAoE;AACpE,6CAA0C;AAC1C,qDAAkD;AAElD;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,UAAU;IAoBnB;;;;;OAKG;IACH,YAAoB,WAAwB,EAAE,QAAgB,EAAE,SAAwB,EAAE,UAAsB;QAC5G,0BAA0B;QAC1B,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,WAAW;QACX,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;QAC9B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAClC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAwB,EAAE,QAA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;IAChB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CAAC,aAAqB;QAC5C,iCAAiC;QACjC,KAAK,IAAI,eAAe,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAChD,IAAI,iBAAO,CAAC,gBAAgB,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,aAAa,CAAC;gBAAE,OAAO,eAAe,CAAC;SACjH;QACD,eAAe;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;;AArPL,gCAsPC;AArPG,8BAA8B;AACN,iBAAM,GAAW,YAAY,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.pointcloud.format.opc;\r\n\r\ntype int8 = number;\r\ntype int16 = number;\r\ntype int32 = number;\r\ntype float32 = number;\r\ntype float64 = number;\r\n\r\nimport { Coordinate } from \"../../../spatial/geom/Coordinate\";\r\nimport { AList } from \"../../../system/collection/AList\";\r\nimport { ALong } from \"../../../system/runtime/ALong\";\r\nimport { Message } from \"../../../system/runtime/Message\";\r\nimport { Strings } from \"../../../system/runtime/Strings\";\r\nimport { ContentLoader } from \"../../../system/storage/ContentLoader\";\r\nimport { FileStorage } from \"../../../system/storage/FileStorage\";\r\nimport { PointAttribute } from \"../../model/PointAttribute\";\r\nimport { AttributeReader } from \"./AttributeReader\";\r\nimport { ContainerFile } from \"./ContainerFile\";\r\nimport { ContainerFilePart } from \"./ContainerFilePart\";\r\nimport { DirectoryReader } from \"./DirectoryReader\";\r\nimport { DirectoryRecord } from \"./DirectoryRecord\";\r\nimport { EmbeddedAttributeReader } from \"./EmbeddedAttributeReader\";\r\nimport { FileRecord } from \"./FileRecord\";\r\nimport { GeometryReader } from \"./GeometryReader\";\r\n\r\n/**\r\n * Class FileReader reads OPC files.\r\n *\r\n * @version 1.0 January 2014\r\n */\r\n/** @internal */\r\nexport class FileReader {\r\n /** The name of this module */\r\n private static readonly MODULE: string = \"FileReader\";\r\n\r\n /** The file storage */\r\n private _fileStorage: FileStorage;\r\n /** The name of the file */\r\n private _fileName: string;\r\n /** The container */\r\n private _container: ContainerFile;\r\n\r\n /** The file record */\r\n private _fileRecord: FileRecord;\r\n /** The directory readers (1 per level) */\r\n private _directoryReaders: Array<DirectoryReader>;\r\n /** The geometry readers (1 per level) */\r\n private _geometryReaders: Array<GeometryReader>;\r\n /** The attribute readers */\r\n private _attributeReaders: Array<AttributeReader>;\r\n\r\n /**\r\n * Create a new reader.\r\n * @param fileName the name of the file.\r\n * @param container the container file.\r\n * @param fileRecord the file record.\r\n */\r\n private constructor(fileStorage: FileStorage, fileName: string, container: ContainerFile, fileRecord: FileRecord) {\r\n /* Store the parameters */\r\n this._fileStorage = fileStorage;\r\n this._fileName = fileName;\r\n this._container = container;\r\n this._fileRecord = fileRecord;\r\n /* Clear */\r\n this._directoryReaders = null;\r\n this._geometryReaders = null;\r\n this._attributeReaders = null;\r\n }\r\n\r\n /**\r\n * Open a file.\r\n * @param fileName the name of the file.\r\n * @param lazyLoading avoid early loading to keep a low memory profile?\r\n * @return the reader.\r\n */\r\n public static async openFile(fileStorage: FileStorage, fileName: string, lazyLoading: boolean): Promise<FileReader> {\r\n /* Open the container file */\r\n let container: ContainerFile = await ContainerFile.read(fileStorage, fileName, \"OPC3\");\r\n /* Read the file record */\r\n let filePart: ContainerFilePart = container.getPart(\"file\");\r\n let fileRecord: FileRecord = await FileRecord.readNew(fileStorage, filePart.getFileAccess().getFileName(), filePart.getOffset(), filePart.getSize());\r\n /* Create a reader */\r\n let fileReader: FileReader = new FileReader(fileStorage, fileName, container, fileRecord);\r\n /* Open the reader */\r\n fileReader = await fileReader.open(lazyLoading);\r\n /* Return the reader */\r\n return fileReader;\r\n }\r\n\r\n /**\r\n * Open the reader.\r\n * @param lazyLoading avoid early loading to keep a low memory profile?\r\n * @return the reader.\r\n */\r\n private async open(lazyLoading: boolean): Promise<FileReader> {\r\n /* Log */\r\n Message.print(FileReader.MODULE, \"Opening OPC with \" + this._fileRecord.getLevelCount() + \" levels (crs \" + this._fileRecord.getCRS() + \", lazy? \" + lazyLoading + \")\");\r\n Message.print(FileReader.MODULE, \"Container has \" + this._container.getPartCount() + \" parts\");\r\n // for(ContainerFilePart part: this._container.getParts()) Message.print(MODULE,\"Part '\"+part.getName()+\"'\");\r\n /* Define the content we are going to need (dozens of parts) */\r\n Message.print(FileReader.MODULE, \"Loading \" + this._fileRecord.getLevelCount() + \" levels and \" + this._fileRecord.getAttributeCount() + \" attributes\");\r\n let fileContents: ContentLoader = new ContentLoader(this._fileStorage, this._fileName);\r\n /* Only read the block list for the top levels? (to save memory) */\r\n let prefetchLevelIndex: int32 = (this._fileRecord.getLevelCount() - 6);\r\n if (prefetchLevelIndex < 0) prefetchLevelIndex = 0;\r\n if (lazyLoading == false) prefetchLevelIndex = 0;\r\n Message.print(FileReader.MODULE, \"Prefetching from level \" + prefetchLevelIndex);\r\n /* Read the directory */\r\n this._directoryReaders = new Array<DirectoryReader>(this._fileRecord.getLevelCount());\r\n for (let i: number = 0; i < this._directoryReaders.length; i++) {\r\n let directoryReader: DirectoryReader = new DirectoryReader(this, i);\r\n let readBlockList: boolean = (i >= prefetchLevelIndex);\r\n directoryReader.loadData(readBlockList, fileContents);\r\n this._directoryReaders[i] = directoryReader;\r\n }\r\n /* Read the geometry */\r\n this._geometryReaders = new Array<GeometryReader>(this._fileRecord.getLevelCount());\r\n for (let i: number = 0; i < this._geometryReaders.length; i++) {\r\n let geometryReader: GeometryReader = new GeometryReader(this, i);\r\n geometryReader.loadData(fileContents);\r\n this._geometryReaders[i] = geometryReader;\r\n }\r\n /* Read the attributes */\r\n this._attributeReaders = new Array<AttributeReader>(this._fileRecord.getAttributeCount());\r\n for (let i: number = 0; i < this._fileRecord.getAttributeCount(); i++) {\r\n let attributeReader: EmbeddedAttributeReader = new EmbeddedAttributeReader(this._container, i, this._fileRecord.getLevelCount());\r\n attributeReader.loadData(fileContents);\r\n this._attributeReaders[i] = attributeReader;\r\n }\r\n /* Load all data needed for the structures */\r\n fileContents = await fileContents.load();\r\n /* Read the directory */\r\n for (let i: number = 0; i < this._directoryReaders.length; i++) {\r\n let readBlockList: boolean = (i >= prefetchLevelIndex);\r\n this._directoryReaders[i].loadData(readBlockList, fileContents);\r\n }\r\n /* Read the geometry */\r\n for (let i: number = 0; i < this._geometryReaders.length; i++) {\r\n this._geometryReaders[i].loadData(fileContents);\r\n }\r\n /* Read the attributes */\r\n for (let i: number = 0; i < this._fileRecord.getAttributeCount(); i++) {\r\n let attributeReader: EmbeddedAttributeReader = <EmbeddedAttributeReader><unknown>(this._attributeReaders[i]);\r\n attributeReader.loadData(fileContents);\r\n }\r\n /* Log file info */\r\n Message.print(FileReader.MODULE, \"OPC bounds are \" + this._geometryReaders[0].getGeometryRecord().getBounds());\r\n let tileGridSize0: Coordinate = this._geometryReaders[0].getGeometryRecord().getTileGrid().size;\r\n Message.print(FileReader.MODULE, \"OPC level0 tile size is (\" + tileGridSize0.x + \",\" + tileGridSize0.y + \",\" + tileGridSize0.z + \")\");\r\n let totalPointCount: ALong = ALong.ZERO;\r\n let totalTileCount: int32 = 0;\r\n let totalBlockCount: int32 = 0;\r\n for (let i: number = 0; i < this._fileRecord.getLevelCount(); i++) {\r\n let directoryRecord: DirectoryRecord = this._directoryReaders[i].getDirectoryRecord();\r\n Message.print(FileReader.MODULE, \"Level \" + i + \" has \" + directoryRecord.getPointCount() + \" points, \" + directoryRecord.getTileCount() + \" tiles, \" + directoryRecord.getBlockCount() + \" blocks\");\r\n totalPointCount = totalPointCount.add(directoryRecord.getPointCount());\r\n totalTileCount += directoryRecord.getTileCount();\r\n totalBlockCount += directoryRecord.getBlockCount();\r\n }\r\n Message.print(FileReader.MODULE, \"Pointcloud has \" + totalPointCount + \" points, \" + totalTileCount + \" tiles, \" + totalBlockCount + \" blocks\");\r\n /* Get the attributes */\r\n Message.print(FileReader.MODULE, \"Pointcloud has \" + this._attributeReaders.length + \" static attributes:\");\r\n for (let i: number = 0; i < this._attributeReaders.length; i++) {\r\n Message.print(FileReader.MODULE, \"Attribute \" + i + \": \" + this._attributeReaders[i].getAttribute());\r\n Message.print(FileReader.MODULE, \" min: \" + this._attributeReaders[i].getMinimumValue());\r\n Message.print(FileReader.MODULE, \" max: \" + this._attributeReaders[i].getMaximumValue());\r\n }\r\n /* Return the reader */\r\n return this;\r\n }\r\n\r\n /**\r\n * Close the file.\r\n */\r\n public close(): void {\r\n for (let attributeReader of this._attributeReaders) attributeReader.close();\r\n if (this._container != null) this._container.close(true);\r\n this._container = null;\r\n }\r\n\r\n /**\r\n * Get the storage of the file.\r\n * @return the storage of the file.\r\n */\r\n public getFileStorage(): FileStorage {\r\n return this._fileStorage;\r\n }\r\n\r\n /**\r\n * Get the name of the file.\r\n * @return the name of the file.\r\n */\r\n public getFileName(): string {\r\n return this._fileName;\r\n }\r\n\r\n /**\r\n * Get the container file.\r\n * @return the container file.\r\n */\r\n public getContainer(): ContainerFile {\r\n return this._container;\r\n }\r\n\r\n /**\r\n * Get the file record.\r\n * @return the file record.\r\n */\r\n public getFileRecord(): FileRecord {\r\n return this._fileRecord;\r\n }\r\n\r\n /**\r\n * Get the number of resolution levels.\r\n * @return the number of resolution levels.\r\n */\r\n public getLevelCount(): int32 {\r\n return this._fileRecord.getLevelCount();\r\n }\r\n\r\n /**\r\n * Get a directory reader.\r\n * @param level the index of the level.\r\n * @return the directory reader.\r\n */\r\n public getDirectoryReader(level: int32): DirectoryReader {\r\n return this._directoryReaders[level];\r\n }\r\n\r\n /**\r\n * Get a geometry reader.\r\n * @param level the index of the level.\r\n * @return the geometry reader.\r\n */\r\n public getGeometryReader(level: int32): GeometryReader {\r\n return this._geometryReaders[level];\r\n }\r\n\r\n /**\r\n * Get the static attribute readers.\r\n * @return the static attribute readers.\r\n */\r\n public getStaticAttributeReaders(): Array<AttributeReader> {\r\n return this._attributeReaders;\r\n }\r\n\r\n /**\r\n * Get the attribute readers.\r\n * @return the attribute readers.\r\n */\r\n public getAttributeReaders(): Array<AttributeReader> {\r\n return this._attributeReaders;\r\n }\r\n\r\n /**\r\n * Get the attributes.\r\n * @return the attributes.\r\n */\r\n public getAttributes(): Array<PointAttribute> {\r\n let list: Array<PointAttribute> = new Array<PointAttribute>(this._attributeReaders.length);\r\n for (let i: number = 0; i < this._attributeReaders.length; i++) list[i] = this._attributeReaders[i].getAttribute();\r\n return list;\r\n }\r\n\r\n /**\r\n * Find an attribute reader.\r\n * @param attributeName the name of the attribute.\r\n * @return the attribute reader (null if not found).\r\n */\r\n public findAttributeReader(attributeName: string): AttributeReader {\r\n /* Check the static attributes */\r\n for (let attributeReader of this._attributeReaders) {\r\n if (Strings.equalsIgnoreCase(attributeReader.getAttribute().getName(), attributeName)) return attributeReader;\r\n }\r\n /* Not found */\r\n return null;\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module OrbitGT
|
|
3
|
+
*/
|
|
4
|
+
declare type int32 = number;
|
|
5
|
+
declare type float64 = number;
|
|
6
|
+
import { OutStream } from "../../../system/io/OutStream";
|
|
7
|
+
import { ALong } from "../../../system/runtime/ALong";
|
|
8
|
+
import { FileStorage } from "../../../system/storage/FileStorage";
|
|
9
|
+
/**
|
|
10
|
+
* Class FileRecord defines the global file record.
|
|
11
|
+
*
|
|
12
|
+
* @version 1.0 January 2014
|
|
13
|
+
*/
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare class FileRecord {
|
|
16
|
+
/** The optionsALong */
|
|
17
|
+
private _options;
|
|
18
|
+
/** The CRS */
|
|
19
|
+
private _crs;
|
|
20
|
+
/** The number of levels (4 byte) */
|
|
21
|
+
private _levelCount;
|
|
22
|
+
/** The number of attributes (4 byte) */
|
|
23
|
+
private _attributeCount;
|
|
24
|
+
/** The size of the blocks (4 byte) */
|
|
25
|
+
private _blockSize;
|
|
26
|
+
/** The metric level-0 cell size (8 byte) */
|
|
27
|
+
private _metricCellSize;
|
|
28
|
+
/** The creation timestamp (8 byte) */
|
|
29
|
+
private _creationTime;
|
|
30
|
+
/**
|
|
31
|
+
* Create a new record.
|
|
32
|
+
*/
|
|
33
|
+
constructor(options: int32, crs: string, levelCount: int32, attributeCount: int32, blockSize: int32, metricCellSize: float64, creationTime: ALong);
|
|
34
|
+
/**
|
|
35
|
+
* Get the options.
|
|
36
|
+
* @return the options.
|
|
37
|
+
*/
|
|
38
|
+
getOptions(): int32;
|
|
39
|
+
/**
|
|
40
|
+
* Get the CRS.
|
|
41
|
+
* @return the CRS.
|
|
42
|
+
*/
|
|
43
|
+
getCRS(): string;
|
|
44
|
+
/**
|
|
45
|
+
* Get the number of levels.
|
|
46
|
+
* @return the number.
|
|
47
|
+
*/
|
|
48
|
+
getLevelCount(): int32;
|
|
49
|
+
/**
|
|
50
|
+
* Get the number of attributes.
|
|
51
|
+
* @return the number.
|
|
52
|
+
*/
|
|
53
|
+
getAttributeCount(): int32;
|
|
54
|
+
/**
|
|
55
|
+
* Get the size of blocks.
|
|
56
|
+
* @return the number.
|
|
57
|
+
*/
|
|
58
|
+
getBlockSize(): int32;
|
|
59
|
+
/**
|
|
60
|
+
* Get the metric cell size.
|
|
61
|
+
* @return the metric cell size.
|
|
62
|
+
*/
|
|
63
|
+
getMetricCellSize(): float64;
|
|
64
|
+
/**
|
|
65
|
+
* Get the creation timestamp.
|
|
66
|
+
* @return the creation timestamp.
|
|
67
|
+
*/
|
|
68
|
+
getCreationTime(): ALong;
|
|
69
|
+
/**
|
|
70
|
+
* Read a record.
|
|
71
|
+
* @param data the record data.
|
|
72
|
+
* @return the record.
|
|
73
|
+
*/
|
|
74
|
+
private static readFromBuffer;
|
|
75
|
+
/**
|
|
76
|
+
* Read a record.
|
|
77
|
+
* @param fileAccess the access to the file.
|
|
78
|
+
* @param offset the file offset to the record.
|
|
79
|
+
* @param size the file size to the record.
|
|
80
|
+
* @return the record.
|
|
81
|
+
*/
|
|
82
|
+
static readNew(fileStorage: FileStorage, fileName: string, offset: ALong, size: ALong): Promise<FileRecord>;
|
|
83
|
+
/**
|
|
84
|
+
* Write the record.
|
|
85
|
+
* @param output the output stream.
|
|
86
|
+
*/
|
|
87
|
+
write(output: OutStream): void;
|
|
88
|
+
}
|
|
89
|
+
export {};
|
|
90
|
+
//# sourceMappingURL=FileRecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileRecord.d.ts","sourceRoot":"","sources":["../../../../../src/pointcloud/format/opc/FileRecord.ts"],"names":[],"mappings":"AAIA;;GAEG;AAMH,aAAK,KAAK,GAAG,MAAM,CAAC;AAEpB,aAAK,OAAO,GAAG,MAAM,CAAC;AAItB,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAElE;;;;GAIG;AACH,gBAAgB;AAChB,qBAAa,UAAU;IACnB,uBAAuB;IACvB,OAAO,CAAC,QAAQ,CAAQ;IACxB,cAAc;IACd,OAAO,CAAC,IAAI,CAAS;IACrB,oCAAoC;IACpC,OAAO,CAAC,WAAW,CAAQ;IAC3B,wCAAwC;IACxC,OAAO,CAAC,eAAe,CAAQ;IAC/B,sCAAsC;IACtC,OAAO,CAAC,UAAU,CAAQ;IAC1B,4CAA4C;IAC5C,OAAO,CAAC,eAAe,CAAU;IACjC,sCAAsC;IACtC,OAAO,CAAC,aAAa,CAAQ;IAE7B;;OAEG;gBACgB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK;IAUxJ;;;OAGG;IACI,UAAU,IAAI,KAAK;IAI1B;;;OAGG;IACI,MAAM,IAAI,MAAM;IAIvB;;;OAGG;IACI,aAAa,IAAI,KAAK;IAI7B;;;OAGG;IACI,iBAAiB,IAAI,KAAK;IAIjC;;;OAGG;IACI,YAAY,IAAI,KAAK;IAI5B;;;OAGG;IACI,iBAAiB,IAAI,OAAO;IAInC;;;OAGG;IACI,eAAe,IAAI,KAAK;IAI/B;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IAc7B;;;;;;OAMG;WACiB,OAAO,CAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC;IAOxH;;;OAGG;IACI,KAAK,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;CASxC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
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.FileRecord = void 0;
|
|
11
|
+
const LittleEndian_1 = require("../../../system/buffer/LittleEndian");
|
|
12
|
+
/**
|
|
13
|
+
* Class FileRecord defines the global file record.
|
|
14
|
+
*
|
|
15
|
+
* @version 1.0 January 2014
|
|
16
|
+
*/
|
|
17
|
+
/** @internal */
|
|
18
|
+
class FileRecord {
|
|
19
|
+
/**
|
|
20
|
+
* Create a new record.
|
|
21
|
+
*/
|
|
22
|
+
constructor(options, crs, levelCount, attributeCount, blockSize, metricCellSize, creationTime) {
|
|
23
|
+
this._options = options;
|
|
24
|
+
this._crs = crs;
|
|
25
|
+
this._levelCount = levelCount;
|
|
26
|
+
this._attributeCount = attributeCount;
|
|
27
|
+
this._blockSize = blockSize;
|
|
28
|
+
this._metricCellSize = metricCellSize;
|
|
29
|
+
this._creationTime = creationTime;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get the options.
|
|
33
|
+
* @return the options.
|
|
34
|
+
*/
|
|
35
|
+
getOptions() {
|
|
36
|
+
return this._options;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Get the CRS.
|
|
40
|
+
* @return the CRS.
|
|
41
|
+
*/
|
|
42
|
+
getCRS() {
|
|
43
|
+
return this._crs;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get the number of levels.
|
|
47
|
+
* @return the number.
|
|
48
|
+
*/
|
|
49
|
+
getLevelCount() {
|
|
50
|
+
return this._levelCount;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get the number of attributes.
|
|
54
|
+
* @return the number.
|
|
55
|
+
*/
|
|
56
|
+
getAttributeCount() {
|
|
57
|
+
return this._attributeCount;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get the size of blocks.
|
|
61
|
+
* @return the number.
|
|
62
|
+
*/
|
|
63
|
+
getBlockSize() {
|
|
64
|
+
return this._blockSize;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get the metric cell size.
|
|
68
|
+
* @return the metric cell size.
|
|
69
|
+
*/
|
|
70
|
+
getMetricCellSize() {
|
|
71
|
+
return this._metricCellSize;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get the creation timestamp.
|
|
75
|
+
* @return the creation timestamp.
|
|
76
|
+
*/
|
|
77
|
+
getCreationTime() {
|
|
78
|
+
return this._creationTime;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Read a record.
|
|
82
|
+
* @param data the record data.
|
|
83
|
+
* @return the record.
|
|
84
|
+
*/
|
|
85
|
+
static readFromBuffer(data) {
|
|
86
|
+
/* Get the record fields */
|
|
87
|
+
let options = LittleEndian_1.LittleEndian.readBufferInt(data, 0);
|
|
88
|
+
let crs = LittleEndian_1.LittleEndian.readBufferString(data, 4);
|
|
89
|
+
let dataOffset = 4 + LittleEndian_1.LittleEndian.getStringByteCount(crs);
|
|
90
|
+
let levelCount = LittleEndian_1.LittleEndian.readBufferInt(data, dataOffset + 0);
|
|
91
|
+
let attributeCount = LittleEndian_1.LittleEndian.readBufferInt(data, dataOffset + 4);
|
|
92
|
+
let blockSize = LittleEndian_1.LittleEndian.readBufferInt(data, dataOffset + 8);
|
|
93
|
+
let metricCellSize = LittleEndian_1.LittleEndian.readBufferDouble(data, dataOffset + 12);
|
|
94
|
+
let creationTime = LittleEndian_1.LittleEndian.readBufferLong(data, dataOffset + 20);
|
|
95
|
+
/* Return the record */
|
|
96
|
+
return new FileRecord(options, crs, levelCount, attributeCount, blockSize, metricCellSize, creationTime);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Read a record.
|
|
100
|
+
* @param fileAccess the access to the file.
|
|
101
|
+
* @param offset the file offset to the record.
|
|
102
|
+
* @param size the file size to the record.
|
|
103
|
+
* @return the record.
|
|
104
|
+
*/
|
|
105
|
+
static async readNew(fileStorage, fileName, offset, size) {
|
|
106
|
+
/* Read the record */
|
|
107
|
+
let data = await fileStorage.readFilePart(fileName, offset, size.toInt());
|
|
108
|
+
/* Parse the record */
|
|
109
|
+
return FileRecord.readFromBuffer(data);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Write the record.
|
|
113
|
+
* @param output the output stream.
|
|
114
|
+
*/
|
|
115
|
+
write(output) {
|
|
116
|
+
LittleEndian_1.LittleEndian.writeStreamInt(output, this._options);
|
|
117
|
+
LittleEndian_1.LittleEndian.writeStreamString(output, this._crs);
|
|
118
|
+
LittleEndian_1.LittleEndian.writeStreamInt(output, this._levelCount);
|
|
119
|
+
LittleEndian_1.LittleEndian.writeStreamInt(output, this._attributeCount);
|
|
120
|
+
LittleEndian_1.LittleEndian.writeStreamInt(output, this._blockSize);
|
|
121
|
+
LittleEndian_1.LittleEndian.writeStreamDouble(output, this._metricCellSize);
|
|
122
|
+
LittleEndian_1.LittleEndian.writeStreamLong(output, this._creationTime);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.FileRecord = FileRecord;
|
|
126
|
+
//# sourceMappingURL=FileRecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileRecord.js","sourceRoot":"","sources":["../../../../../src/pointcloud/format/opc/FileRecord.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAWH,sEAAmE;AAKnE;;;;GAIG;AACH,gBAAgB;AAChB,MAAa,UAAU;IAgBnB;;OAEG;IACH,YAAmB,OAAc,EAAE,GAAW,EAAE,UAAiB,EAAE,cAAqB,EAAE,SAAgB,EAAE,cAAuB,EAAE,YAAmB;QACpJ,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACtC,CAAC;IAED;;;OAGG;IACI,UAAU;QACb,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED;;;OAGG;IACI,MAAM;QACT,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED;;;OAGG;IACI,aAAa;QAChB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACI,iBAAiB;QACpB,OAAO,IAAI,CAAC,eAAe,CAAC;IAChC,CAAC;IAED;;;OAGG;IACI,Y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AqB;QACrB,IAAI,IAAI,GAAY,MAAM,WAAW,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QACnF,sBAAsB;QACtB,OAAO,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,MAAiB;QAC1B,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnD,2BAAY,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QACtD,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QAC1D,2BAAY,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACrD,2BAAY,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7D,2BAAY,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IAC7D,CAAC;CACJ;AAnID,gCAmIC","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.pointcloud.format.opc;\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 { ABuffer } from \"../../../system/buffer/ABuffer\";\r\nimport { LittleEndian } from \"../../../system/buffer/LittleEndian\";\r\nimport { OutStream } from \"../../../system/io/OutStream\";\r\nimport { ALong } from \"../../../system/runtime/ALong\";\r\nimport { FileStorage } from \"../../../system/storage/FileStorage\";\r\n\r\n/**\r\n * Class FileRecord defines the global file record.\r\n *\r\n * @version 1.0 January 2014\r\n */\r\n/** @internal */\r\nexport class FileRecord {\r\n /** The optionsALong */\r\n private _options: int32;\r\n /** The CRS */\r\n private _crs: string;\r\n /** The number of levels (4 byte) */\r\n private _levelCount: int32;\r\n /** The number of attributes (4 byte) */\r\n private _attributeCount: int32;\r\n /** The size of the blocks (4 byte) */\r\n private _blockSize: int32;\r\n /** The metric level-0 cell size (8 byte) */\r\n private _metricCellSize: float64;\r\n /** The creation timestamp (8 byte) */\r\n private _creationTime: ALong;\r\n\r\n /**\r\n * Create a new record.\r\n */\r\n public constructor(options: int32, crs: string, levelCount: int32, attributeCount: int32, blockSize: int32, metricCellSize: float64, creationTime: ALong) {\r\n this._options = options;\r\n this._crs = crs;\r\n this._levelCount = levelCount;\r\n this._attributeCount = attributeCount;\r\n this._blockSize = blockSize;\r\n this._metricCellSize = metricCellSize;\r\n this._creationTime = creationTime;\r\n }\r\n\r\n /**\r\n * Get the options.\r\n * @return the options.\r\n */\r\n public getOptions(): int32 {\r\n return this._options;\r\n }\r\n\r\n /**\r\n * Get the CRS.\r\n * @return the CRS.\r\n */\r\n public getCRS(): string {\r\n return this._crs;\r\n }\r\n\r\n /**\r\n * Get the number of levels.\r\n * @return the number.\r\n */\r\n public getLevelCount(): int32 {\r\n return this._levelCount;\r\n }\r\n\r\n /**\r\n * Get the number of attributes.\r\n * @return the number.\r\n */\r\n public getAttributeCount(): int32 {\r\n return this._attributeCount;\r\n }\r\n\r\n /**\r\n * Get the size of blocks.\r\n * @return the number.\r\n */\r\n public getBlockSize(): int32 {\r\n return this._blockSize;\r\n }\r\n\r\n /**\r\n * Get the metric cell size.\r\n * @return the metric cell size.\r\n */\r\n public getMetricCellSize(): float64 {\r\n return this._metricCellSize;\r\n }\r\n\r\n /**\r\n * Get the creation timestamp.\r\n * @return the creation timestamp.\r\n */\r\n public getCreationTime(): ALong {\r\n return this._creationTime;\r\n }\r\n\r\n /**\r\n * Read a record.\r\n * @param data the record data.\r\n * @return the record.\r\n */\r\n private static readFromBuffer(data: ABuffer): FileRecord {\r\n /* Get the record fields */\r\n let options: int32 = LittleEndian.readBufferInt(data, 0);\r\n let crs: string = LittleEndian.readBufferString(data, 4);\r\n let dataOffset: int32 = 4 + LittleEndian.getStringByteCount(crs);\r\n let levelCount: int32 = LittleEndian.readBufferInt(data, dataOffset + 0);\r\n let attributeCount: int32 = LittleEndian.readBufferInt(data, dataOffset + 4);\r\n let blockSize: int32 = LittleEndian.readBufferInt(data, dataOffset + 8);\r\n let metricCellSize: float64 = LittleEndian.readBufferDouble(data, dataOffset + 12);\r\n let creationTime: ALong = LittleEndian.readBufferLong(data, dataOffset + 20);\r\n /* Return the record */\r\n return new FileRecord(options, crs, levelCount, attributeCount, blockSize, metricCellSize, creationTime);\r\n }\r\n\r\n /**\r\n * Read a record.\r\n * @param fileAccess the access to the file.\r\n * @param offset the file offset to the record.\r\n * @param size the file size to the record.\r\n * @return the record.\r\n */\r\n public static async readNew(fileStorage: FileStorage, fileName: string, offset: ALong, size: ALong): Promise<FileRecord> {\r\n /* Read the record */\r\n let data: ABuffer = await fileStorage.readFilePart(fileName, offset, size.toInt());\r\n /* Parse the record */\r\n return FileRecord.readFromBuffer(data);\r\n }\r\n\r\n /**\r\n * Write the record.\r\n * @param output the output stream.\r\n */\r\n public write(output: OutStream): void {\r\n LittleEndian.writeStreamInt(output, this._options);\r\n LittleEndian.writeStreamString(output, this._crs);\r\n LittleEndian.writeStreamInt(output, this._levelCount);\r\n LittleEndian.writeStreamInt(output, this._attributeCount);\r\n LittleEndian.writeStreamInt(output, this._blockSize);\r\n LittleEndian.writeStreamDouble(output, this._metricCellSize);\r\n LittleEndian.writeStreamLong(output, this._creationTime);\r\n }\r\n}\r\n"]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module OrbitGT
|
|
3
|
+
*/
|
|
4
|
+
declare type int32 = number;
|
|
5
|
+
import { ContentLoader } from "../../../system/storage/ContentLoader";
|
|
6
|
+
import { CloudPoint } from "../../model/CloudPoint";
|
|
7
|
+
import { PointDataRaw } from "../../model/PointDataRaw";
|
|
8
|
+
import { ReadRequest } from "../../model/ReadRequest";
|
|
9
|
+
import { TileIndex } from "../../model/TileIndex";
|
|
10
|
+
import { FileReader } from "./FileReader";
|
|
11
|
+
import { GeometryRecord } from "./GeometryRecord";
|
|
12
|
+
import { TileReadBuffer } from "./TileReadBuffer";
|
|
13
|
+
/**
|
|
14
|
+
* Class GeometryReader reads geometry data.
|
|
15
|
+
*
|
|
16
|
+
* @version 1.0 January 2014
|
|
17
|
+
*/
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare class GeometryReader {
|
|
20
|
+
/** The size of the high-resolution record in the file */
|
|
21
|
+
static readonly RECORD_SIZE_HR: int32;
|
|
22
|
+
/** The size of the low-resolution record in the file */
|
|
23
|
+
static readonly RECORD_SIZE_LR: int32;
|
|
24
|
+
/** The number of bins (subdivisions) in a multi-resolution tile */
|
|
25
|
+
static readonly MR_BIN_COUNT: int32;
|
|
26
|
+
/** The file reader */
|
|
27
|
+
private _fileReader;
|
|
28
|
+
/** The level */
|
|
29
|
+
private _level;
|
|
30
|
+
/** The geometry record */
|
|
31
|
+
private _geometryRecord;
|
|
32
|
+
/** The location of the geometry data */
|
|
33
|
+
private _geometryDataPart;
|
|
34
|
+
/**
|
|
35
|
+
* Create a new reader.
|
|
36
|
+
* @param opcReader the file reader.
|
|
37
|
+
* @param level the level.
|
|
38
|
+
*/
|
|
39
|
+
constructor(fileReader: FileReader, level: int32);
|
|
40
|
+
/**
|
|
41
|
+
* Load the data.
|
|
42
|
+
* @return the reader.
|
|
43
|
+
*/
|
|
44
|
+
loadData(fileContents: ContentLoader): GeometryReader;
|
|
45
|
+
/**
|
|
46
|
+
* Get the geometry record.
|
|
47
|
+
* @return the geometry record.
|
|
48
|
+
*/
|
|
49
|
+
getGeometryRecord(): GeometryRecord;
|
|
50
|
+
/**
|
|
51
|
+
* Read the raw data for a tile.
|
|
52
|
+
* @param tile the tile.
|
|
53
|
+
* @param tileBuffer the buffer to read into.
|
|
54
|
+
* @param readRequest the read parameters (contains the result read statistics).
|
|
55
|
+
*/
|
|
56
|
+
readTileData2(tile: TileIndex, pointOffset: int32, pointCount: int32, tileBuffer: TileReadBuffer, readRequest: ReadRequest, fileContents: ContentLoader): void;
|
|
57
|
+
/**
|
|
58
|
+
* Convert a low-resolution coordinate to a high-resolution one.
|
|
59
|
+
* @param local the low-resolution coordinate.
|
|
60
|
+
* @return the high-resolution coordinate.
|
|
61
|
+
*/
|
|
62
|
+
static lowToHighResolution(local: int32): int32;
|
|
63
|
+
/**
|
|
64
|
+
* Get geometry data.
|
|
65
|
+
* @param tile the tile.
|
|
66
|
+
* @param tileBuffer the buffer that has been read.
|
|
67
|
+
* @param pointIndex the index of the point to read.
|
|
68
|
+
* @param cloudPoint the point to read the geometry of.
|
|
69
|
+
*/
|
|
70
|
+
getPointData(tile: TileIndex, tileBuffer: TileReadBuffer, pointIndex: int32, cloudPoint: CloudPoint): void;
|
|
71
|
+
/**
|
|
72
|
+
* Get geometry data.
|
|
73
|
+
* @param tile the tile.
|
|
74
|
+
* @param tileBuffer the buffer that has been read.
|
|
75
|
+
* @param pointData the point data.
|
|
76
|
+
*/
|
|
77
|
+
getPointDataRaw(tile: TileIndex, tileBuffer: TileReadBuffer, pointData: PointDataRaw): void;
|
|
78
|
+
}
|
|
79
|
+
export {};
|
|
80
|
+
//# sourceMappingURL=GeometryReader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GeometryReader.d.ts","sourceRoot":"","sources":["../../../../../src/pointcloud/format/opc/GeometryReader.ts"],"names":[],"mappings":"AAIA;;GAEG;AAMH,aAAK,KAAK,GAAG,MAAM,CAAC;AAUpB,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACt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