#12876 Include RKB distance when importing RMSwell.

Fixes #12876.
This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2025-12-15 13:56:41 +01:00
1 parent 3d2449c361
commit 8f9b416563
5 files changed
+16 -1

No files matched your search

@@ -75,6 +75,7 @@ RifWellPathImporter::WellData RifRmsWellPathReader::readWellData( const QString&
wellData.m_name = QString::fromStdString( well->GetWellName() );
wellData.m_wellPathGeometry = new RigWellPath;
wellData.m_wellPathGeometry->setDatumElevation( well->GetRkb() );
for ( size_t i = 0; i < x.size(); i++ )
{
cvf::Vec3d position( x[i], y[i], -z[i] );
@@ -36,6 +36,8 @@ TEST( RifRmsWellPathReader, ReadFromFile )
auto wellPath = wellData.m_wellPathGeometry;
ASSERT_TRUE( wellPath.notNull() );
ASSERT_TRUE( wellPath->hasDatumElevation() );
EXPECT_DOUBLE_EQ( 25.0, wellPath->datumElevation() );
EXPECT_EQ( 4647u, wellPath->wellPathPoints().size() );
EXPECT_EQ( 4647u, wellPath->measuredDepths().size() );
}