diff options
Diffstat (limited to 'scripts/build_db.py')
| -rwxr-xr-x | scripts/build_db.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/build_db.py b/scripts/build_db.py index 709914d8..97d68f34 100755 --- a/scripts/build_db.py +++ b/scripts/build_db.py @@ -398,19 +398,19 @@ def fill_grid_transformation(proj_db_cursor): # 1071: Vertical Offset by Grid Interpolation (NZLVD) # 1080: Vertical Offset by Grid Interpolation (BEV AT) # 1081: Geographic3D to GravityRelatedHeight (BEV AT) + # 1083: Geog3D to Geog2D+Vertical (AUSGeoid v2) # 1084: Vertical Offset by Grid Interpolation (gtx) - elif method_code in (1071, 1080, 1081, 1084) and n_params == 2: + # 1085: Vertical Offset by Grid Interpolation (asc) + elif method_code in (1071, 1080, 1081, 1083, 1084, 1085) and n_params == 2: 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_name == 'Geocentric translation by Grid Interpolation (IGN)': - 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) + # 1087: Geocentric translation by Grid Interpolation (IGN) + elif method_code in (1087, ) and n_params == 3: 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 + # ignoring parameter 2 Standard CT code else: assert n_params == 1, (code, method_code) @@ -888,6 +888,9 @@ for line in proj_db_conn.iterdump(): # f.write(("--- Non imported: " + str(row) + '\n').encode('UTF-8')) del files +# Content already in proj_db_table_defs.sql +os.unlink(os.path.join(sql_dir_name, 'celestial_body') + '.sql') + proj_db_conn = None epsg_db_conn = None |
