Commit 617696ec authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Merge branch feature/morten.ofstad/MoreSEGYMetadata with refs/heads/master...

Merge branch feature/morten.ofstad/MoreSEGYMetadata with refs/heads/master into refs/merge-requests/131/train
parents f2fee129 94f08df3
Pipeline #1596 passed with stages
in 3 minutes
......@@ -29,6 +29,7 @@
#include <OpenVDS/VolumeDataAccess.h>
#include <OpenVDS/Range.h>
#include <OpenVDS/VolumeDataLayout.h>
#include <OpenVDS/KnownMetadata.h>
#include <OpenVDS/GlobalMetadataCommon.h>
#include <mutex>
......@@ -612,7 +613,7 @@ analyzeSegment(DataProvider &dataProvider, SEGYFileInfo const& fileInfo, SEGYSeg
}
bool
createSEGYHeadersMetadata(DataProvider &dataProvider, OpenVDS::MetadataContainer& metadataContainer, OpenVDS::Error& error)
createSEGYMetadata(DataProvider &dataProvider, SEGYFileInfo const &fileInfo, OpenVDS::MetadataContainer& metadataContainer, OpenVDS::Error& error)
{
std::vector<uint8_t> textHeader(SEGY::TextualFileHeaderSize);
std::vector<uint8_t> binaryHeader(SEGY::BinaryFileHeaderSize);
......@@ -628,6 +629,8 @@ createSEGYHeadersMetadata(DataProvider &dataProvider, OpenVDS::MetadataContainer
metadataContainer.SetMetadataBLOB("SEGY", "BinaryHeader", binaryHeader);
metadataContainer.SetMetadataInt("SEGY", "Endianness", int(fileInfo.m_headerEndianness));
metadataContainer.SetMetadataInt("SEGY", "DataSampleFormatCode", int(fileInfo.m_dataSampleFormatCode));
return success;
}
......@@ -1453,7 +1456,7 @@ main(int argc, char* argv[])
return EXIT_FAILURE;
}
createSEGYHeadersMetadata(dataProvider, metadataContainer, error);
createSEGYMetadata(dataProvider, fileInfo, metadataContainer, error);
if (error.code != 0)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment