<div dir="ltr"><div>Info on why things are this way: <a href="https://proj.org/faq.html#why-is-the-axis-ordering-in-proj-not-consistent">https://proj.org/faq.html#why-is-the-axis-ordering-in-proj-not-consistent</a></div><div><br></div><div>To find the axis order information, you need to inspect the CRS to determine the axis order:</div><div><a href="https://pyproj4.github.io/pyproj/stable/examples.html">https://pyproj4.github.io/pyproj/stable/examples.html</a></div><div><br></div><div>The PROJ methods needed to inspect the coordinate system of the CRS include:</div><div>proj_crs_get_coordinate_system</div><div>proj_cs_get_axis_count</div><div>proj_cs_get_axis_info</div><div><br></div><div>If you want the old behavior, you can use proj_normalize_for_visualization so it is in the x,y,z order.<br></div><div></div><div><br></div><div>Hope this helps,</div><div>Alan<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 10, 2021 at 8:08 AM Matthew Woehlke <<a href="mailto:mwoehlke.floss@gmail.com">mwoehlke.floss@gmail.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">I'm trying to convert between coordinate systems using <br>
proj_create_crs_to_crs and proj_trans.<br>
<br>
In PROJ 4, coordinates are always in x,y,z (easting, northing, altitude) <br>
order. I just stuff my coordinates in and read them back, possibly with <br>
some conversion between degrees and radians, and everything Just Works.<br>
<br>
If I try to do this in PROJ 5, it fails. As best as I can tell, lat-lon <br>
coordinate systems expect input, and provide output, as y, x, z.<br>
<br>
Given that all I know is the EPSG, how do I determine the proper order <br>
in which to provide my inputs and read my outputs?<br>
<br>
-- <br>
Matthew<br>
_______________________________________________<br>
PROJ mailing list<br>
<a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font style="font-family:arial,helvetica,sans-serif">Alan Snow</font><br></div></div></div></div></div></div></div></div>