<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 16, 2019, at 2:13 PM, Even Rouault <<a href="mailto:even.rouault@spatialys.com" class="">even.rouault@spatialys.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class=""><blockquote type="cite" class="">Perhaps I should since the above explanation are probably<br class="">just an implementation detail for your use case ?<br class=""></blockquote></blockquote><br class="">OK, fix just pushed.</div></div></blockquote><div><br class=""></div>This seems to get me there… now I’m disambiguating axes, hoorah (?)</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class=""><blockquote type="cite" class="">Yes, I’m only looking for source/target so I can figure out if I need to do<br class="">an axis swap before (or after) feeding the transformation. Is there a<br class="">decent way to stick a swap directing onto the end/start of the<br class="">transformation so I get it “for free” when I run proj_trans?<br class=""></blockquote><br class="">That would involve hand editing the pipeline.<br class=""><br class="">proj_as_proj_string(ctx, P, PJ_PROJ_5, nullptr) will return a PROJ string that <br class="">generally begin with "+proj=pipeline" (not in your case with alternatives <br class="">though)<br class=""><br class="">If just after that and before the first +step, you insert<br class=""><br class="">+step +proj=axisswap +proj=axisswap +order=2,1<br class=""></div></div></blockquote><div><br class=""></div>twice?</div><div><br class=""></div><div>Unfortunately, running proj_as_proj_string() on my transform <<a href="https://gist.github.com/pramsey/22127622023e88cd415cd1524db0a285#file-proj-c-L19" class="">https://gist.github.com/pramsey/22127622023e88cd415cd1524db0a285#file-proj-c-L19</a>> results in </div><div><br class=""></div><div>  proj_as_proj_string: Object type not exportable to PROJ<br class=""><br class=""></div><div>So this route to swapping may not be available to me.</div><div><br class=""></div><div>P.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="">(or you append it at the end if you want to reverse the order for the output)<br class=""><br class="">And then you can recreate a PJ pipeline with that string with proj_create()<br class=""><br class="">Or course if you do an axisswap just before/after another one, their effect <br class="">cancels each other, so you could optimize by removing it;<br class=""></div></div></blockquote><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class=""><br class="">Even<br class=""><br class="">-- <br class="">Spatialys - Geospatial professional services<br class=""><a href="http://www.spatialys.com" class="">http://www.spatialys.com</a><br class=""></div></div></blockquote></div><br class=""></body></html>