Skip to content

Commit

Permalink
proj.h: add PROJ_ERR_COORD_TRANSFM_NO_CONVERGENCE error code
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 3, 2024
1 parent b302a91 commit 5ebe855
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/proj.h
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ PJ_COORD PROJ_DLL proj_geod(const PJ *P, PJ_COORD a, PJ_COORD b);
#define PROJ_ERR_COORD_TRANSFM_GRID_AT_NODATA \
(PROJ_ERR_COORD_TRANSFM + \
5) /* point to transform falls in a grid cell that evaluates to nodata */
#define PROJ_ERR_COORD_TRANSFM_NO_CONVERGENCE \
(PROJ_ERR_COORD_TRANSFM + 6) /* iterative convergence method fail */

/** Other type of errors */
#define PROJ_ERR_OTHER 4096
Expand Down
2 changes: 2 additions & 0 deletions src/strerrno.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ static const struct {
{PROJ_ERR_COORD_TRANSFM_GRID_AT_NODATA,
_("Coordinate to transform falls into a grid cell that evaluates to "
"nodata")},
{PROJ_ERR_COORD_TRANSFM_NO_CONVERGENCE,
_("Iterative method fails to converge on coordinate to transform")},
{PROJ_ERR_OTHER_API_MISUSE, _("API misuse")},
{PROJ_ERR_OTHER_NO_INVERSE_OP, _("No inverse operation")},
{PROJ_ERR_OTHER_NETWORK_ERROR,
Expand Down

0 comments on commit 5ebe855

Please sign in to comment.