Skip to content

Commit 723e374

Browse files
CHG: declare PROJ_LIB if not found
1 parent e0585ac commit 723e374

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/m/modules/CoordTransform.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
whatproj=what('share/proj');
3838
if ~isempty(whatproj) && isdir(whatproj.path)
3939
setenv('PROJ_LIB', whatproj.path);
40+
elseif exist([issmdir() 'externalpackages/proj/install/share/proj/'], 'dir')
41+
setenv('PROJ_LIB', [issmdir() 'externalpackages/proj/install/share/proj/']);
4042
end
4143
setenv('DYLD_LIBRARY_PATH',[issmdir() '/externalpackages/proj/install/lib']);
4244

0 commit comments

Comments
 (0)