<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi all,
<div><br>
</div>
<div>I need to migrate my old PROJ.4 C++ codes to PROJ-7.1.1 and I'm a bit stuck with the conversions geodetic <-> geographic coordinates (on the same datum). The only doc I could find is this single line but I haven't been able to deal with it:</div>
<div><br>
</div>
<div>
<table class="docutils align-default" style="font-size: 16px; box-sizing: border-box; border-collapse: collapse; border-spacing: 0px; margin-bottom: 24px; empty-cells: show; border: 1px solid rgb(225, 228, 229); caret-color: rgb(64, 64, 64); color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif;">
<tbody style="box-sizing: border-box;">
<tr class="row-odd" style="box-sizing: border-box;">
<td style="box-sizing: border-box; vertical-align: middle; font-size: 14.399999618530273px; margin: 0px; overflow: visible; padding: 8px 16px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(225, 228, 229); border-left-width: 0px; border-left-style: solid; border-left-color: rgb(225, 228, 229);">
<p style="box-sizing: border-box; line-height: 1rem; font-size: 0.9rem; margin-right: 0px; margin-left: 0px;">
pj_latlong_from_proj</p>
</td>
<td style="box-sizing: border-box; vertical-align: middle; font-size: 14.399999618530273px; margin: 0px; overflow: visible; padding: 8px 16px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(225, 228, 229); border-left-width: 1px; border-left-style: solid; border-left-color: rgb(225, 228, 229);">
<p style="box-sizing: border-box; line-height: 1rem; font-size: 0.9rem; margin-right: 0px; margin-left: 0px;">
<em style="box-sizing: border-box;">No direct equivalent</em>, but can be accomplished by chaining <a class="reference internal" href="https://proj.org/development/reference/functions.html#c.proj_create" title="proj_create" style="box-sizing: border-box; color: rgb(155, 89, 182); text-decoration: none; cursor: pointer;"><code class="xref c c-func docutils literal notranslate" style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 10.800000190734863px; white-space: nowrap; max-width: 100%; background-color: rgb(255, 255, 255); border: 1px solid rgb(225, 228, 229); padding: 2px 5px; color: rgb(64, 64, 64); overflow-x: auto; font-weight: 700;"><span class="pre" style="box-sizing: border-box;">proj_create()</span></code></a>, <code class="xref c c-func docutils literal notranslate" style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 10.800000190734863px; white-space: nowrap; max-width: 100%; background-color: rgb(255, 255, 255); border: 1px solid rgb(225, 228, 229); padding: 2px 5px; overflow-x: auto; font-weight: 700;"><span class="pre" style="box-sizing: border-box;">proj_crs_get_horizontal_datum()</span></code> and<code class="xref c c-func docutils literal notranslate" style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 10.800000190734863px; white-space: nowrap; max-width: 100%; background-color: rgb(255, 255, 255); border: 1px solid rgb(225, 228, 229); padding: 2px 5px; overflow-x: auto; font-weight: 700;"><span class="pre" style="box-sizing: border-box;">proj_create_geographic_crs_from_datum()</span></code></p>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<div>Is there any example code that could help me?</div>
<div><br>
</div>
<div><br>
</div>
<div>Thank youu very much,</div>
<div><br>
</div>
<div>Nicolas Bellaiche</div>
</div>
</body>
</html>