<div dir="ltr">Torsten, <div><br></div><div>I believe you will find the answer over at <a href="https://proj.org/development/quickstart.html">https://proj.org/development/quickstart.html</a></div><div><br></div><div>Where you a.o. will find this example:</div><div><br></div><div>    b = proj_trans(P, PJ_FWD, a);<br></div><div><br></div><div>/Thomas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tor. 12. maj 2022 kl. 12.07 skrev Torsten Martinsen via PROJ <<a href="mailto:proj@lists.osgeo.org">proj@lists.osgeo.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I have some code (written by a previous coworker) that uses the functions pj_ctx_alloc(), pj_init_plus_ctx(), and pj_fwd(). These have been deprecated for some time and were removed in PROJ 8.<br>
<br>
I have searched the documentation etc., and while it is quite simple to figure out the current equivalents for the two first functions, I cannot figure out the replacement for pj_fwd().<br>
<br>
For reference, the code in question is in essence:<br>
<br>
void projection::forward(double& x, double&y) const<br>
{<br>
   projUV p;<br>
   p.u = x * geo::deg_to_rad;<br>
   p.v = y * geo::deg_to_rad;<br>
   p = pj_fwd(p, proj_);<br>
   x = p.u * geo::rad_to_deg;<br>
   y = p.v * geo::rad_to_deg;<br>
}<br>
<br>
where 'proj_' is returned from pj_init_plus_ctx().<br>
<br>
Regards,<br>
Torsten Martinsen<br>
_______________________________________________<br>
PROJ mailing list<br>
<a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a><br>
</blockquote></div>