Skip to content

Export PROJ_LIB in env scripts

Cédric Traizet requested to merge export_proj_lib_path into release-7.1

Summary

When using GDAL 3 we should set the PROJ_LIB to xdk/share/proj. Otherwise we get errors like :

2020-02-12 17:56:47 (INFO) EdgeExtraction: Default RAM limit for OTB is 256 MB
2020-02-12 17:56:47 (INFO) EdgeExtraction: GDAL maximum cache size is 794 MB
2020-02-12 17:56:47 (INFO) EdgeExtraction: OTB will use at most 12 threads
ERROR 1: PROJ: pj_obj_create: Cannot find proj.db
ERROR 1: PROJ: createGeodeticReferenceFrame: Cannot find proj.db
ERROR 1: PROJ: proj_as_wkt: Cannot find proj.db
ERROR 1: PROJ: createGeodeticReferenceFrame: Cannot find proj.db
ERROR 1: PROJ: pj_obj_create: Cannot find proj.db
ERROR 1: PROJ: proj_as_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db
ERROR 1: PROJ: pj_obj_create: Cannot find proj.db
ERROR 1: PROJ: proj_as_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_as_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_wkt: Cannot find proj.db
ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db
2020-02-12 17:56:47 (INFO): Estimated memory for full processing: 38.8794MB (avail.: 256 MB), optimal image partitioning: 1 blocks
2020-02-12 17:56:47 (INFO): File /tmp/out.tif will be written in 1 blocks of 1000x1000 pixels
Writing /tmp/out.tif...: 100% [**************************************************] (0s)


Copyright

The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.


Check before merging:

  • All discussions are resolved
  • At least 2 👍 votes from core developers, no 👎 vote.
  • The feature branch is (reasonably) up-to-date with the base branch
  • Dashboard is green
  • Copyright owner has signed the ORFEO ToolBox Contributor License Agreement
  • Optionally, run git diff develop... -U0 --no-color | clang-format-diff.py -p1 -i on latest changes and commit

Merge request reports