<div dir="ltr">Not exactly trying to answer your question, but I will point out that the setting is slightly dubious, since you can use any ellipsoid for any celestial body (although with results as deserved :-)). The important thing is the datum/reference frame, not really the ellipsoid: While classical 2D datums are closely tied to an ellipsoid, modern 3D reference frames are based on cartesian coordinates, and the ellipsoid is purely an afterthought, necessary only for conversion to "geo"graphical coordinates.<div><br></div><div>So while "most useful" for celestial bodies with a physical surface resembling the ellipsoid at hand, in reality you can use any ellipsoid for any body (although your latitudes, longitudes, and ellipsoidal heights may look counterintuitive if using a mal-fitting ellipsoid). So having a "celestialBody" property on an ellipsoid is a bit like attaching a brand name to a generic component (e.g. "a 'Volkswagen' M10 nut")</div><div><br></div><div>Thomas</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tir. 25. maj 2021 kl. 06.14 skrev Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</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 list,<br>
<br>
I'm wondering if there's any way in proj versions < 8.1 to determine<br>
(from the C api) whether two ellipsoid objects refer to the same<br>
celestial body?<br>
<br>
Ellipsoid::celestialBody() wasn't exposed to C api prior to 8.1, and<br>
that's the method used by proj internally in<br>
createOperationsGeodToGeod to determine whether two ellipsoids belong<br>
to the same body.<br>
<br>
Nyall<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>