Re: [gdal-dev] DTED Elevations with Java and gdal

2011-10-19 Thread Frank Warmerdam
On Wed, Oct 19, 2011 at 1:23 PM, Roger Viton wrote: > There have been other threads on this topic.  The threads seem to die with no > clear solution presented. > > Does anyone have a Java example on how to get elevations from a DTED file? > > > org.gdal.gdal.Dataset dataset = org.gdal.gdal.gdal.Op

RE: [gdal-dev] DTED Elevations with Java and gdal

2011-10-19 Thread Kyle Shannon
Check the code for gdallocationinfo app. Docs for the app: http://gdal.org/gdallocationinfo.html code for the app: http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdallocationinfo.cpp That should get you started. I assume the java bindings are up to date. kss -Original Message-

RE: [gdal-dev] DTED Elevations with Java and gdal

2010-10-20 Thread Corrado, George P.
stions and pasting code. Thanks, George -Original Message- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Tuesday, October 19, 2010 2:04 PM To: gdal-dev@lists.osgeo.org Cc: Corrado, George P. Subject: Re: [gdal-dev] DTED Elevations with Java and gdal George, It's not

Re: [gdal-dev] DTED Elevations with Java and gdal

2010-10-19 Thread Even Rouault
George, It's not appropriate to convert from DTED to PNG. See the warning of gdal_translate : DTED is signed 16 bits, but PNG can only support unsigned 16 bits. So if you translate from DTED to PNG you'll lose the negative values (and in particular the nodata=-32767). I'm not sure why you want