diff options
| author | jmckenna <jmckenna@gatewaygeomatics.com> | 2020-07-31 17:53:22 -0300 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-08-02 12:18:11 +0200 |
| commit | 6d6229ca7be13f8509889a502d9e6e5ce4cc7c46 (patch) | |
| tree | 20ebd82f8ade25d96a09733a4c9688fb398736a5 /scripts/build_db.py | |
| parent | 53abcb0425eecceea076ba29ea3f071f53156efa (diff) | |
| download | PROJ-6d6229ca7be13f8509889a502d9e6e5ce4cc7c46.tar.gz PROJ-6d6229ca7be13f8509889a502d9e6e5ce4cc7c46.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/build_db.py')
| -rwxr-xr-x | scripts/build_db.py | 5 |
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) |
