<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=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">Basic question but necessary for me :</div><div class=""><br class=""></div><div class="">We use PROJ Version 8.2.1</div><div class="">Exemple : I convert from Longitude=10 Latitude=70 from 4326 to UPS stereo North Pole (5041)</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">projinfo -s EPSG:4326 -t EPSG:5041 -o PROJ</span></div></div><div class="">Gives output :</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">+proj=pipeline</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  +step +proj=axisswap +order=2,1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  +step +proj=unitconvert +xy_in=deg +xy_out=rad</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  +step +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">        +ellps=WGS84</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">But</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">echo "10 70 0" | cs2cs </span>EPSG:4326 EPSG:5041</div></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class="">Gives output : <span style="font-family: Menlo; font-size: 11px;" class="">11976062.58</span><span class="Apple-tab-span" style="font-family: Menlo; font-size: 11px; white-space: pre;"> </span><span style="font-family: Menlo; font-size: 11px;" class="">-1630989.83 0.00</span></div><div class="">The good result given by EPSG.IO is  : <span style="font-family: Menlo; font-size: 11px;" class="">2389386.90</span><span class="Apple-tab-span" style="font-family: Menlo; font-size: 11px; white-space: pre;">  </span><span style="font-family: Menlo; font-size: 11px;" class="">-208322.83 0.00</span></div><div class="">I get the good result with : <span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class="">echo « 70 10 0" | cs2cs </span><span style="font-family: Menlo; font-size: 11px;" class="">EPSG:4326 EPSG:5041</span></div><div class=""><br class=""></div><div class="">So it seems that the syntax. <span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class="">cs2cs </span><span style="font-family: Menlo; font-size: 11px;" class="">EPSG:4326 EPSG:5041</span>  doesn’t apply the step axisswap </div><div class=""><br class=""></div><div class="">Can someone confirm this behavior ?</div><div class=""><br class=""></div><div class="">Second question : </div><div class="">In C++ API the proj_create_crs_to_crs() associated to  proj_normalize_for_visualization() allows to avoid this problem.</div><div class="">But we use also PROJ in shell scripts. It seems to me that some geodetic_crs expect lat-lon entry and some other Lon-lat.</div><div class="">Is there a way in the SQL database (proj.db) to find this information?</div><div class=""><br class=""></div><div class="">Thanks for any answer.</div><div class=""><br class=""></div><div class="">Alain</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></body></html>