Skip to content

Commit

Permalink
osr_proj_logger(): take into account PJ_LOG_WARNING added in PROJ 9.2 (
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 2, 2023
1 parent df9c728 commit 566ebf9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ogr/ogr_proj_p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ static void osr_proj_logger(void * /* user_data */, int level,
{
CPLError(CE_Failure, CPLE_AppDefined, "PROJ: %s", message);
}
#if PROJ_VERSION_MAJOR > 9 || \
(PROJ_VERSION_MAJOR == 9 && PROJ_VERSION_MINOR >= 2)
else if (level == PJ_LOG_WARNING)
{
CPLError(CE_Warning, CPLE_AppDefined, "PROJ: %s", message);
}
#endif
else if (level == PJ_LOG_DEBUG)
{
CPLDebug("PROJ", "%s", message);
Expand Down

0 comments on commit 566ebf9

Please sign in to comment.