Re: [gdal-dev] Extract elevation from (latitude, longitude)

2010-09-01 Thread Carmelo Terrasi
OK, I got it, it works, thank you so much!!! 2010/8/31 J Luis jmfl...@gmail.com Carmelo, In GMT with GDAL support that is trivial to do using the grdtrack program. Joaquim Luis Hello everybody, first of all my apologies cause I'm a newbie with this stuff... I'm trying to build a

[gdal-dev] Extract elevation from (latitude, longitude)

2010-08-31 Thread Carmelo Terrasi
Hello everybody, first of all my apologies cause I'm a newbie with this stuff... I'm trying to build a function able to extract altitude from latitude and longitude as parameters. Something like that: *double MyElevation(double lat, double lon)* * * I'm using Dted level 0 to get the elevation

Re: [gdal-dev] Extract elevation from (latitude, longitude)

2010-08-31 Thread Stephen Woodbridge
On 8/31/2010 11:11 AM, Carmelo Terrasi wrote: Hello everybody, first of all my apologies cause I'm a newbie with this stuff... I'm trying to build a function able to extract altitude from latitude and longitude as parameters. Something like that: *double MyElevation(double lat, double lon)* * *

Re: [gdal-dev] Extract elevation from (latitude, longitude)

2010-08-31 Thread Chaitanya kumar CH
Carmelo, In the code n30.dt0 is some raster image file. Replace it with your image path. The array named 'data' was renamed to pippo. Correct that. Refer to GDALDataset::GetGeoTransform() method at http://www.gdal.org/classGDALDataset.html Use GDALDataset::RasterIO() or GDALRasterIO while