diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-31 13:41:00 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-31 13:41:00 +0100 |
| commit | 5b5c788bedfd3aabe9902bf6a99bfcdc8e7eadb8 (patch) | |
| tree | ae9706659329340e8fe8150ed5a09cec4506185f /src/iso19111/c_api.cpp | |
| parent | 2d27a81e8e7b2fcb0ff2b2e0b06f137df191b1b6 (diff) | |
| download | PROJ-5b5c788bedfd3aabe9902bf6a99bfcdc8e7eadb8.tar.gz PROJ-5b5c788bedfd3aabe9902bf6a99bfcdc8e7eadb8.zip | |
pj_obj_create(): avoid warning to be emitted when expot to PROJ string is not possible
Diffstat (limited to 'src/iso19111/c_api.cpp')
| -rw-r--r-- | src/iso19111/c_api.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/iso19111/c_api.cpp b/src/iso19111/c_api.cpp index 7f51e613..175266d7 100644 --- a/src/iso19111/c_api.cpp +++ b/src/iso19111/c_api.cpp @@ -158,8 +158,9 @@ static PJ *pj_obj_create(PJ_CONTEXT *ctx, const IdentifiedObjectNNPtr &objIn) { pj->iso_obj = objIn; return pj; } - } catch (const std::exception &e) { - proj_log_debug(ctx, __FUNCTION__, e.what()); + } catch (const std::exception &) { + // Silence, since we may not always be able to export as a + // PROJ string. } } auto pj = new PJ(); |
