<html>
 <head> 
  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 
 </head> 
 <body>
   Hello everyone.
  <br> 
  <br> Our team upgraded proj API from 4 to 6.
  <br> 
  <br> We noticed difference between the result when using projection in Switzerland (for instance EPSG:2056).
  <br> 
  <br> Here, I try to recap the difference between our implementation:
  <br> 
  <br> 
  <b>Initial implementation (PROJ 4):</b>
  <br> 
  <br> 
  <tt>// Input: x,y,z be coordinate expressed in EPSG:4978<br> </tt>
  <tt><tt><br> projPJ pj_in;<br> </tt>projPJ pj_out;<br> <br> pj_in = pj_init_plus("+init=epsg:4978");<br> pj_out = pj_init_plus("+init=epsg:2056");<br> <br> pj_transform(pj_in, pj_out, 1, 1, x, y, z);<br> <br> </tt>
  <b>Current implementation (PROJ 6)</b>
  <br> 
  <br> 
  <tt>// Input: PJ_COORD coord expressed in EPSG:4978</tt>
  <tt><br> </tt>
  <tt>PJ_CONTEXT* context = projContextCreate();</tt>
  <tt><br> </tt>
  <tt>PJ* p1 = proj_create_crs_to_crs(context, "EPSG:4978", "EPSG:2056", NULL);<br> PJ* proj = proj_normalize_for_visualization(context, </tt>
  <tt>p1</tt>
  <tt>);<br> coord = proj_trans(</tt>
  <tt><tt>proj </tt>, PJ_FWD, coord);<br> <br> </tt>---
  <br> 
  <br> 
  <tt>              </tt>
  <br> We noticed that the output using our current implementation yield the wrong result: there is an offset along the z-axis.
  <br> 
  <br> Are we doing something wrong?
  <br> 
  <br> Thank you very much.
  <br> 
  <br>   
  <div class="x-disclaimer-534644925">   
   <table style="font: 13px/16px Arial, Helvetica, sans-serif; height: 156px; width: 446px; color: black;" width="450"> 
    <tbody> 
     <tr> 
      <td style="border-bottom: 3px solid #f9b200; height: 60px; width: 442px; vertical-align: bottom;" colspan="2"> <p style="text-align: left;"><strong style="font-size: 15px;">Kilian Demeulemeester<em></em></strong><br>Software Developer - R&D</p> </td> 
     </tr> 
     <tr> 
      <td style="padding: 0px 0px; width: 168.367px; vertical-align: top;"> <p><a href="https://yellowscan-lidar.com"><img src="cid:x-disclaimer-534644925-0.png@bm-disclaimer" alt="logo_Yellowscan" width="168" height="41"></a></p> </td> 
      <td style="padding: 0px 0px; width: 274.633px; vertical-align: top;"> <p style="text-align: right;">1 Chemin de fescau<br>34980 Montferrier-Sur-Lez - France<br>Tel: +33 (0)4 11 93 14 06<br><a style="color: #e99500; text-decoration: none; font-size: 15px; font-weight: bold;" href="https://yellowscan-lidar.com"><span style="color: #e99500;">yellowscan-lidar.com</span></a></p> </td> 
     </tr> 
    </tbody> 
   </table>  
  </div>
 </body>
</html>