Hello everyone,
First of all, thanks Paulo and the other for your help.
I've tried your solution and it works like you.
I downloaded the geoid here, from the swisstopo website:
https://www.swisstopo.admin.ch/fr/geoid-frThe zip file contains 4 geoids. I've used chgeo2004_htrans_LV95.agr (which allows to transform the height to LH02). Then I converted the .agr file to a .tif file in QGIS (EPSG2056).
Then I created a CS as you explained. Finally I have exactly the same result as you:
The point 7.977088 / 46.831100 / 1638.000 in WGS84 becomes 2641081.559 / 1186802.092 / 1587.950 in LV95 + LN02 (with Agisoft). At this point, the result between Agisoft and Reframe are actually the same
But after working in the canton of Vaud, I've see difference between Agisoft and Reframe (6mm in H).
So I've created a grid (1kmx1km) of points in the canton to see the divergence between Agisoft and Reframe (from coordinate 2495000/1145000 to 2560000/1189000, altitude always = 500m).
I have transformed these coordinates in WGS84 with Reframe, and the I have put them in Agisoft to transform them again in LV95/LH02. Then I've calculated the dH (LH02) between the base coordinate and the coordinate from Agisoft.
My result can be seen in the attachment. The plot shows the delta H (dH in
mm) between the result from Agisoft and Reframe.
The min/max dH is -62mm/13mm.
Do you have any idea why I had this divergence between Agisoft and Reframe? In my opinion there should be almost no difference.
PS:
In the attachment:
grid1x1VD_MN95.txt = base coordinate (grid of 1x1km in MN95)
grid1xVD_MN95_2_WGS84_wReframe.txt = coordinate transformed with reframe from MN95/LH02 ->WGS84
grid1xVD_WGS84_2_MN95_wAgisoft.txt = coordinate retransformed with Agisoft from WGS84->MN95/LH02