mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#11514 OSDU: parse and add datum elevation to well paths.
This commit is contained in:
1 parent
4365b0dfb9
commit
d0a870bb38
11 files changed
+70
-12
No files matched your search
@@ -106,7 +106,7 @@ std::pair<cvf::ref<RigWellPath>, QString> RifOsduWellPathReader::parseCsv( const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::pair<cvf::ref<RigWellPath>, QString> RifOsduWellPathReader::readWellPathData( const QByteArray& content )
|
||||
std::pair<cvf::ref<RigWellPath>, QString> RifOsduWellPathReader::readWellPathData( const QByteArray& content, double datumElevation )
|
||||
{
|
||||
arrow::MemoryPool* pool = arrow::default_memory_pool();
|
||||
|
||||
@@ -155,14 +155,16 @@ std::pair<cvf::ref<RigWellPath>, QString> RifOsduWellPathReader::readWellPathDat
|
||||
|
||||
for ( size_t i = 0; i < firstSize; i++ )
|
||||
{
|
||||
cvf::Vec3d point( readValues[X][i], readValues[Y][i], -readValues[TVD][i] );
|
||||
cvf::Vec3d point( readValues[X][i], readValues[Y][i], -readValues[TVD][i] + datumElevation );
|
||||
double md = readValues[MD][i];
|
||||
|
||||
wellPathPoints.push_back( point );
|
||||
measuredDepths.push_back( md );
|
||||
}
|
||||
|
||||
return { cvf::make_ref<RigWellPath>( wellPathPoints, measuredDepths ), "" };
|
||||
auto wellPath = cvf::make_ref<RigWellPath>( wellPathPoints, measuredDepths );
|
||||
wellPath->setDatumElevation( datumElevation );
|
||||
return { wellPath, "" };
|
||||
}
|
||||
|
||||
return { nullptr, "" };
|
||||
|
||||
Reference in new issue
Block a user