Re: [gdal-dev] Aster tif files to hgt

2011-11-10 Thread geep999
r -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/gdal-dev-Aster-tif-files-to-hgt-tp6965451p6983231.html Sent from the GDAL - Dev mailing list archive at Nabble.com. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.os

Re: [gdal-dev] Aster tif files to hgt

2011-11-09 Thread Scott Arko
Hi Mira, I suspect you are finding what many have, that there are some artifacts in the ASTER GDEM that make it not well suited to certain applications. Having blunders that are 1500m higher than true is a bit unusual in my use of this data set, but probably not unheard of. But, as you say it do

Re: [gdal-dev] Aster tif files to hgt

2011-11-09 Thread Jaromír Mikeš
> Od: Scott Arko Hello Scott, > I wouldn't worry about it the files look identical and the file is working > in your application. If you have a program that can load both formats you > should be able to do a direct comparison to see if there is a shift. Actually I don't have a program to comp

Re: [gdal-dev] Aster tif files to hgt

2011-11-08 Thread Jaromír Mikeš
> Od: Scott Arko Hello Scott, > The error you are getting is because for the SRTM height format you need to > have very specific coordinates for the tiles. I'm not sure I can exactly > explain why this is, but you need to have 1201x1201 for the 1 degree tiles. > Also, you need to use the -proj

Re: [gdal-dev] Aster tif files to hgt

2011-11-08 Thread Scott Arko
Hello Mira, The error you are getting is because for the SRTM height format you need to have very specific coordinates for the tiles. I'm not sure I can exactly explain why this is, but you need to have 1201x1201 for the 1 degree tiles. Also, you need to use the -projwin option to have the corn

Re: [gdal-dev] Aster tif files to hgt

2011-11-07 Thread Jaromír Mikeš
> Od: Jaromír Mikeš > gdal_translate -of SRTMHGT ${tile}.tif ${tile}.hgt > > Warning 1: The corner coordinates of the source are not properly aligned on > plain latitude/longitude boundaries. > ERROR 1: Image dimensions should be 1201x1201 or 3601x3601. $ gdalwarp -of GTiff -srcnodata 32767 -t_s

Re: [gdal-dev] Aster tif files to hgt

2011-11-07 Thread Jaromír Mikeš
> Od: Scott Arko Hello Scott, > To resample your data, you will need to call gdalwarp with the -tr option. > This is specified in whatever the native units are for your projection. > In the case of UTM, meters. So, something like: > > gdalwarp -of SRTMHGT -tr 30 30 -r bilinear input.hgt outp

Re: Re: [gdal-dev] Aster tif files to hgt

2011-11-07 Thread Jaromír Mikeš
Od: Hermann Peifer >> Od: Jaromír Mikeš > Now I need resample files from 1 arc-second (30m) resolution to 3 arc-second (90m). > Can this be done with gdal? Did you try an Internet search with "gdal resample" as search words? Hello Hermann, I found this example while ago: http://wiki.o

Re: [gdal-dev] Aster tif files to hgt

2011-11-07 Thread Jaromír Mikeš
> Od: Jaromír Mikeš Hi list > > gdal_translate -of SRTMHGT input.tif output.hgt Now I need resample files from 1 arc-second (30m) resolution to 3 arc-second (90m). Can this be done with gdal? best regards mira ___ gdal-dev mailing list gdal-dev@lis

Re: [gdal-dev] Aster tif files to hgt

2011-11-06 Thread Jaromír Mikeš
> Od: Scott Arko Hello Scott > You should be able to convert directly to this format with gdal_translate. > Something like > > gdal_translate -of SRTMHGT input.tif output.hgt > > I have done this in the past to convert to the SRTM format and it has > worked fine. Conversion works fine, thank

Re: [gdal-dev] Aster tif files to hgt

2011-11-05 Thread Scott Arko
Hello Mira, You should be able to convert directly to this format with gdal_translate. Something like gdal_translate -of SRTMHGT input.tif output.hgt I have done this in the past to convert to the SRTM format and it has worked fine. On Sat, Nov 5, 2011 at 1:26 AM, Jaromír Mikeš wrote: > Hi

[gdal-dev] Aster tif files to hgt

2011-11-05 Thread Jaromír Mikeš
Hi list, I recently downloaded Aster v2 tif files which I would like convert hgt file to be used by Srtm2osm program. Gdal looks like right tools for doing this. Can somebody here advise me how to do this? best regards mira ___ gdal-dev mailing list g