aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-01-05 11:09:54 +0100
committerGitHub <noreply@github.com>2022-01-05 11:09:54 +0100
commit78eee957b0eff8b74df8a1f0e60a95355e7fa1c6 (patch)
treecc08a5ba1113d5fe89828dd4fcc5fe016e67f7c1 /scripts
parentb2dbc2f9acfc4fc709a7f2cf63c5b21bb582d6e8 (diff)
parentc3cac01a9779a523ddf553df9c4ca2dc76ba2f95 (diff)
downloadPROJ-78eee957b0eff8b74df8a1f0e60a95355e7fa1c6.tar.gz
PROJ-78eee957b0eff8b74df8a1f0e60a95355e7fa1c6.zip
Merge pull request #3005 from rouault/epsg_10_044
Dabase: update to EPSG 10.044 (fixes #3004)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_db.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build_db.py b/scripts/build_db.py
index 263756c9..f93617bb 100755
--- a/scripts/build_db.py
+++ b/scripts/build_db.py
@@ -282,6 +282,9 @@ def fill_geodetic_crs(proj_db_cursor):
# they lacked a datum code. We will continue to ignore them.
proj_db_cursor.execute("INSERT INTO geodetic_crs SELECT ?, coord_ref_sys_code, coord_ref_sys_name, NULL, coord_ref_sys_kind, ?, coord_sys_code, ?, datum_code, NULL, deprecated FROM epsg.epsg_coordinatereferencesystem WHERE coord_ref_sys_kind IN ('geographic 2D', 'geographic 3D', 'geocentric') AND datum_code IS NOT NULL AND NOT (coord_ref_sys_code > 61000000 AND deprecated)", (EPSG_AUTHORITY, EPSG_AUTHORITY, EPSG_AUTHORITY))
+ # FIXME: remove me for EPSG > 10.044 where the issue with EPSG:4181 and EPSG:9893 having a null datum_code has been solved.
+ proj_db_cursor.execute("INSERT INTO geodetic_crs SELECT ?, coord_ref_sys_code, coord_ref_sys_name, NULL, coord_ref_sys_kind, ?, coord_sys_code, ?, 6181, NULL, deprecated FROM epsg.epsg_coordinatereferencesystem WHERE coord_ref_sys_kind IN ('geographic 2D', 'geographic 3D', 'geocentric') AND datum_code IS NULL AND coord_ref_sys_code IN (4181, 9893)", (EPSG_AUTHORITY, EPSG_AUTHORITY, EPSG_AUTHORITY))
+
def fill_vertical_crs(proj_db_cursor):
#proj_db_cursor.execute(