18#ifndef QGSEPTPOINTCLOUDINDEX_H
19#define QGSEPTPOINTCLOUDINDEX_H
41 explicit QgsEptPointCloudIndex();
42 ~QgsEptPointCloudIndex();
44 void load(
const QString &fileName )
override;
60 bool loadSchema(
const QByteArray &dataJson );
61 void loadManifest(
const QByteArray &manifestJson );
62 bool loadSchema( QFile &f );
67 bool mIsValid =
false;
72 QString mUrlDirectoryPart;
75 mutable QSet<QgsPointCloudNodeId> mHierarchyNodes;
77 qint64 mPointCount = 0;
79 struct AttributeStatistics
84 double mean = std::numeric_limits< double >::quiet_NaN();
85 double stDev = std::numeric_limits< double >::quiet_NaN();
86 double variance = std::numeric_limits< double >::quiet_NaN();
89 QMap< QString, AttributeStatistics > mMetadataStats;
91 QMap< QString, QMap< int, int > > mAttributeClasses;
92 QVariantMap mOriginalMetadata;
PointCloudAccessType
The access type of the data, local is for local files and remote for remote files (over HTTP).
@ Local
Local means the source is a local file on the machine.
Represents a indexed point clouds data in octree.
virtual QVariantMap originalMetadata() const =0
Returns the original metadata map.
virtual qint64 pointCount() const =0
Returns the number of points in the point cloud.
virtual QgsCoordinateReferenceSystem crs() const =0
Returns the coordinate reference system of the point cloud index.
virtual bool hasNode(const QgsPointCloudNodeId &n) const
Returns whether the octree contain given node.
virtual void load(const QString &fileName)=0
Loads the index from the file.
virtual QgsPointCloudBlockRequest * asyncNodeData(const QgsPointCloudNodeId &n, const QgsPointCloudRequest &request)=0
Returns a handle responsible for loading a node data block.
virtual Qgis::PointCloudAccessType accessType() const =0
Returns the access type of the data If the access type is Remote, data will be fetched from an HTTP s...
virtual QgsPointCloudStatistics metadataStatistics() const
Returns the object containing the statistics metadata extracted from the dataset.
virtual std::unique_ptr< QgsPointCloudBlock > nodeData(const QgsPointCloudNodeId &n, const QgsPointCloudRequest &request)=0
Returns node data block.
virtual bool isValid() const =0
Returns whether index is loaded and valid.
virtual QgsPointCloudNode getNode(const QgsPointCloudNodeId &id) const
Returns object for a given node.
This class represents a coordinate reference system (CRS).
Base class for handling loading QgsPointCloudBlock asynchronously.
Represents a indexed point cloud node's position in octree.
Keeps metadata for indexed point cloud node.
Point cloud data request.
Class used to store statistics of a point cloud dataset.