38 QNetworkRequest nr( mUri );
39 nr.setAttribute( QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache );
40 nr.setAttribute( QNetworkRequest::CacheSaveControlAttribute,
true );
45void QgsEptPointCloudBlockRequest::blockFinishedLoading()
54 if ( mDataType == QLatin1String(
"binary" ) )
58 else if ( mDataType == QLatin1String(
"zstandard" ) )
62 else if ( mDataType == QLatin1String(
"laszip" ) )
68 error = QStringLiteral(
"Unknown data type %1;" ).arg( mDataType );
71 catch ( std::exception &e )
73 error = QStringLiteral(
"Decompression error: %1" ).arg( e.what() );
80 if ( !error.isEmpty() )
82 mErrorStr = QStringLiteral(
"Error loading point cloud tile %1: \" %2 \"" ).arg(
mNode.
toString(), error );
Represents a indexed point cloud node in octree.
QString toString() const
Encode node to string.
static QgsTileDownloadManager * tileDownloadManager()
Returns the application's tile download manager, used for download of map tiles when rendering.
QgsEptPointCloudBlockRequest(const IndexedPointCloudNode &node, const QString &Uri, const QString &dataType, const QgsPointCloudAttributeCollection &attributes, const QgsPointCloudAttributeCollection &requestedAttributes, const QgsVector3D &scale, const QgsVector3D &offset, const QgsPointCloudExpression &filterExpression)
QgsPointCloudBlockRequest constructor Requests the block data of size blockSize at offset blockOffset...
Collection of point cloud attributes.
Base class for handling loading QgsPointCloudBlock asynchronously.
QgsPointCloudAttributeCollection mRequestedAttributes
QgsPointCloudBlock * mBlock
std::unique_ptr< QgsTileDownloadManagerReply > mTileDownloadManagerReply
QgsPointCloudAttributeCollection mAttributes
IndexedPointCloudNode mNode
QgsPointCloudExpression mFilterExpression
void finished()
Emitted when the request processing has finished.
void finished()
Emitted when the reply has finished (either with a success or with a failure)