diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-12-27 12:25:03 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-12-27 12:25:03 +0100 |
| commit | f085b39752d00a296c288be42dfc69b39b73823f (patch) | |
| tree | f988a9d279865b2e17fd52da5162eadb1bb37c09 /src/grids.hpp | |
| parent | aa8c7826cf17e650ee2c3a2281aca49db37c4e81 (diff) | |
| download | PROJ-f085b39752d00a296c288be42dfc69b39b73823f.tar.gz PROJ-f085b39752d00a296c288be42dfc69b39b73823f.zip | |
Handle context reassignment for Grid/GridSet/File objects
Diffstat (limited to 'src/grids.hpp')
| -rw-r--r-- | src/grids.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/grids.hpp b/src/grids.hpp index 0f595754..fde3eb3e 100644 --- a/src/grids.hpp +++ b/src/grids.hpp @@ -88,6 +88,8 @@ class VerticalShiftGrid : public Grid { // x = 0 is western-most column, y = 0 is southern-most line virtual bool valueAt(int x, int y, float &out) const = 0; + + virtual void reassign_context(PJ_CONTEXT *ctx) = 0; }; // --------------------------------------------------------------------------- @@ -112,6 +114,8 @@ class VerticalShiftGridSet { return m_grids; } const VerticalShiftGrid *gridAt(double lon, double lat) const; + + virtual void reassign_context(PJ_CONTEXT *ctx); }; // --------------------------------------------------------------------------- @@ -130,6 +134,8 @@ class HorizontalShiftGrid : public Grid { // x = 0 is western-most column, y = 0 is southern-most line virtual bool valueAt(int x, int y, float &lonShift, float &latShift) const = 0; + + virtual void reassign_context(PJ_CONTEXT *ctx) = 0; }; // --------------------------------------------------------------------------- @@ -154,6 +160,8 @@ class HorizontalShiftGridSet { return m_grids; } const HorizontalShiftGrid *gridAt(double lon, double lat) const; + + virtual void reassign_context(PJ_CONTEXT *ctx); }; // --------------------------------------------------------------------------- @@ -181,6 +189,8 @@ class GenericShiftGrid : public Grid { // x = 0 is western-most column, y = 0 is southern-most line virtual bool valueAt(int x, int y, int sample, float &out) const = 0; + + virtual void reassign_context(PJ_CONTEXT *ctx) = 0; }; // --------------------------------------------------------------------------- @@ -205,6 +215,8 @@ class GenericShiftGridSet { return m_grids; } const GenericShiftGrid *gridAt(double lon, double lat) const; + + virtual void reassign_context(PJ_CONTEXT *ctx); }; // --------------------------------------------------------------------------- |
