aboutsummaryrefslogtreecommitdiff
path: root/scripts/build_db.py
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-01-04 15:44:53 +0100
committerEven Rouault <even.rouault@spatialys.com>2022-01-04 22:39:59 +0100
commitc3cac01a9779a523ddf553df9c4ca2dc76ba2f95 (patch)
treecc08a5ba1113d5fe89828dd4fcc5fe016e67f7c1 /scripts/build_db.py
parentcfd005b326864dcb4926db7e75c09a562bdf8f7b (diff)
downloadPROJ-c3cac01a9779a523ddf553df9c4ca2dc76ba2f95.tar.gz
PROJ-c3cac01a9779a523ddf553df9c4ca2dc76ba2f95.zip
Database: update to EPSG 10.044
Diffstat (limited to 'scripts/build_db.py')
-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(