diff options
Diffstat (limited to 'src/transformations/tinshift.hpp')
| -rw-r--r-- | src/transformations/tinshift.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transformations/tinshift.hpp b/src/transformations/tinshift.hpp index cc8771b3..f826e08a 100644 --- a/src/transformations/tinshift.hpp +++ b/src/transformations/tinshift.hpp @@ -53,6 +53,12 @@ namespace TINSHIFT_NAMESPACE { +enum FallbackStrategy { + FALLBACK_NONE, + FALLBACK_NEAREST_SIDE, + FALLBACK_NEAREST_CENTROID, +}; + using json = nlohmann::json; // --------------------------------------------------------------------------- @@ -93,6 +99,10 @@ class TINShiftFile { */ const std::string &publicationDate() const { return mPublicationDate; } + const enum FallbackStrategy &fallbackStrategy() const { + return mFallbackStrategy; + } + /** Basic information on the agency responsible for the model. */ struct Authority { std::string name{}; @@ -204,6 +214,7 @@ class TINShiftFile { std::string mLicense{}; std::string mDescription{}; std::string mPublicationDate{}; + enum FallbackStrategy mFallbackStrategy {}; Authority mAuthority{}; std::vector<Link> mLinks{}; std::string mInputCRS{}; |
