diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2017-09-25 10:08:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-25 10:08:15 +0200 |
| commit | 03750c1961d2978773ac0b4a0423b1cdcc2c6453 (patch) | |
| tree | 95d3b3ca09850e8bcf99ef891a7da8a5abf68996 /src/PJ_hgridshift.c | |
| parent | 7db3acd2df38508e107209c912ac0b5ce2663f9c (diff) | |
| parent | 6fb79f304faec4d036ea46f19aa197e8cc85fe2e (diff) | |
| download | PROJ-03750c1961d2978773ac0b4a0423b1cdcc2c6453.tar.gz PROJ-03750c1961d2978773ac0b4a0423b1cdcc2c6453.zip | |
Merge pull request #570 from kbevers/api-streamlining
Streamlining the proj.h API
Diffstat (limited to 'src/PJ_hgridshift.c')
| -rw-r--r-- | src/PJ_hgridshift.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PJ_hgridshift.c b/src/PJ_hgridshift.c index 674b4da8..4ee3fd42 100644 --- a/src/PJ_hgridshift.c +++ b/src/PJ_hgridshift.c @@ -110,18 +110,18 @@ int pj_hgridshift_selftest (void) { double dist; /* fail on purpose: +grids parameter is mandatory*/ - P = proj_create(0, "+proj=hgridshift"); + P = proj_create(PJ_DEFAULT_CTX, "+proj=hgridshift"); if (0!=P) return 99; /* fail on purpose: open non-existing grid */ - P = proj_create(0, "+proj=hgridshift +grids=nonexistinggrid.gsb"); + P = proj_create(PJ_DEFAULT_CTX, "+proj=hgridshift +grids=nonexistinggrid.gsb"); if (0!=P) return 999; /* Failure most likely means the grid is missing */ - P = proj_create (0, "+proj=hgridshift +grids=nzgd2kgrid0005.gsb +ellps=GRS80"); + P = proj_create(PJ_DEFAULT_CTX, "+proj=hgridshift +grids=nzgd2kgrid0005.gsb +ellps=GRS80"); if (0==P) return 10; |
