aboutsummaryrefslogtreecommitdiff
path: root/data/sql/proj_db_table_defs.sql
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-24 19:52:46 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-05-24 21:22:18 +0200
commit4d9fa77bef599353d3809541cb7e6adb8ec12525 (patch)
tree79ac7d72129f1acc97e2ba621365c16b99a2ea72 /data/sql/proj_db_table_defs.sql
parent5d502d356e16ef81f481eb82dcdeba0ea3ab1f9e (diff)
downloadPROJ-4d9fa77bef599353d3809541cb7e6adb8ec12525.tar.gz
PROJ-4d9fa77bef599353d3809541cb7e6adb8ec12525.zip
Database: add a same_source_target_crs column to supersession table
This is in preparation for EPSG 9.8.11 import that supersedes a number of grid transformation for US transformations, but the superseded and replacement transformations don't operate on the same (source_crs, target_crs), which is a bit weird. So in that situation, ignores the supersession.
Diffstat (limited to 'data/sql/proj_db_table_defs.sql')
-rw-r--r--data/sql/proj_db_table_defs.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/sql/proj_db_table_defs.sql b/data/sql/proj_db_table_defs.sql
index 2d820d20..3c70b384 100644
--- a/data/sql/proj_db_table_defs.sql
+++ b/data/sql/proj_db_table_defs.sql
@@ -1367,7 +1367,8 @@ CREATE TABLE supersession(
'helmert_transformation', 'other_transformation', 'concatenated_operation')),
replacement_auth_name TEXT NOT NULL,
replacement_code TEXT NOT NULL,
- source TEXT
+ source TEXT,
+ same_source_target_crs BOOLEAN NOT NULL CHECK (same_source_target_crs IN (0, 1)) -- for transformations, whether the (source_crs, target_crs) of the replacement transfrm is the same as the superseded one
);
CREATE INDEX idx_supersession ON supersession(superseded_table_name, superseded_auth_name, superseded_code);