#886 LAS Export: Set the STEP if the data is resampled

This commit is contained in:
Magne Sjaastad 2016-09-23 10:20:05 +02:00
parent 8514664d06
commit 88e40aa2d9
3 changed files with 10 additions and 1 deletions

View File

@ -311,6 +311,10 @@ bool RigLasFileExporter::writeToFolder(const QString& exportFolder)
lasFile.setVersionInfo("2.0");
lasFileDescr.appendDataToLasFile(&lasFile);
if (m_isResampleActive)
{
lasFile.setDepthStep(m_resamplingInterval);
}
QDir dir(exportFolder);
QString fileName = dir.absoluteFilePath(QString::fromStdString(lasFileDescr.generateFilename()));
@ -402,7 +406,6 @@ void RigLasFileExporter::appendLasFileDescriptions(const std::vector<RimWellLogC
QString m_wellName;
QString m_caseName;
QString m_date;
double datumElevation;
};
std::vector<CurveCollectionDefinition> curveDefinitions;

View File

@ -597,6 +597,11 @@ void NRLib::LasWell::setStopDepth(double stopDepth)
stop_depth_ = stopDepth;
}
void NRLib::LasWell::setDepthStep(double depthStep)
{
depth_increment_ = depthStep;
}
void NRLib::LasWell::addWellInfo(const std::string& parameter, const std::string& value)
{
// Example of line formatting taken from the documentation

View File

@ -61,6 +61,7 @@ public:
void setVersionInfo(const std::string& logName);
void setStartDepth(double startDepth);
void setStopDepth(double stopDepth);
void setDepthStep(double depthStep);
void addWellInfo(const std::string& parameter, const std::string& value);