-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertical transform failed #2074
Comments
Hum, non ANSI characters in the path. I'm not sure PROJ is ready for that as it uses the ANSI Windows API. In any case this is a PROJ issue. Should be filed at https://github.com/OSGeo/PROJ/issues |
Hello @rouault and thank you for your quick response. |
I'd perfer not doing that in GDAL, but rahter that PROJ does the right thing by default... |
GDAL have a flag for that - GDAL_FILENAME_IS_UTF8. |
I'm part of the PROJ team as well :-) I'm not completely of the appropriate solution on PROJ side: perhaps indeed a PROJ_FILENAME_IS_UTF8 that we could make the default. But from a pure engineering point of view, as PROJ_LIB is a PROJ variable, that should be up to PROJ to have support for Unicode paths. Not GDAL trying to workaround it. And pj_ctx_set_fileapi is in the obsolete proj_api.h that GDAL 3 no longer uses. There's no direct equivalent in PROJ 6 proj.h API |
Ok @rouault ,I opened the issue in PROJ: Thanks ! |
Expected behavior and actual behavior.
GDAL (probably proj4) failed to read PROJ_LIB environment variable when the file path encoding
is different from the system local
Steps to reproduce the problem.
set the PROJ_LIB environment variable to something different from your current local (for example c:\temp\档案文件\proj )
add a egm96_15.gtx file to the above directory
//source or destination used in WKT that contained the Vertical Datum egm96_15.gtx
OGRCoordinateTransformation* p =OGRCreateCoordinateTransformation(source,dest);
p>Transform(1,X,Y,Z) //failed !
Operating system
Windows 10
GDAL version and provenance
GDAL 2.2.2 proj4 4.9.3
The text was updated successfully, but these errors were encountered: