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
- From: gdal-dev-boun...@lists.osgeo.org [mailto:gdal-dev-boun...@lists.osgeo.org] On Behalf Of Roger Viton Sent: Wednesday, October 19, 2011 2:24 PM To: gdal-dev@lists.osgeo.org Subject: [gdal-dev] DTED Elevations with Java and gdal There have been other threads on this topic. The threads seem

[gdal-dev] DTED Elevations with Java and gdal

2011-10-19 Thread Roger Viton
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.Open(, org.gdal.gdalconst.gdalconst.GA_ReadOnly); With an x y

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

[gdal-dev] DTED Elevations with Java and gdal

2010-10-19 Thread Corrado, George P.
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: