<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
</div>
Hello everyone,
<div><br>
</div>
<div>I am the developer of an app which, among other things, receives WGS84 coordinates from a GNSS and which must place the user's position on a map.</div>
<div>This plan is expressed (for example) in CC49, and uses a Raf18 correction grid.</div>
<div><br>
</div>
<div>After downloading the grids with the projsync tool, the altimetric correction works (I didn't have the grids before).</div>
<div><br>
</div>
<div>Here is how I use proj, followed by proj_trans commands:</div>
<div class="elementToProof">
<table cellspacing="0" cellpadding="1" data-rooster-table-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"keepCellShade":false}" style="border-collapse: collapse; box-sizing: border-box; height: 46px;">
<tbody>
<tr>
<td style="width: 981px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: transparent; box-sizing: border-box; height: 45px; word-break: break-word; white-space: normal;" scope="">
<span style="font-size: 14pt; background-color: rgb(255, 255, 255); display: inline !important; font-family: monospace;">PJ* pj = proj_create_crs_to_crs(m_projCtx, "epsg:4326", "epsg:3949+5720", nullptr);</span><br>
</td>
</tr>
</tbody>
</table>
</div>
<div class="elementToProof"><br>
</div>
<div>I am now trying to do the same for a project in Germany. For the planimetry I used the code epsg:4647.</div>
<div>To add the vertical correction, my clients seem to use "DHHN2016". After a search on espg.io I find the corresponding epsg code epsg:7837.</div>
<div><br>
</div>
Unfortunately that doesn't work. After searching with projinfo, code 5720 gives a string Proj with the name of a grid file, but code 7837 does not:
<div class="elementToProof"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<table cellspacing="0" cellpadding="1" data-rooster-table-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"keepCellShade":false}" style="border-collapse: collapse;">
<tbody>
<tr>
<td style="width: 120px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: transparent;" scope="">
<pre style="margin:0px;list-style:none;font-size:1.2em;color:rgb(51, 51, 51);text-align:left;background-color:rgb(255, 255, 255)">projinfo epsg:5720
PROJ.4 string:
+geoidgrids=fr_ign_RAF18.tif +vunits=m +no_defs +type=crs</pre>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<table cellspacing="0" cellpadding="1" data-rooster-table-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"keepCellShade":false}" style="border-collapse: collapse;">
<tbody>
<tr>
<td style="width: 120px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: transparent;" scope="">
<pre style="margin:0px;list-style:none;font-size:1.2em;color:rgb(51, 51, 51);text-align:left;background-color:rgb(255, 255, 255)">projinfo epsg:7837
PROJ.4 string:
+vunits=m +no_defs +type=crs</pre>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
So I said to myself that I had to modify the Proj string to add the name of the Grid file. In the doc, there is mention of ini files, in which you can modify the string with the keyword +init. So I created a file with the following line:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<table cellspacing="0" cellpadding="1" data-rooster-table-info="{"topBorderColor":"#ABABAB","bottomBorderColor":"#ABABAB","verticalBorderColor":"#ABABAB","hasHeaderRow":false,"hasFirstColumn":false,"hasBandedRows":false,"hasBandedColumns":false,"bgColorEven":null,"bgColorOdd":"#ABABAB20","headerRowColor":"#ABABAB","tableBorderFormat":0,"keepCellShade":false}" style="border-collapse: collapse;">
<tbody>
<tr>
<td style="width: 120px; border-width: 1px; border-style: solid; border-color: rgb(171, 171, 171); background-color: transparent;" scope="">
<pre style="margin:0px;list-style:none;font-size:1.2em;color:rgb(51, 51, 51);text-align:left;background-color:rgb(255, 255, 255)">+init=epsg:7837 +geoidgrids=monfichier.tiff</pre>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I haven't seen any effect. And projinfos didn't add this line in the Proj string.
<div><br>
</div>
<div>If a good soul could give me some clues... Eventually we are looking for a subcontractor/teacher to help us on this part...</div>
<div><br>
</div>
Sincerely, Thomas C.<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0px; margin-bottom:0px; margin-top:0; margin-bottom:0"><span style="color:rgb(117,117,117); font-family:sans-serif; font-size:13px">Thomas Corvé</span><br>
</p>
<p style="margin-top:0px; margin-bottom:0px; margin-top:0; margin-bottom:0"><span style="color:rgb(117,117,117); font-family:sans-serif; font-size:13px">R&D Lead </span><span style="color:rgb(117,117,117); font-family:sans-serif; font-size:13px">Engineer</span><br>
</p>
<p style="margin-top:0px; margin-bottom:0px; margin-top:0; margin-bottom:0"></p>
<br>
<p style="margin-top:0px; margin-bottom:0px"></p>
</div>
</div>
</div>
</div>
</body>
</html>