[PROJ] Proj6 Docs

Paul Ramsey pramsey at cleverelephant.ca
Sat Feb 16 14:24:16 PST 2019



> On Feb 16, 2019, at 2:13 PM, Even Rouault <even.rouault at spatialys.com> wrote:
> 
>>> Perhaps I should since the above explanation are probably
>>> just an implementation detail for your use case ?
> 
> OK, fix just pushed.

This seems to get me there… now I’m disambiguating axes, hoorah (?)

> 
>> Yes, I’m only looking for source/target so I can figure out if I need to do
>> an axis swap before (or after) feeding the transformation. Is there a
>> decent way to stick a swap directing onto the end/start of the
>> transformation so I get it “for free” when I run proj_trans?
> 
> That would involve hand editing the pipeline.
> 
> proj_as_proj_string(ctx, P, PJ_PROJ_5, nullptr) will return a PROJ string that 
> generally begin with "+proj=pipeline" (not in your case with alternatives 
> though)
> 
> If just after that and before the first +step, you insert
> 
> +step +proj=axisswap +proj=axisswap +order=2,1

twice?

Unfortunately, running proj_as_proj_string() on my transform <https://gist.github.com/pramsey/22127622023e88cd415cd1524db0a285#file-proj-c-L19 <https://gist.github.com/pramsey/22127622023e88cd415cd1524db0a285#file-proj-c-L19>> results in 

  proj_as_proj_string: Object type not exportable to PROJ

So this route to swapping may not be available to me.

P.

> (or you append it at the end if you want to reverse the order for the output)
> 
> And then you can recreate a PJ pipeline with that string with proj_create()
> 
> Or course if you do an axisswap just before/after another one, their effect 
> cancels each other, so you could optimize by removing it;



> 
> Even
> 
> -- 
> Spatialys - Geospatial professional services
> http://www.spatialys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20190216/595e4add/attachment-0001.html>


More information about the PROJ mailing list