diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-01-23 19:04:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-23 19:04:31 +0100 |
| commit | 1ca02b5659bced7036f345803a1c981c5ced9690 (patch) | |
| tree | 6a49b1132015c17cb5caae47ac9235240bfd0b12 /scripts | |
| parent | ef20438a3af9a507806eefdeae69ce0914847c70 (diff) | |
| parent | 00dd98457af1f32e7bb2b9677f6319f72fcfacf9 (diff) | |
| download | PROJ-1ca02b5659bced7036f345803a1c981c5ced9690.tar.gz PROJ-1ca02b5659bced7036f345803a1c981c5ced9690.zip | |
Merge pull request #1869 from rouault/update_to_epsg_9_8_6
Database: update to EPSG v9.8.6
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build_db.py | 8 | ||||
| -rwxr-xr-x | scripts/build_db_create_ignf_from_xml.py | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/scripts/build_db.py b/scripts/build_db.py index 05f9a9a9..c2203ecf 100755 --- a/scripts/build_db.py +++ b/scripts/build_db.py @@ -395,8 +395,12 @@ def fill_grid_transformation(proj_db_cursor): grid2_param_code = param_code[1] grid2_param_name = param_name[1] grid2_value = param_value[1] - elif method_code == 1071: # Vertical Offset by Grid Interpolation (NZLVD) - assert param_code[1] == 1048, param_code[1] + # 1071: Vertical Offset by Grid Interpolation (NZLVD) + # 1080: Vertical Offset by Grid Interpolation (BEV AT) + # 1081: Geographic3D to GravityRelatedHeight (BEV AT) + # 1084: Vertical Offset by Grid Interpolation (gtx) + elif method_code in (1071, 1080, 1081, 1084) 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 else: diff --git a/scripts/build_db_create_ignf_from_xml.py b/scripts/build_db_create_ignf_from_xml.py index 7d679d39..f39f8d81 100755 --- a/scripts/build_db_create_ignf_from_xml.py +++ b/scripts/build_db_create_ignf_from_xml.py @@ -1096,8 +1096,8 @@ for grid in setVerticalGrids: VALUES ('%s', -- as referenced by the IGNF registry '%s', 'GTX', - 'vgridshift', - 1, + 'geoid_like', + 0, 'proj-datumgrid-europe', NULL, NULL, NULL, NULL);""" % (original_grid_name, proj_grid_name)) |
