[gdal-dev] DTED Elevations with Java and gdal

Kyle Shannon KShannon at gcs-research.com
Wed Oct 19 16:31:36 EDT 2011


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-----
From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Roger Viton
Sent: Wednesday, October 19, 2011 2:24 PM
To: gdal-dev at lists.osgeo.org
Subject: [gdal-dev] DTED Elevations with Java and gdal

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(<some dted file>, org.gdal.gdalconst.gdalconst.GA_ReadOnly);


With an x y point how can the elevation be derived?


We have been able to run GDALtest.java against a DTED file with no problem. 
There does not seem to be any reference to any elevation in DTEDtest.java

Just want to get the elevation at a point.



Thanks,

Roger





--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/DTED-Elevations-with-Java-and-gdal-tp6910385p6910385.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list