aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorjmckenna <jmckenna@gatewaygeomatics.com>2020-07-31 17:53:22 -0300
committerEven Rouault <even.rouault@spatialys.com>2020-08-03 12:03:24 +0200
commit58b69a9fdfbc8b4798c66f34ddbf0e73ccee271d (patch)
treeffa5c0d746c1a64204940aba5bbe71472cb7c8c0 /scripts
parent16a0b9ecc397d659e1fd27a4788095d303cab289 (diff)
downloadPROJ-58b69a9fdfbc8b4798c66f34ddbf0e73ccee271d.tar.gz
PROJ-58b69a9fdfbc8b4798c66f34ddbf0e73ccee271d.zip
Database: update to EPSG v9.8.15 database
Co-authored-by: jmckenna <jmckenna@gatewaygeomatics.com> Co-authored-by: Javier Jimenez Shaw <j1@jimenezshaw.com> Co-authored-by: Even Rouault <even.rouault@spatialys.com>
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)