Skip to content

Commit

Permalink
Map EPSG method 'Vertical Offset by Grid Interpolation (asc)' to +pro…
Browse files Browse the repository at this point in the history
…j=vgridshift

Fixes #4342

Note that currently none of the .asc grids are in PROJ-data. Most of the
ones registered in the EPSG dataset are for EVRF2019 heights and are
managed by Euref. My past attempts of getting an open data license for
the grid from Euref have not been successful.
  • Loading branch information
rouault committed Dec 9, 2024
1 parent a33372b commit cf2ee49
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/iso19111/operation/parammappings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,12 @@ const struct MethodNameCode methodNameCodesList[] = {
METHOD_NAME_CODE(NADCON5_3D),
METHOD_NAME_CODE(VERTCON),
METHOD_NAME_CODE(GEOCENTRIC_TRANSLATION_BY_GRID_INTERPOLATION_IGN),
METHOD_NAME_CODE(VERTICALGRID_NZLVD),
METHOD_NAME_CODE(VERTICALGRID_BEV_AT),
METHOD_NAME_CODE(VERTICALGRID_GTX),
METHOD_NAME_CODE(VERTICALGRID_ASC),
METHOD_NAME_CODE(VERTICALGRID_GTG),
METHOD_NAME_CODE(VERTICALGRID_PL_TXT),
// PointMotionOperation
METHOD_NAME_CODE(POINT_MOTION_BY_GRID_CANADA_NTV2_VEL),
};
Expand Down
2 changes: 1 addition & 1 deletion src/iso19111/operation/singleoperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,6 @@ bool Transformation::isGeographic3DToGravityRelatedHeight(
"1126", // Vertical change by geoid grid difference (NRCan)
"1127", // Geographic3D to Depth (gtg)
"1128", // Geog3D to Geog2D+Depth (gtg)
"1129", // Vertical Offset by Grid Interpolation (gtg)
"1135", // Geog3D to Geog2D+GravityRelatedHeight (NGS bin)
"9661", // Geographic3D to GravityRelatedHeight (EGM)
"9662", // Geographic3D to GravityRelatedHeight (Ausgeoid98)
Expand Down Expand Up @@ -2312,6 +2311,7 @@ static bool isRegularVerticalGridMethod(int methodEPSGCode,
return methodEPSGCode == EPSG_CODE_METHOD_VERTICALGRID_NZLVD ||
methodEPSGCode == EPSG_CODE_METHOD_VERTICALGRID_BEV_AT ||
methodEPSGCode == EPSG_CODE_METHOD_VERTICALGRID_GTX ||
methodEPSGCode == EPSG_CODE_METHOD_VERTICALGRID_ASC ||
methodEPSGCode == EPSG_CODE_METHOD_VERTICALGRID_GTG ||
methodEPSGCode == EPSG_CODE_METHOD_VERTICALGRID_PL_TXT;
}
Expand Down
4 changes: 4 additions & 0 deletions src/proj_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,10 @@
#define EPSG_NAME_METHOD_VERTICALGRID_GTX \
"Vertical Offset by Grid Interpolation (gtx)"

#define EPSG_CODE_METHOD_VERTICALGRID_ASC 1085
#define EPSG_NAME_METHOD_VERTICALGRID_ASC \
"Vertical Offset by Grid Interpolation (asc)"

#define EPSG_CODE_METHOD_VERTICALGRID_GTG 1129
#define EPSG_NAME_METHOD_VERTICALGRID_GTG \
"Vertical Offset by Grid Interpolation (gtg)"
Expand Down

0 comments on commit cf2ee49

Please sign in to comment.