[gdal-dev] Re: Reading height data from DEM files

Oliver Eichler oliver.eichler at gmx.de
Sun Jun 8 12:56:11 EDT 2008


On Sunday, 8. June 2008 18:39:42 İsmail Dönmez wrote:
> On Thu, Jun 5, 2008 at 11:31 AM, İsmail Dönmez <ismail at namtrac.org> wrote:
> > Hi all,
> >
> > I got DTED Level 0 map and I am trying to get the height profile
> > between two points in the map. There are examples to get
> > longitude/latitude of any point in the map but I can't see how I can
> > find the height of a point. Any help or keywords for searching is
> > appeciated.
>
> Replying to myself I think RasterIO is what I need. Any confirmation
> on this would be great.

Hi Ismail,

yes, you have to get the 4 points close to your wanted point via RasterIO and 
interpolate.

Oliver



More information about the gdal-dev mailing list