<div dir="ltr"><div>With <b>proj_crs_get_coordinate_system</b> and <b>proj_cs_get_axis_info</b> you can get the needed info.</div><div>See the difference between CRS (coordinate reference system) and CS (coordinate system).<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 30 Jul 2024 at 16:10, Mladen Mijatovic <<a href="mailto:kapadokija@gmail.com">kapadokija@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"><div dir="ltr"><div>Hi Javier,</div><div><br></div><div>I am using a .NET wrapper around the Proj, called SharpProj. I am creating crs from a database, using <b>proj_create_from_database</b> with authority EPSG and coe 2193 as params. Next thing I try is to convert some positions using<b> proj_create_crs_to_crs_from_pj </b>with EPSG:2193 as source crs and EPSG:4326 as target crs. Next call is to <b>proj_trans</b> without forwarding and with<b> </b>and with coordinates [-41.302232653193769, 174.77951032151356] as lat, lon. The result is an array of 2, converted[0] = 799875.43712394813 and converted[1] = 400261.41900983331 From this array I need to know what to pick as Northing and what as Easting.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">уто, 30. јул 2024. у 14:37 Javier Jimenez Shaw <<a href="mailto:j1@jimenezshaw.com" target="_blank">j1@jimenezshaw.com</a>> је написао/ла:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Mladen,</div><div><br></div><div>In which context do you want to do that? python? C++? CLI? What are you doing later with that info (like calling cs2cs or anything else)?<br></div><div>If you just want to know for a few cases, <a href="https://spatialreference.org/ref/epsg/2193/" target="_blank">https://spatialreference.org/ref/epsg/2193/</a> is an easy reference. There is axis information.<br></div><div><br></div><div>Cheers<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 30 Jul 2024 at 14:11, Mladen Mijatovic via PROJ <<a href="mailto:proj@lists.osgeo.org" target="_blank">proj@lists.osgeo.org</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"><div dir="ltr"><div>Hi all,</div><div><br></div><div>Is there a way to identify if crs has an inverted axis? In most of the cases axes are Lat,Lon or E,N but I stumbled on one with axis N,E - EPSG:2193. In this case I need to invert coordinates before the transformation and I am not sure how to identify this situation in general. <br></div></div>
_______________________________________________<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>
</blockquote></div>
</blockquote></div>