-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dem size is not computed correctly for extraterrestrial celestial bodies #2881
Comments
A workaround is to use the |
The Dem::Load function currently calls |
the |
current console output with this change:
|
The error is thrown by this particular call in which is implemented here in GDAL : https://github.com/OSGeo/gdal/blob/4a5f171a2beb6c29fd5dd8b4044cd2539fce6b22/ogr/ogrct.cpp#L1514-L1529 |
This problem has been addressed here : gazebosim/gz-sim#1556 |
This issue has been fixed in Gazebo garden and needs to be backported to gazebo classic. |
While debugging #2828 (a hard failure of gazebo when loading certain Dem files), I noticed the following error message from the reported
UNIT_Dem_TEST
failure:Based on the first error message "Source and target ellipsoid do not belong to the same celestial body" and noting that EPSG:4326 refers to the WGS84 model of earth and that the
PROJCRS
string for dem_neg.tif used in this test appears to refer to the moon, there are clearly issues with the coordinate transformations used in ourDem
class.The following is the output of
gdalinfo dem_neg.tif -mm
:Based on its 33x33 image size and
Pixel Size = (2.426609848484849,-2.426609848484849)
, I would expect the world height and width of thisDem
to be33 * 2.426609848484849 ~= 80.078125
, but Dem_TEST expects293.51068
for the height and width.The text was updated successfully, but these errors were encountered: