| 262 | |
| 263 | |
| 264 | static PJ_LP pipeline_reverse (PJ_XY xy, PJ *P) { |
| 265 | PJ_COORD point = {{0,0,0,0}}; |
| 266 | point.xy = xy; |
| 267 | auto pipeline = static_cast<struct Pipeline*>(P->opaque); |
| 268 | for( auto iterStep = pipeline->steps.rbegin(); |
| 269 | iterStep != pipeline->steps.rend(); ++iterStep ) |
| 270 | { |
| 271 | const auto& step = *iterStep; |
| 272 | if( !step.omit_inv ) |
| 273 | { |
| 274 | point = pj_approx_2D_trans (step.pj, PJ_INV, point); |
| 275 | if( point.xyzt.x == HUGE_VAL ) { |
| 276 | break; |
| 277 | } |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | return point.lp; |
| 282 | } |
| 283 | |
| 284 | |
| 285 |
nothing calls this directly
no test coverage detected