Skip to content

HELP with importing DTED in earth file for AFSIM #2436

Answered by gwaldron
nixongr14 asked this question in Support Q&A
Discussion options

You must be logged in to vote

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> property.

   <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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nixongr14
Comment options

@XenonofArcticus
Comment options

Answer selected by nixongr14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants