[gdal-dev] Re: cut a .dem file

2010-09-08 Thread Carmelo Terrasi
Yes, you're right, if I need a portion I have to use that utility. Thank you so much Hermann, regards, Carmelo 2010/9/8 Hermann Peifer > On 08/09/2010 15:26, Carmelo Terrasi wrote: > >> Hello everybody, >> >> does anybody know how to cut a smaller dem file fro

[gdal-dev] cut a .dem file

2010-09-08 Thread Carmelo Terrasi
Hello everybody, does anybody know how to cut a smaller dem file from another one??? I have my original file *terrain.dem *but my *image.bmp* is smaller so I would cut a portion just to create another suitable dem file for my * image.bmp* Is it possible to do it or am I off-board? Thanks in advan

Re: [gdal-dev] Extract data from a.dem file

2010-09-07 Thread Carmelo Terrasi
th is XSize - x. > > See > http://gdal.org/classGDALRasterBand.html#5497e8d29e743ee9177202cb3f61c3c7 > for the full reference. > > Le lundi 06 septembre 2010 17:25:31, Carmelo Terrasi a écrit : > > Hello everybody, > > I'm trying to figure out how to get elevation from a .dem file. &g

[gdal-dev] Extract data from a.dem file

2010-09-06 Thread Carmelo Terrasi
Hello everybody, I'm trying to figure out how to get elevation from a .dem file. I opened the file: ... pointerToDataSet=(GDALDataset*) GDALOpen("myFile.dem", GA_ReadOnly); ... So I caught a grid as a 371x371 matrix, but I can read only the first line, so the first 371 elevations... the error is

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 > 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 function 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 (I'v