diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-01-31 10:56:11 +0100 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-01-31 10:56:11 +0100 |
| commit | e979bce36ccd2bc52cabc0b1192bc0f8d4ed6f33 (patch) | |
| tree | d085407ddc842f25142b48c42e1e0ad978a2ea44 /src/PJ_pipeline.c | |
| parent | b6c3d16dae36ed2dfd09e231c5171482553ff2d7 (diff) | |
| download | PROJ-e979bce36ccd2bc52cabc0b1192bc0f8d4ed6f33.tar.gz PROJ-e979bce36ccd2bc52cabc0b1192bc0f8d4ed6f33.zip | |
Add pj_has_inverse().
With the introduction of the "inverted" flag on PJ objects
you can no longer rely on checking that the inv, inv3d and inv4d
functions are available on said PJ object. The function is used
internally a few places and otherwise exposed in proj_api.h to
ensure that users of the old programming interface can safely
check if an operation has an inverse.
Diffstat (limited to 'src/PJ_pipeline.c')
| -rw-r--r-- | src/PJ_pipeline.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PJ_pipeline.c b/src/PJ_pipeline.c index befc8557..2f904ab1 100644 --- a/src/PJ_pipeline.c +++ b/src/PJ_pipeline.c @@ -454,8 +454,7 @@ PJ *OPERATION(pipeline,0) { /* determine if an inverse operation is possible */ for (i = 1; i <= nsteps; i++) { PJ *Q = P->opaque->pipeline[i]; - if ( ( Q->inverted && (Q->fwd || Q->fwd3d || Q->fwd4d) ) || - ( Q->inv || Q->inv3d || Q->inv4d) ) { + if ( pj_has_inverse(Q) ) { continue; } else { P->inv = 0; |
