aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2022-01-27 12:55:38 +0100
committerGitHub <noreply@github.com>2022-01-27 12:55:38 +0100
commit4ecb0abb8c3d3f5efcdd79643bc3302aa9bc6d1e (patch)
treea53a442b47c56b0305214eb9c539123e9de45bf4 /scripts
parentc80c4ededbad6a11e9731ae5e118f7cfd9138f67 (diff)
parent5085e294875c17ab5b0a6275f35b4a41eda3b158 (diff)
downloadPROJ-4ecb0abb8c3d3f5efcdd79643bc3302aa9bc6d1e.tar.gz
PROJ-4ecb0abb8c3d3f5efcdd79643bc3302aa9bc6d1e.zip
Merge pull request #3028 from rouault/epsg_10_051
Database: update to EPSG 10.051
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_db.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build_db.py b/scripts/build_db.py
index 263756c9..e221c057 100755
--- a/scripts/build_db.py
+++ b/scripts/build_db.py
@@ -432,6 +432,10 @@ def fill_compound_crs(proj_db_cursor):
proj_db_cursor.execute("SELECT ?, coord_ref_sys_code, coord_ref_sys_name, NULL, ?, cmpd_horizcrs_code, ?, cmpd_vertcrs_code, deprecated FROM epsg.epsg_coordinatereferencesystem WHERE coord_ref_sys_kind IN ('compound') AND cmpd_horizcrs_code NOT IN (SELECT coord_ref_sys_code FROM epsg.epsg_coordinatereferencesystem WHERE coord_ref_sys_kind = 'engineering')", (EPSG_AUTHORITY, EPSG_AUTHORITY, EPSG_AUTHORITY))
for auth_name, code, name, description, horiz_auth_name, horiz_code, vert_auth_name, vert_code, deprecated in proj_db_cursor.fetchall():
try:
+ # FIXME: dummy test record of EPSG 10.051 that should be removed in later versoins
+ if code == 9912 and name == 'test':
+ print('Skip EPSG:9912 test record')
+ continue
proj_db_cursor.execute("INSERT INTO compound_crs VALUES (?,?,?,?,?,?,?,?,?)", (auth_name, code, name, description, horiz_auth_name, horiz_code, vert_auth_name, vert_code, deprecated))
except sqlite3.IntegrityError as e:
print(e)