<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 id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p></p>
<p dir="auto">Hello, I would like some precision about CRS conversions.</p>
<p dir="auto">I'm aware that there are some changes about vertical transformations with PROJ >= 9.1 as stated here :
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1170903012" data-permission-text="Title is private" data-url="https://github.com/OSGeo/PROJ/issues/3119" data-hovercard-type="pull_request" data-hovercard-url="/OSGeo/PROJ/pull/3119/hovercard" href="https://github.com/OSGeo/PROJ/pull/3119">
</a><a href="https://github.com/OSGeo/PROJ/pull/3119" class="OWAAutoLink" id="LPlnk868644">https://github.com/OSGeo/PROJ/pull/3119</a>
<br>
Or here : <a href="https://proj.org/en/9.4/apps/cs2cs.html#cmdoption-cs2cs-3d" rel="nofollow">
https://proj.org/en/9.4/apps/cs2cs.html#cmdoption-cs2cs-3d</a> "Starting with PROJ 9.1, both CRS need to be 3D for vertical transformation to possibly happen."</p>
<p dir="auto"><br>
I tested it and I recreated the behavior of pre 9.1 and post 9.1 versions :</p>
<p dir="auto">-PROJ 8.2.0 :<br>
echo 0 0 1000 | cs2cs +proj=longlat +datum=WGS84 +geoidgrids=/proj-build/data/for_tests/egm96_15.tif +vunits=m +no_defs +type=crs +to +proj=longlat +datum=WGS84 +no_defs +type=crs -f "%.14f"<br>
0.00000000000000 0.00000000000000 1017.16157913208008</p>
<p dir="auto">-PROJ 9.2.0<br>
echo 0 0 1000 | cs2cs +proj=longlat +datum=WGS84 +geoidgrids=/proj-build/data/for_tests/egm96_15.tif +vunits=m +no_defs +type=crs +to +proj=longlat +datum=WGS84 +no_defs +type=crs -f "%.14f"<br>
0.00000000000000 0.00000000000000 1000.00000000000000</p>
<p dir="auto"><br>
</p>
<p dir="auto">I would like to have some advice to get the past behavior, sometimes I need to do theses vertical transformations.<br>
I have found some tips here : <a href="https://github.com/OSGeo/PROJ/pull/3119#issuecomment-1069272183" class="OWAAutoLink">https://github.com/OSGeo/PROJ/pull/3119#issuecomment-1069272183</a> and here <a href="https://github.com/OSGeo/PROJ/pull/3119#issuecomment-1069272183" class="OWAAutoLink">https://github.com/OSGeo/PROJ/pull/3119#issuecomment-1069272183</a><br>
>From theses comments I understood that I need to promote theses CRS to 3D, more precisely the PJ_TYPE_GEOGRAPHIC_2D_CRS and PJ_TYPE_PROJECTED_CRS types.</p>
<p dir="auto">Did I understood the comments right? Are there any other cases (types) that I should take care the same way? Should I only look for the type of CRS or is there other information that I need to look for?<br>
My main goal is to get the past behavior.</p>
<br>
<p></p>
</div>
</body>
</html>