HELP with importing DTED in earth file for AFSIM #2436
-
Hello all! So I'm working with a modeling and simulation tool called AFSIM. AFSIM can read in .earth files and update a map users can see during playbacks. Now I'd like to see my dted/terrain heights in also in my replays. Now one doesn't need to know much about AFSIM, expect that AFSIM currently excepts osgEarth version 2.7. Based on my research here is my earth file.
Can someone help me? What's the right way to make this file to visualize the dted and terrain height. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That's a pretty OLD version so memory is hazy. But two things: DTED data is expressed relative to the EGM96 geoid, so you need to tell osgEarth as much: <heightfield name="terrain" driver="gdal">
<vdatum>egm96</vdatum>
... Old versions of osgEarth used to support the loading of an entire directory of files, but we removed that because it was very problematic. The correct (and forward-compatible) approach instead is the create a GDAL VRT (using the gdalbuildvrt tool) and reference that in your <url>myterrain.vrt</url> Obviously I would recommend upgrading to a newer osgEarth if at all possible. There's a helpful guide here. Good luck. |
Beta Was this translation helpful? Give feedback.
That's a pretty OLD version so memory is hazy. But two things:
DTED data is expressed relative to the EGM96 geoid, so you need to tell osgEarth as much:
Old versions of osgEarth used to support the loading of an entire directory of files, but we removed that because it was very problematic. The correct (and forward-compatible) approach instead is the create a GDAL VRT (using the gdalbuildvrt tool) and reference that in your
<url>
property.Obviously I would recommend upgrading to a newer osgEarth if at all possible. There's a helpful guide here.
Good luck.