[gdal-dev] DTED Elevations with Java and gdal

Corrado, George P. George.Corrado at gd-ais.com
Tue Oct 19 13:33:53 EDT 2010


Hello,

Does anyone have a java example on how to get elevations from a .dt1 file.  My ultimate goal would be to take a .dt1, translate it to a png, and then feed the png into gdal to get elevations and coordinates.

I ran the gdal_translate on one of my .dt1 files and came up with this.  Note: this is actually DTED2 even though the file ext is dt1.  Not sure why that is, maybe because it's really old.

C:\jdk1.6.0_21\bin>gdal_translate -of PNG --config GDAL_CACHEMAX 30 C:\DTED2\DTED\E032\N34.DT1 C:\DTED2\DTED\E032\N34.pn
g
Input file size is 3601, 3601
Warning 6: PNG driver doesn't support data type Int16. Only eight bit (Byte) and sixteen bit (UInt16) bands supported. D
efaulting to Byte

0...10...20...30...40...50...60...70...80...90...100 - done.

It created a png file along with an xml file.  I had to do this with the gdal_translate.exe file, but eventually I would like to use straight Java.

Thanks,
George


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101019/05ff92d9/attachment.html


More information about the gdal-dev mailing list