<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Andrew,</p>
<p>The error you get is related to the fact that you can't formally
transform coordinates between 2 vertical CRS, without specifying
the "horizontal" / geographic CRS into which you enter the long,
lat.</p>
<p>Here you, very likely, should combine them with EPSG:4312 "MGI"
which is the CRS into which the at_bev_GV_Hoehengrid_V1.tif grid
is registered to</p>
<p>So:<br>
</p>
<p>$ echo 46.642970 12.792060 2513.98 | PROJ_NETWORK=ON bin/cs2cs
-d 8 EPSG:4312+9274 EPSG:4312+5778<br>
46.64297000 12.79206000 2514.15224077<br>
</p>
<p>Note that I've specified a latitude, longitude order as EPSG:4312
is defined with axis in that order</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 27/05/2024 à 20:27, Andrew Kirmse
via PROJ a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAC9g3Suxt2VKGfDHJnHOEqhQmJQz29pBvatJLHB=SyY2AUXA3g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">I have some Lidar-derived lat/lng/elevation points
in Austria in <a href="https://epsg.io/9274"
moz-do-not-send="true">EPSG:9274</a> that I want to convert to
<a href="https://epsg.io/5778" moz-do-not-send="true">EPSG:5778</a>.
I gather this is done by applying the offsets from a particular
model called the "Höhengrid", which I found at <a
href="https://cdn.proj.org/" moz-do-not-send="true"
class="moz-txt-link-freetext">https://cdn.proj.org/</a>.
These points are locations and heights of mountains, and I want
to convert them to EPSG:5778 because that's what's used on the
BEV Austrian topographic maps.
<div><br>
</div>
<div>I get this error when I try to do the conversion:</div>
<div><br>
</div>
<div>echo 46.642970 12.792060 2513.98 | cs2cs +init=epsg:9274
+to +init=epsg:5778<br>
DeprecationWarning: PROJ_LIB environment variable is
deprecated, and will be removed in a future release. You are
encouraged to set PROJ_DATA instead.<br>
proj_crs_get_geodetic_crs: CRS has no geodetic CRS<br>
Rel. 9.3.1, December 1st, 2023<br>
<cs2cs>:<br>
cannot initialize transformation<br>
cause: Unknown error (code 4096)<br>
program abnormally terminated<br>
</div>
<div><br>
</div>
<div>What does "CRS has no geodetic CRS" mean, and how do I fix
it?</div>
<div><br>
</div>
<div>(Also, if anyone knows more about why these two different
EPSGs exist, I am curious. One is for maps and one is for
"scientific purposes" but I don't know what that means
in practice.)</div>
<div><br>
</div>
<div>---Andrew</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
PROJ mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PROJ@lists.osgeo.org">PROJ@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/proj">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>