<div dir="ltr">Thanks, I'll check it out. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 9 Jul 2020 at 15:25, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:monospace;font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">Paul,</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">you could do that by building a pipeline</p>
<p style="margin:0px;text-indent:0px">( <a href="https://proj.org/operations/pipeline.html" target="_blank">https://proj.org/operations/pipeline.html</a> )</p>
<p style="margin:0px;text-indent:0px">chaining the tmerc projection with a axisswap operation</p>
<p style="margin:0px;text-indent:0px">( <a href="https://proj.org/operations/conversions/axisswap.html" target="_blank">https://proj.org/operations/conversions/axisswap.html</a> )</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Even</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">> Hi</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> I am working on a project to put GIS data into VR in Unity (see <a href="http://virgis.org" target="_blank">virgis.org</a></p>
<p style="margin:0px;text-indent:0px">> for more info - very early stages).</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> I am using Proj to convert Geospatial data into internal VR Space</p>
<p style="margin:0px;text-indent:0px">> coordinates for a model. I did this by defining a custom projection for the</p>
<p style="margin:0px;text-indent:0px">> internal model space ( of the form of "+proj=tmerc +datum=WGS84 +units=m</p>
<p style="margin:0px;text-indent:0px">> +no-defs +lat_0=53.316200583246534 +lon_0=-1.791218230167096" where the</p>
<p style="margin:0px;text-indent:0px">> lat_0 and lon_0 figures depend on the location of the model.).</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> This is working well in both directions.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> However - one constant and annoying fact is that whilst all Geospatial CRS</p>
<p style="margin:0px;text-indent:0px">> are "Z-up" i.e. altitude is the Z dimension, VR space is "Y-up". It is</p>
<p style="margin:0px;text-indent:0px">> a purely procedural thing to swap the axis but it is a constant</p>
<p style="margin:0px;text-indent:0px">> irritation and cause of failures!</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> The ideal solution would be if the Proj coordinate operation produced</p>
<p style="margin:0px;text-indent:0px">> coordinates in "eun" axis order! Would solve a lot of problems. I did try</p>
<p style="margin:0px;text-indent:0px">> this to see if it was possible but (not unsurprisingly) got an error.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Is there any way to do this? Or is it so far from the expected usage that</p>
<p style="margin:0px;text-indent:0px">> it is just not possible?</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Thanks in advanced for any and all comments.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div></blockquote></div>