Fesapi 2.10.1.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
resqml2_0_1::DeviationSurveyRepresentation Class Referencefinal

A deviation survey representation. It Specifies the station data from a deviation survey. More...

#include <DeviationSurveyRepresentation.h>

Inheritance diagram for resqml2_0_1::DeviationSurveyRepresentation:
resqml2::AbstractRepresentation common::AbstractObject

Public Member Functions

 DeviationSurveyRepresentation (gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
 
 DeviationSurveyRepresentation (class resqml2::WellboreInterpretation *interp, const std::string &guid, const std::string &title, bool isFinal, resqml2::MdDatum *mdInfo)
 Creates an instance of this class in a gsoap context.
 
 DeviationSurveyRepresentation (gsoap_resqml2_0_1::_resqml20__DeviationSurveyRepresentation *fromGsoap)
 
 ~DeviationSurveyRepresentation ()=default
 
void setGeometry (double const *firstStationLocation, uint64_t stationCount, gsoap_resqml2_0_1::eml20__LengthUom mdUom, double const *mds, gsoap_resqml2_0_1::eml20__PlaneAngleUom angleUom, double const *azimuths, double const *inclinations, eml2::AbstractHdfProxy *proxy)
 
void setMdDatum (resqml2::MdDatum *mdDatum)
 
common::DataObjectReference getMdDatumDor () const
 
resqml2::MdDatumgetMdDatum () const
 
bool isFinal () const
 
uint64_t getXyzPointCountOfPatch (unsigned int patchIndex) const final
 
void getXyzPointsOfPatch (unsigned int patchIndex, double *xyzPoints) const final
 Gets all the xyz points of a particular patch of this representation. xyz points are given in the local CRS.
 
gsoap_resqml2_0_1::eml20__LengthUom getMdUom () const
 
gsoap_resqml2_0_1::eml20__PlaneAngleUom getAngleUom () const
 
void getMdValues (double *values) const
 
void getInclinations (double *values) const
 
void getAzimuths (double *values) const
 
std::vector< resqml2::WellboreFrameRepresentation * > getWellboreFrameRepresentationSet () const
 
uint64_t getWellboreFrameRepresentationCount () const
 
class resqml2::WellboreFrameRepresentationgetWellboreFrameRepresentation (uint64_t index) const
 
std::vector< resqml2::WellboreTrajectoryRepresentation * > getWellboreTrajectoryRepresentationSet () const
 
uint64_t getWellboreTrajectoryRepresentationCount () const
 
resqml2::WellboreTrajectoryRepresentationgetWellboreTrajectoryRepresentation (uint64_t index) const
 
common::DataObjectReference getHdfProxyDor () const
 Gets the data object reference of the HDF proxy which is used for storing the numerical values of this representation (i.e. its geometry).
 
uint64_t getPatchCount () const final
 
virtual std::string getXmlTag () const final
 
std::string getXmlNamespace () const final
 
- Public Member Functions inherited from resqml2::AbstractRepresentation
virtual ~AbstractRepresentation ()=default
 
eml2::AbstractLocal3dCrsgetLocalCrs (uint64_t patchIndex) const
 
virtual common::DataObjectReference getLocalCrsDor (uint64_t patchIndex) const
 
void setTimeIndex (uint64_t timeIndex, eml2::TimeSeries *timeSeries)
 
uint64_t getTimeIndex () const
 Gets the time index of this representation in the associated TimeSeries. Be sure to first check that a TimeSeries is associated this representation by calling getTimeSeriesDor or getTimeSeries;.
 
eml2::TimeSeriesgetTimeSeries () const
 
common::DataObjectReference getTimeSeriesDor () const
 Gets the data object reference of the TimeSeries containing the time of this representation at a particular index. For now, this method only look for a TimeSeries at the first patch containing a point geometry.
 
std::vector< class AbstractProperty * > getPropertySet () const
 
void setInterpretation (class AbstractFeatureInterpretation *interp)
 
class AbstractFeatureInterpretationgetInterpretation () const
 
common::DataObjectReference getInterpretationDor () const
 
uint64_t getXyzPointCountOfAllPatches () const
 
void getXyzPointsOfPatchInGlobalCrs (unsigned int patchIndex, double *xyzPoints) const
 Gets all the xyz points of a particular patch of this representation. xyz points are given in the global CRS.
 
void getXyzPointsOfAllPatches (double *xyzPoints) const
 Gets all the xyz points of all patches of this representation. xyz points are given in the local CRS.
 
bool isInSingleLocalCrs () const
 
bool isInSingleGlobalCrs () const
 
void getXyzPointsOfAllPatchesInGlobalCrs (double *xyzPoints) const
 
AbstractRepresentationgetSeismicSupportOfPatch (const unsigned int &patchIndex) const
 
std::set< AbstractRepresentation * > getAllSeismicSupport () const
 
void pushBackIntoRepresentationSet (class RepresentationSetRepresentation *repSet)
 
void addSeismic3dCoordinatesToPatch (unsigned int patchIndex, double *inlines, double *crosslines, uint64_t pointCount, resqml2::AbstractRepresentation *seismicSupport, eml2::AbstractHdfProxy *proxy)
 
void addSeismic3dCoordinatesToPatch (unsigned int patchIndex, double startInline, double incrInline, unsigned int countInline, double startCrossline, double incrCrossline, unsigned int countCrossline, resqml2::AbstractRepresentation *seismicSupport)
 
void addSeismic2dCoordinatesToPatch (unsigned int patchIndex, double *lineAbscissa, resqml2::AbstractRepresentation *seismicSupport, eml2::AbstractHdfProxy *proxy)
 
void getSeismicLineAbscissaOfPointsOfPatch (unsigned int patchIndex, double *values) const
 
void getInlinesOfPointsOfPatch (unsigned int patchIndex, double *values) const
 
void getCrosslinesOfPointsOfPatch (unsigned int patchIndex, double *values) const
 
- Public Member Functions inherited from common::AbstractObject
bool isPartial () const
 
virtual bool isTopLevelElement () const
 
std::string getUuid () const
 
std::string getTitle () const
 
std::string getEditor () const
 
time_t getCreation () const
 
tm getCreationAsTimeStructure () const
 
std::string getOriginator () const
 
std::string getDescription () const
 
time_t getLastUpdate () const
 
tm getLastUpdateAsTimeStructure () const
 
std::string getFormat () const
 
std::string getDescriptiveKeywords () const
 
std::string getVersion () const
 
void setTitle (const std::string &title)
 
void setEditor (const std::string &editor)
 
void setCreation (time_t creation)
 
void setCreation (const tm &creation)
 
void setOriginator (const std::string &originator)
 
void setDescription (const std::string &description)
 
void setLastUpdate (time_t lastUpdate)
 
void setLastUpdate (const tm &lastUpdate)
 
void setDescriptiveKeywords (const std::string &descriptiveKeywords)
 
void setVersion (const std::string &version)
 
void setMetadata (const std::string &title, const std::string &editor, time_t creation, const std::string &originator, const std::string &description, time_t lastUpdate, const std::string &descriptiveKeywords)
 
void serializeIntoStream (std::ostream *stream)
 
gsoap_resqml2_0_1::eml20__AbstractCitedDataObject * getEml20GsoapProxy () const
 
void setGsoapProxy (gsoap_resqml2_0_1::eml20__AbstractCitedDataObject *gsoapProxy)
 
gsoap_eml2_3::eml23__AbstractObject * getEml23GsoapProxy () const
 
void setGsoapProxy (gsoap_eml2_3::eml23__AbstractObject *gsoapProxy)
 
soap * getGsoapContext () const
 
int getGsoapType () const
 
gsoap_resqml2_0_1::eml20__DataObjectReference * newResqmlReference () const
 
gsoap_eml2_3::eml23__DataObjectReference * newEml23Reference () const
 
gsoap_resqml2_0_1::resqml20__ContactElementReference * newContactElementReference2_0_1 () const
 
gsoap_eml2_3::resqml22__ContactElement * newContactElementReference2_2 () const
 
common::DataObjectRepositorygetRepository () const
 
virtual std::string getXmlNamespaceVersion () const
 
virtual std::string getContentType () const
 
virtual std::string getQualifiedType () const
 
virtual std::string getPartNameInEpcDocument () const
 
std::string serializeIntoString ()
 
void addAlias (const std::string &authority, const std::string &title)
 
uint64_t getAliasCount () const
 
std::string getAliasAuthorityAtIndex (uint64_t index) const
 
std::string getAliasTitleAtIndex (uint64_t index) const
 
std::vector< eml2::Activity * > getActivitySet () const
 
uint64_t getActivityCount () const
 
eml2::ActivitygetActivity (uint64_t index) const
 
void pushBackExtraMetadata (const std::string &key, const std::string &value)
 
std::unordered_map< std::string, std::string > getExtraMetadataSet () const
 
std::vector< std::string > getExtraMetadata (const std::string &key) const
 
unsigned int getExtraMetadataCount () const
 
std::string getExtraMetadataKeyAtIndex (unsigned int index) const
 
std::string getExtraMetadataStringValueAtIndex (unsigned int index) const
 
std::string buildEtp12Uri () const
 
void setUriSource (const std::string &uriSource)
 
const std::string & getUriSource () const
 
std::string getEpcSourceFolder () const
 
void changeToPartialObject ()
 

Static Public Attributes

static constexpr char const * XML_TAG = "DeviationSurveyRepresentation"
 
static constexpr char const * XML_NS = "resqml20"
 
- Static Public Attributes inherited from resqml2::AbstractRepresentation
static constexpr char const * XML_TAG = "AbstractRepresentation"
 

Additional Inherited Members

- Public Types inherited from common::AbstractObject
enum class  numericalDatatypeEnum {
  UNKNOWN = 0 , DOUBLE = 1 , FLOAT = 2 , INT64 = 3 ,
  UINT64 = 4 , INT32 = 5 , UINT32 = 6 , INT16 = 7 ,
  UINT16 = 8 , INT8 = 9 , UINT8 = 10
}
 
- Static Public Member Functions inherited from common::AbstractObject
static void setFormat (const std::string &vendor, const std::string &applicationName, const std::string &applicationVersionNumber)
 

Detailed Description

A deviation survey representation. It Specifies the station data from a deviation survey.

The deviation survey does not provide a complete specification of the geometry of a wellbore trajectory. Although a minimum-curvature algorithm is used in most cases, the implementation varies sufficiently that no single algorithmic specification is available as a data transfer standard.

Instead, the geometry of a RESQML wellbore trajectory is represented by a parametric line, parameterized by the MD.

CRS and units of measure do not need to be consistent with the CRS and units of measure for wellbore trajectory representation.

Constructor & Destructor Documentation

◆ DeviationSurveyRepresentation() [1/3]

resqml2_0_1::DeviationSurveyRepresentation::DeviationSurveyRepresentation ( gsoap_resqml2_0_1::eml20__DataObjectReference * partialObject)
inline

Only to be used in partial transfer context

Parameters
[in,out]partialObjectIf non-null, the partial object.

◆ DeviationSurveyRepresentation() [2/3]

resqml2_0_1::DeviationSurveyRepresentation::DeviationSurveyRepresentation ( class resqml2::WellboreInterpretation * interp,
const std::string & guid,
const std::string & title,
bool isFinal,
resqml2::MdDatum * mdInfo )

Creates an instance of this class in a gsoap context.

Exceptions
std::invalid_argumentIf interp == nullptr or mdInfo == nullptr.
Parameters
[in]interpThe WellboreFeature interpretation the instance represents.
guidThe guid to set to the new instance. If empty then a new guid will be generated.
titleA title for the instance to create.
isFinalUsed to indicate that this is a final version of the deviation survey, as distinct from the interim interpretations.
[in]mdInfoThe MD information of the survey, mainly the well reference point.

◆ DeviationSurveyRepresentation() [3/3]

resqml2_0_1::DeviationSurveyRepresentation::DeviationSurveyRepresentation ( gsoap_resqml2_0_1::_resqml20__DeviationSurveyRepresentation * fromGsoap)
inline

Creates an instance of this class by wrapping a gsoap instance.

Parameters
[in,out]fromGsoapIf non-null, from gsoap.

◆ ~DeviationSurveyRepresentation()

resqml2_0_1::DeviationSurveyRepresentation::~DeviationSurveyRepresentation ( )
default

Destructor

Member Function Documentation

◆ getAngleUom()

gsoap_resqml2_0_1::eml20__PlaneAngleUom resqml2_0_1::DeviationSurveyRepresentation::getAngleUom ( ) const

Gets the unit of measure of the azimuth and inclination angle values of this deviation survey.

Returns
The unit of measure of the azimuth and inclination angle values.

◆ getAzimuths()

void resqml2_0_1::DeviationSurveyRepresentation::getAzimuths ( double * values) const

Gets the azimuth double values associated to each trajectory station of this deviation survey representation. The rotation is relative to the projected CRS north with a positive value indicating a clockwise rotation as seen from above. The uom is given by getAngleUom().

Exceptions
logic_errorIf the data structure used to store the azimuth values cannot be read for now by fesapi.
Parameters
[out]valuesAn array to receive the azimuth double values. It must preallocated with a count of getXyzPointCountOfPatch(0).

◆ getHdfProxyDor()

common::DataObjectReference resqml2_0_1::DeviationSurveyRepresentation::getHdfProxyDor ( ) const
virtual

Gets the data object reference of the HDF proxy which is used for storing the numerical values of this representation (i.e. its geometry).

Exceptions
std::logic_errorIf this representation is partial.
Returns
The data object reference of the HDF proxy used for storing the geometry, or empty data object reference if it fails.

Implements resqml2::AbstractRepresentation.

◆ getInclinations()

void resqml2_0_1::DeviationSurveyRepresentation::getInclinations ( double * values) const

Gets the inclination double values associated to each trajectory station of this deviation survey representation. The uom is given by getAngleUom().

Exceptions
logic_errorIf the data structure used to store the inclination values cannot be read for now by fesapi.
Parameters
[out]valuesAn array to receive the inclination double values. It must preallocated with a count of getXyzPointCountOfPatch(0).

◆ getMdDatum()

resqml2::MdDatum * resqml2_0_1::DeviationSurveyRepresentation::getMdDatum ( ) const

Gets the MD datum of this deviation survey representation.

Returns
The MD datum of this deviation survey representation.

◆ getMdDatumDor()

common::DataObjectReference resqml2_0_1::DeviationSurveyRepresentation::getMdDatumDor ( ) const

Gets the DOR of the MD datum of this deviation survey representation.

Returns
The DOR of the MD datum of this deviation survey representation.

◆ getMdUom()

gsoap_resqml2_0_1::eml20__LengthUom resqml2_0_1::DeviationSurveyRepresentation::getMdUom ( ) const

Gets the unit of measure of the MDs along this deviation survey.

Returns
The unit of measure of the MDs.

◆ getMdValues()

void resqml2_0_1::DeviationSurveyRepresentation::getMdValues ( double * values) const

Gets the MD double values associated to each trajectory station of this deviation survey representation. The uom is given by getMdUom().

Exceptions
logic_errorIf the data structure used to store the MD values cannot be read for now by fesapi.
Parameters
[out]valuesAn array to receive the MD double values. It must preallocated with a count of getXyzPointCountOfPatch(0).

◆ getPatchCount()

uint64_t resqml2_0_1::DeviationSurveyRepresentation::getPatchCount ( ) const
inlinefinalvirtual

Gets the patch count.

Returns
The patch count.

Implements resqml2::AbstractRepresentation.

◆ getWellboreFrameRepresentation()

class resqml2::WellboreFrameRepresentation * resqml2_0_1::DeviationSurveyRepresentation::getWellboreFrameRepresentation ( uint64_t index) const

Gets a particular wellbore frame representation according to its position in the set of all the wellbore frame representations of the associated wellbore trajectory which share the same MD datum and MD uom than this deviation survey representation.

Exceptions
std::invalid_argumentIf index >= getWellboreFrameRepresentationCount().
Parameters
indexZero-based index of the wellbore frame representation we look for.
Returns
The wellbore frame representation at position index in the set of all the wellbore frame representations of the associated wellbore trajectory which share the same MD datum and MD uom than this deviation survey representation.

◆ getWellboreFrameRepresentationCount()

uint64_t resqml2_0_1::DeviationSurveyRepresentation::getWellboreFrameRepresentationCount ( ) const

Gets the count of wellbore frame representations of the associated wellbore trajectory which share the same MD datum and MD uom than this deviation survey representation.

Returns
The the count of wellbore frame representations of the associated wellbore trajectory which share the same MD datum and MD uom than this deviation survey representation.

◆ getWellboreFrameRepresentationSet()

std::vector< resqml2::WellboreFrameRepresentation * > resqml2_0_1::DeviationSurveyRepresentation::getWellboreFrameRepresentationSet ( ) const

Gets all the wellbore frame representations of the associated wellbore trajectory which share the same MD datum and MD uom than this deviation survey representation.

Returns
The vector of all the wellbore frame representations of the associated wellbore trajectory which share the same MD datum and MD uom than this deviation survey representation.

◆ getWellboreTrajectoryRepresentation()

resqml2::WellboreTrajectoryRepresentation * resqml2_0_1::DeviationSurveyRepresentation::getWellboreTrajectoryRepresentation ( uint64_t index) const

Gets the associated wellbore trajectory at a particular position.

Exceptions
std::out_of_rangeIf index >= getWellboreTrajectoryRepresentationCount().
Parameters
indexZero-based index of the wellbore trajectory we look for.
Returns
The associated wellbore trajectory at position index.

◆ getWellboreTrajectoryRepresentationCount()

uint64_t resqml2_0_1::DeviationSurveyRepresentation::getWellboreTrajectoryRepresentationCount ( ) const

Get the count of wellbore trajectories which are associated to this deviation survey.

Exceptions
std::range_errorIf the count of wellbore trajectories is strictly greater than unsigned int max.
Returns
The count of associated wellbore trajectories.

◆ getWellboreTrajectoryRepresentationSet()

std::vector< resqml2::WellboreTrajectoryRepresentation * > resqml2_0_1::DeviationSurveyRepresentation::getWellboreTrajectoryRepresentationSet ( ) const

Gets all the wellbore trajectories which are associated to this deviation survey representation.

Returns
The vector of all the associated wellbore trajectories.

◆ getXmlNamespace()

std::string resqml2_0_1::DeviationSurveyRepresentation::getXmlNamespace ( ) const
inlinefinalvirtual

Get the standard XML namespace for serializing this data object.

Implements common::AbstractObject.

◆ getXmlTag()

virtual std::string resqml2_0_1::DeviationSurveyRepresentation::getXmlTag ( ) const
inlinefinalvirtual

Gets the standard XML tag without XML namespace for serializing this data object.

Returns
The XML tag.

Implements common::AbstractObject.

◆ getXyzPointCountOfPatch()

uint64_t resqml2_0_1::DeviationSurveyRepresentation::getXyzPointCountOfPatch ( unsigned int patchIndex) const
finalvirtual

Get the xyz point count in a given patch of this representation.

Exceptions
std::out_of_rangeIf patchIndex is out of range.
std::logic_errorIf this representation is partial.
Parameters
patchIndexZero-based index of the patch from which we look for the xyz points.
Returns
The xyz point count of the patch at position patchIndex.

Implements resqml2::AbstractRepresentation.

◆ getXyzPointsOfPatch()

void resqml2_0_1::DeviationSurveyRepresentation::getXyzPointsOfPatch ( unsigned int patchIndex,
double * xyzPoints ) const
finalvirtual

Gets all the xyz points of a particular patch of this representation. xyz points are given in the local CRS.

Exceptions
std::out_of_rangeIf patchIndex is out of range.
std::logic_errorIf this representation is partial.
Parameters
patchIndexZero-based index of the patch from which we look for the xyz points.
[out]xyzPointsA linearized 2d array where the first (quickest) dimension is the coordinate dimension (x, y or z) and second dimension is vertex dimension. It must be preallocated with a size of 3 * getXyzPointCountOfPatch(patchIndex).

Implements resqml2::AbstractRepresentation.

◆ isFinal()

bool resqml2_0_1::DeviationSurveyRepresentation::isFinal ( ) const

Checks whether this is a final version of the deviation survey, as distinct from the interim interpretations.

Returns
True if it is a final version, false if not.

◆ setGeometry()

void resqml2_0_1::DeviationSurveyRepresentation::setGeometry ( double const * firstStationLocation,
uint64_t stationCount,
gsoap_resqml2_0_1::eml20__LengthUom mdUom,
double const * mds,
gsoap_resqml2_0_1::eml20__PlaneAngleUom angleUom,
double const * azimuths,
double const * inclinations,
eml2::AbstractHdfProxy * proxy )

Sets the geometry of this deviation survey representation.

Exceptions
std::invalid_argumentIf firstStationLocation, mds, azimuths or inclinations is @ nullptr.
std::invalid_argumentIf proxy == nullptr and no default HDF proxy is defined in the repository.
Parameters
firstStationLocationAn array of size 3 containing the coordinates x, y and z of the first station of this deviation survey in the local CRS.
stationCountThe number of stations (including the first station).
mdUomThe units of measure of the measured depths along this deviation survey.
mdsAn array containing the MD values of the stations. The array length equals stationCount.
angleUomThe unit of measure of both azimuth and inclination values.
azimuthsAn array of azimuth angles, one for each survey station. The rotation is relative to the projected CRS north with a positive value indicating a clockwise rotation as seen from above. Array length equals stationCount.
inclinationsInclination (or dip) angle for each station. Array length equals stationCount.
[in,out]proxyThe HDF proxy where the numerical values will be stored. It must be already opened for writing and won't be closed. If nullptr, then the default HDF proxy of the repository will be used.

◆ setMdDatum()

void resqml2_0_1::DeviationSurveyRepresentation::setMdDatum ( resqml2::MdDatum * mdDatum)

Sets the MD datum of this deviation survey representation.

Exceptions
std::invalid_argumentIf mdDatum == nullptr.
Parameters
[in]mdDatumThe MD datum to set.

Member Data Documentation

◆ XML_NS

char const* resqml2_0_1::DeviationSurveyRepresentation::XML_NS = "resqml20"
staticconstexpr

The standard XML namespace for serializing this data object.

◆ XML_TAG

char const* resqml2_0_1::DeviationSurveyRepresentation::XML_TAG = "DeviationSurveyRepresentation"
staticconstexpr

The standard XML tag without XML namespace for serializing this data object.


The documentation for this class was generated from the following file: