Add well log loaders.

This commit is contained in:
Kristian Bendiksen committed 2024-08-14 11:32:07 +02:00
1 parent 694d2eda66
commit 2651ca91b6
11 files changed
+311 -47

No files matched your search

@@ -84,26 +84,27 @@ bool RimOsduWellPathDataLoader::isRunnable() const
//--------------------------------------------------------------------------------------------------
void RimOsduWellPathDataLoader::parquetDownloadComplete( const QByteArray& contents, const QString& url, const QString& id )
{
RiaLogging::info( QString( "Parquet download complete. Id: %1 Size: %2" ).arg( id ).arg( contents.size() ) );
QMutexLocker lock( &m_mutex );
int taskId = m_taskIds[id];
if ( !contents.isEmpty() )
if ( m_wellPaths.find( id ) != m_wellPaths.end() )
{
m_parquetData[id] = contents;
RiaLogging::info( QString( "Parquet download complete. Id: %1 Size: %2" ).arg( id ).arg( contents.size() ) );
int taskId = m_taskIds[id];
auto oWPath = m_wellPaths[id];
auto [wellPathGeometry, errorMessage] = RifOsduWellPathReader::readWellPathData( contents, oWPath->datumElevationFromOsdu() );
if ( wellPathGeometry.notNull() )
if ( !contents.isEmpty() )
{
oWPath->setWellPathGeometry( wellPathGeometry.p() );
}
else
{
RiaLogging::warning( errorMessage );
auto oWPath = m_wellPaths[id];
auto [wellPathGeometry, errorMessage] = RifOsduWellPathReader::readWellPathData( contents, oWPath->datumElevationFromOsdu() );
if ( wellPathGeometry.notNull() )
{
oWPath->setWellPathGeometry( wellPathGeometry.p() );
}
else
{
RiaLogging::warning( errorMessage );
}
}
taskDone.send( m_dataType, taskId );
}
taskDone.send( m_dataType, taskId );
}