Skip to content

Commit

Permalink
Add share/proj to the list of custom dirs that GDAL may consult (#1522)
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim authored and PaulWessel committed Sep 6, 2019
1 parent 7385b0e commit cd5b496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gmt_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -15094,7 +15094,7 @@ struct GMT_CTRL *gmt_begin (struct GMTAPI_CTRL *API, const char *session, unsign
if ((path2 = getenv ("LOCAL_PROJ_LIB")) != NULL) paths[local_count++] = path2;
if (!local_count) { /* If none of the above was provided, default to share/GDAL_DATA */
char dir[GMT_LEN256];
sprintf (dir, "%s/GDAL_DATA", API->GMT->session.SHAREDIR);
sprintf (dir, "%s/GDAL_DATA/n%s/proj", API->GMT->session.SHAREDIR, API->GMT->session.SHAREDIR);
if (access (dir, F_OK) == 0) { /* ... if it exists */
paths[0] = strdup(dir);
local_count = -1;
Expand Down

0 comments on commit cd5b496

Please sign in to comment.