aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-08-03 11:40:09 +0200
committerGitHub <noreply@github.com>2020-08-03 11:40:09 +0200
commit14f868d922d34fc20ae5a31dff0e1af33ecde0b1 (patch)
tree20ebd82f8ade25d96a09733a4c9688fb398736a5 /scripts
parent53abcb0425eecceea076ba29ea3f071f53156efa (diff)
parent6d6229ca7be13f8509889a502d9e6e5ce4cc7c46 (diff)
downloadPROJ-14f868d922d34fc20ae5a31dff0e1af33ecde0b1.tar.gz
PROJ-14f868d922d34fc20ae5a31dff0e1af33ecde0b1.zip
Merge pull request #2309 from rouault/update_to_epsg_9_8_15
Database: update to EPSG v9.8.15 database
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_db.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build_db.py b/scripts/build_db.py
index df730319..709914d8 100755
--- a/scripts/build_db.py
+++ b/scripts/build_db.py
@@ -407,6 +407,10 @@ def fill_grid_transformation(proj_db_cursor):
assert param_code[1] == 1048, (code, method_code, param_code[1])
interpolation_crs_auth_name = EPSG_AUTHORITY
interpolation_crs_code = str(int(param_value[1])) # needed to avoid codes like XXXX.0
+ elif method_code == 1085: # Vertical Offset by Grid Interpolation (asc)
+ assert param_code[1] == 1048, (code, method_code, param_code[1])
+ interpolation_crs_auth_name = EPSG_AUTHORITY
+ interpolation_crs_code = str(int(param_value[1])) # needed to avoid codes like XXXX.0
else:
assert n_params == 1, (code, method_code)
@@ -827,6 +831,7 @@ for (name, sql) in proj_db_cursor.fetchall():
proj_db_cursor.execute("DROP VIEW " + name)
proj_db_cursor.execute(sql.replace('helmert_transformation_table', 'helmert_transformation'))
+proj_db_cursor = proj_db_conn.cursor()
proj_db_cursor.execute("ATTACH DATABASE '%s' AS epsg;" % epsg_tmp_db_filename)