diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-27 10:53:51 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-27 11:03:14 +0100 |
| commit | a4d389c37529bda488dc14fb4225e4dec40c0743 (patch) | |
| tree | 3531b98791f3aec23b382c62576be078f66f3fd8 /src/projections/lagrng.cpp | |
| parent | 81ec8c0b58d66333fccd3703dab62a11132a0331 (diff) | |
| download | PROJ-a4d389c37529bda488dc14fb4225e4dec40c0743.tar.gz PROJ-a4d389c37529bda488dc14fb4225e4dec40c0743.zip | |
Remove proj_def.dat (fixes #201)
Diffstat (limited to 'src/projections/lagrng.cpp')
| -rw-r--r-- | src/projections/lagrng.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/projections/lagrng.cpp b/src/projections/lagrng.cpp index 8c0150aa..a119ea31 100644 --- a/src/projections/lagrng.cpp +++ b/src/projections/lagrng.cpp @@ -76,7 +76,10 @@ PJ *PROJECTION(lagrng) { return pj_default_destructor (P, ENOMEM); P->opaque = Q; - Q->w = pj_param(P->ctx, P->params, "dW").f; + if( pj_param(P->ctx, P->params, "tW").i ) + Q->w = pj_param(P->ctx, P->params, "dW").f; + else + Q->w = 2; if (Q->w <= 0) return pj_default_destructor(P, PJD_ERR_W_OR_M_ZERO_OR_LESS); Q->hw = 0.5 * Q->w; |
