Re: [gdal-dev] exceptions when calling proj_create_crs_to_crs() with noop

2023-08-19 Thread Even Rouault
Michael, You're not the only one to have reported such issue. Before https://github.com/OSGeo/PROJ/pull/3834 which will be in PROJ 9.3, this exception is expected. But even with current released versions, the exception is caught inside PROJ itself, before it reaches the caller of proj_create_

[gdal-dev] exceptions when calling proj_create_crs_to_crs() with noop

2023-08-19 Thread Michael Katz via gdal-dev
When I call PJ *p = proj_create_crs_to_crs(    PJ_DEFAULT_CTX,    "+proj=longlat +ellps=GRS80 +no_defs",    "+proj=longlat +datum=WGS84",    NULL ); It returns a valid projections with the srs "+proj=noop". However, I see that it throws four exceptions in the process, all like Exception thrown at