Re: [gdal-dev] How to convert a GIF (being a grid with value in channel B from RGB) to XYZ?

2011-07-26 Thread Stefan Keller
Hi Chaitanya Thanks again for the hint. I have now to experiment with GeoTransform. I first let generate a valid VRT to start doing a "% gdal_translate -of VRT myinputfile.gif myinputfile.vrt". But I still have some issues: 1. I'm stuck on where to put the geofererencing information (being lower/

[gdal-dev] Re: Saving 16 bit image

2011-07-26 Thread el_inca
Thank you for your answer. In gdal-translate.exe there is an option of -scale pixel range. How can i set this parameters from code (visual c++) ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6621525.html Sent from the GDAL - Dev mailing l

Re: [gdal-dev] How to convert a GIF (being a grid with value in channel B from RGB) to XYZ?

2011-07-26 Thread Chaitanya kumar CH
On Tue, Jul 26, 2011 at 1:53 PM, Stefan Keller wrote: > Hi Chaitanya > > Thanks again for the hint. I have now to experiment with GeoTransform. > I first let generate a valid VRT to start doing a "% gdal_translate > -of VRT myinputfile.gif myinputfile.vrt". But I still have some > issues: > > 1.

Re: [gdal-dev] Re: Saving 16 bit image

2011-07-26 Thread Chaitanya kumar CH
You can use the GDALRasterBand::SetScale() and GDALRasterBand::SetOffset() methods[1]. There are methods to retrieve them too. [1]: http://www.gdal.org/classGDALRasterBand.html On Tue, Jul 26, 2011 at 2:53 PM, el_inca wrote: > Thank you for your answer. > > In gdal-translate.exe there is an opt

Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff

2011-07-26 Thread Brian Case
Nikolaos I have warped modis with swath2grid and mosaicked it with mapserver, I have not seen that issue. also you don't need to use a vrt to mosaic, this can be done with one gdalwarp call. gdalwarp file1 file2 file3 outfile Brian On Mon, 2011-07-25 at 17:20 -0700, Nikolaos Hatzopoulos wrote

Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff

2011-07-26 Thread Nikolaos Hatzopoulos
cool! does it works with 150 files? --Nikos On Tue, Jul 26, 2011 at 9:17 AM, Brian Case wrote: > Nikolaos > > I have warped modis with swath2grid and mosaicked it with mapserver, I > have not seen that issue. > > also you don't need to use a vrt to mosaic, this can be done with one > gdalwarp

Re: [gdal-dev] Modis L1B SWATH: georef problem hdf to geotiff

2011-07-26 Thread Brian Case
Nikolaos, I believe the only limitations will be ones imposed by the shell/os on the number of arguments that can be passed to an app (2^15?), and the cpu and memory resources available. Brian On Tue, 2011-07-26 at 09:38 -0700, Nikolaos Hatzopoulos wrote: > cool! > > does it works with 150 file

[gdal-dev] create classified PNG from ASCIIGrid

2011-07-26 Thread Stephen Crawford
Hi All, I have 60 or so asciiGrids of climate data that I would like to tun into PNGs, with the climate values classified by color. I would like to script this process using Python. Is there a way to do this with GDAL? Or if not, is there any other open source way to do this? Thanks, Stev

[gdal-dev] how to build GDAL180 64-bit on VS2008

2011-07-26 Thread 宋小璐
Dear sir, I've been trying to build GDAL180 64-bit on VS2008 but there are always 163 errors and 2052 warnings. I uncomment WIN64=YES, and try all the ways found on internet, such as commenting ODBC, deleting '@XX' in line 47-50 of makefile.vc, setting up VC++ directories for platform 'x64'. Ho

Re: [gdal-dev] how to build GDAL180 64-bit on VS2008

2011-07-26 Thread Frank Warmerdam
2011/7/26 宋小璐 : > Dear sir, > I've been trying to build GDAL180 64-bit on VS2008 but there are always 163 > errors and 2052 warnings. I uncomment WIN64=YES, and try all the ways found > on internet, such as commenting ODBC, deleting '@XX' in line 47-50 of > makefile.vc, setting up VC++ directories

Re: [gdal-dev] create classified PNG from ASCIIGrid

2011-07-26 Thread Chaitanya kumar CH
Stephen, The docs for rgb2pct.py script [1] has an example that shows how to convert to a paletted image using hand made VRT file. You can use the "-of PNG" option to set the destination format as png and the -pct option with your VRT file. On Wed, Jul 27, 2011 at 2:42 AM, Stephen Crawford wrote

Re: [gdal-dev] create classified PNG from ASCIIGrid

2011-07-26 Thread Chaitanya kumar CH
Sorry, here are the links. [1]: http://www.gdal.org/rgb2pct.html [2]: http://www.gdal.org/gdal_vrttut.html [3]: http://www.gdal.org/formats_list.html On Wed, Jul 27, 2011 at 10:30 AM, Chaitanya kumar CH wrote: > Stephen, > > The docs for rgb2pct.py script [1] has an example that shows how to c

[gdal-dev] exif header for jpeg file

2011-07-26 Thread nicholas . g . lawrence
Hello all, I have acquired a Ricoh digital camera with a GPS unit built into the camera. There is also a compass built in as well. The GPS co-ordinates are stored in the exif header of the jpeg. I have figured out one way to extract them. I'm hoping that the compass bearing is also recor