Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-24 Thread Brent Fraser
Another alternative is GINA's (http://www.gina.alaska.edu/projects/gina-tools/) gdal_contrast_stretch: Usage: gdal_contrast_stretch.exe { { -linear-stretch } | { -percentile-range } | { -histeq } } [ -ndv ] Input must be either 8-bit or 16-bit. Output is 8-bit. I think the

Re: [gdal-dev] How to read part of the tiff data and generate a new tiff file

2012-04-24 Thread Chaitanya kumar CH
weixj, You can use the -projwin option of gdal_translate utility. http://www.gdal.org/gdal_translate.html 2012/4/24 weixj > I have a tiff file and four points' coordination(and they are in the range > of the min and max value of the coordination of the tiff file,I want to > generate a new tiff

[gdal-dev] How to read part of the tiff data and generate a new tiff file

2012-04-24 Thread weixj
I have a tiff file and four points' coordination(and they are in the range of the min and max value of the coordination of the tiff file,I want to generate a new tiff file,and the edge of it is constructed by the four points. Thank you in advance.___

Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-24 Thread Even Rouault
Selon jr.morre...@enoreth.net: > On Tue, 24 Apr 2012 09:38:44 +0200, Even Rouault wrote: > >> > >> thanks for the reply, I did try with NBITS=8 and 12 with osgeo4w's > >> gdal > >> and tamas' nightly build but the output results are incorrect > >> > >> Here is a sample file (93Mo) : > >> http://dl

Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-24 Thread jr . morreale
On Tue, 24 Apr 2012 09:38:44 +0200, Even Rouault wrote: thanks for the reply, I did try with NBITS=8 and 12 with osgeo4w's gdal and tamas' nightly build but the output results are incorrect Here is a sample file (93Mo) : http://dl.free.fr/iFT4hH3Yj I'll try to rebuild gdal on my linux box wi

Re: [gdal-dev] how to convert UInt16 Tiff

2012-04-24 Thread Even Rouault
> > thanks for the reply, I did try with NBITS=8 and 12 with osgeo4w's gdal > and tamas' nightly build but the output results are incorrect > > Here is a sample file (93Mo) : > http://dl.free.fr/iFT4hH3Yj > > I'll try to rebuild gdal on my linux box with the internal libs I haven't looked at your

Re: [gdal-dev] FID in a vrt

2012-04-24 Thread Even Rouault
Selon William Kyngesburye : > As I worked on a test case and fiddled around with a few other ideas, I think > I found the error of my ways. > > The computer I was doing the conversion from vrt to PostGIS has GDAL 1.8. In > my test case, GDAL 1.9 correctly preserves the FIDs. Was -preserve_fid >