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
LocalDepth3dCrs.h
1/*-----------------------------------------------------------------------
2Licensed to the Apache Software Foundation (ASF) under one
3or more contributor license agreements. See the NOTICE file
4distributed with this work for additional information
5regarding copyright ownership. The ASF licenses this file
6to you under the Apache License, Version 2.0 (the
7"License"; you may not use this file except in compliance
8with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing,
13software distributed under the License is distributed on an
14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15KIND, either express or implied. See the License for the
16specific language governing permissions and limitations
17under the License.
18-----------------------------------------------------------------------*/
19#pragma once
20
21#include "../eml2/AbstractLocal3dCrs.h"
22
23namespace RESQML2_0_1_NS
24{
30 class LocalDepth3dCrs final : public EML2_NS::AbstractLocal3dCrs
31 {
32 private:
33
48 void init(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
49 double originOrdinal1, double originOrdinal2, double originOrdinal3,
50 double arealRotation,
51 gsoap_resqml2_0_1::eml20__LengthUom projectedUom,
52 gsoap_resqml2_0_1::eml20__LengthUom verticalUom, bool isUpOriented);
53
59 double getZOffset() const { return getOriginDepthOrElevation(); }
60
61 public:
62
70 DLL_IMPORT_OR_EXPORT LocalDepth3dCrs(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject) : EML2_NS::AbstractLocal3dCrs(partialObject) {}
71
94 LocalDepth3dCrs(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
95 double originOrdinal1, double originOrdinal2, double originOrdinal3,
96 double arealRotation,
97 gsoap_resqml2_0_1::eml20__LengthUom projectedUom, uint64_t projectedEpsgCode,
98 gsoap_resqml2_0_1::eml20__LengthUom verticalUom, unsigned int verticalEpsgCode, bool isUpOriented);
99
128 LocalDepth3dCrs(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
129 double originOrdinal1, double originOrdinal2, double originOrdinal3,
130 double arealRotation,
131 gsoap_resqml2_0_1::eml20__LengthUom projectedUom, const std::string& projectedUnknownReason,
132 gsoap_resqml2_0_1::eml20__LengthUom verticalUom, const std::string& verticalUnknownReason, bool isUpOriented);
133
162 LocalDepth3dCrs(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
163 double originOrdinal1, double originOrdinal2, double originOrdinal3,
164 double arealRotation,
165 gsoap_resqml2_0_1::eml20__LengthUom projectedUom, uint64_t projectedEpsgCode,
166 gsoap_resqml2_0_1::eml20__LengthUom verticalUom, const std::string& verticalUnknownReason, bool isUpOriented);
167
194 LocalDepth3dCrs(COMMON_NS::DataObjectRepository* repo, const std::string& guid, const std::string& title,
195 double originOrdinal1, double originOrdinal2, double originOrdinal3,
196 double arealRotation,
197 gsoap_resqml2_0_1::eml20__LengthUom projectedUom, const std::string& projectedUnknownReason,
198 gsoap_resqml2_0_1::eml20__LengthUom verticalUom, unsigned int verticalEpsgCode, bool isUpOriented);
199
205 LocalDepth3dCrs(gsoap_resqml2_0_1::_resqml20__LocalDepth3dCrs* fromGsoap) : EML2_NS::AbstractLocal3dCrs(fromGsoap) {}
206
208 ~LocalDepth3dCrs() = default;
209
210 DLL_IMPORT_OR_EXPORT bool isATimeCrs() const final { return false; }
211
212 DLL_IMPORT_OR_EXPORT gsoap_resqml2_0_1::eml20__TimeUom getTimeUom() const final { throw std::logic_error("You cannot get time uom from a depth CRS."); }
213
217 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_NS = "resqml20";
218
222 DLL_IMPORT_OR_EXPORT std::string getXmlNamespace() const final { return XML_NS; }
223
225 DLL_IMPORT_OR_EXPORT static constexpr char const* XML_TAG = "LocalDepth3dCrs";
226
227 DLL_IMPORT_OR_EXPORT virtual std::string getXmlTag() const final { return XML_TAG; }
228
231 };
232}
Defines a local depth coordinate system. The geometrical origin and location are defined by the eleme...
Definition LocalDepth3dCrs.h:31
gsoap_resqml2_0_1::eml20__TimeUom getTimeUom() const final
Definition LocalDepth3dCrs.h:212
void loadTargetRelationships() final
Definition LocalDepth3dCrs.h:230
virtual std::string getXmlTag() const final
Definition LocalDepth3dCrs.h:227
LocalDepth3dCrs(gsoap_resqml2_0_1::_resqml20__LocalDepth3dCrs *fromGsoap)
Definition LocalDepth3dCrs.h:205
LocalDepth3dCrs(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, double originOrdinal1, double originOrdinal2, double originOrdinal3, double arealRotation, gsoap_resqml2_0_1::eml20__LengthUom projectedUom, const std::string &projectedUnknownReason, gsoap_resqml2_0_1::eml20__LengthUom verticalUom, const std::string &verticalUnknownReason, bool isUpOriented)
LocalDepth3dCrs(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, double originOrdinal1, double originOrdinal2, double originOrdinal3, double arealRotation, gsoap_resqml2_0_1::eml20__LengthUom projectedUom, uint64_t projectedEpsgCode, gsoap_resqml2_0_1::eml20__LengthUom verticalUom, const std::string &verticalUnknownReason, bool isUpOriented)
Creates a local depth 3d CRS which is identified by an EPSG code for its projected part and which is ...
LocalDepth3dCrs(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, double originOrdinal1, double originOrdinal2, double originOrdinal3, double arealRotation, gsoap_resqml2_0_1::eml20__LengthUom projectedUom, uint64_t projectedEpsgCode, gsoap_resqml2_0_1::eml20__LengthUom verticalUom, unsigned int verticalEpsgCode, bool isUpOriented)
std::string getXmlNamespace() const final
Definition LocalDepth3dCrs.h:222
LocalDepth3dCrs(gsoap_resqml2_0_1::eml20__DataObjectReference *partialObject)
Definition LocalDepth3dCrs.h:70
bool isATimeCrs() const final
Definition LocalDepth3dCrs.h:210
LocalDepth3dCrs(common::DataObjectRepository *repo, const std::string &guid, const std::string &title, double originOrdinal1, double originOrdinal2, double originOrdinal3, double arealRotation, gsoap_resqml2_0_1::eml20__LengthUom projectedUom, const std::string &projectedUnknownReason, gsoap_resqml2_0_1::eml20__LengthUom verticalUom, unsigned int verticalEpsgCode, bool isUpOriented)
Creates a local depth 3d CRS which unkown for its projected part and which is identified by an EPSG c...