Skip to content

Fix proj lib develop

Cédric Traizet requested to merge fix_proj_lib_develop into develop

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)

Note : this branch is already merged in the release-7.1 branch.

Copyright

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

Edited by Cédric Traizet

Merge request reports

Loading