38 QNetworkRequest nr(
mUri );
39 nr.setAttribute( QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache );
40 nr.setAttribute( QNetworkRequest::CacheSaveControlAttribute,
true );
45 void 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 );