[Gdal-dev] Save GeoTiff

Ayman Kamal kamal_jo at yahoo.com
Wed Mar 12 10:28:46 EST 2003


I attach the file "fltinfo.txt" that contains the
fltinfo for two images, the first one is a colored 256
color image, the second is the same as the first but
converted to gray scale.

The colored one causes the problem, but the gray scale
doesn't

The program that complained about the colored image
file is "3DEM"


--- Frank Warmerdam <warmerdam at pobox.com> wrote:
> Ayman Kamal wrote:
> > I used "gdal_translate" to convert a gray .bmp
> file to
> > a geotiff file. I opened this file using GDAL
> library,
> > and tried it in other viewers, it worked.
> > 
> > Now I tried to convert a colored .bmp files: 256,
> > 24bit
> > Then I opened the resulting geotiff file in my
> > application using GDAL and tried the same using
> OpenEV
> > and it worked,
> > 
> > BUT:
> > 
> > I tried to open it using differnt GeoTiff viewers,
> one
> > of them showed it as a whole black and the other
> didnt
> > open it and complained with the message:
> > 
> > "65535: Sample out of range, max 3"
> > 
> > What is the problem? Is the problem that the
> images
> > arec colored or what?
> 
> Ayman,
> 
> I have never seen this message before.  Could you
> provide the "gdalinfo"
> report for the TIFF file produced by GDAL?  It would
> also be helpful to have
> the "tiffinfo" report for it, if you are that
> application.  Tiffinfo is
> usually installed with libtiff on most Linux systems
> or you can build it
> from source (http://www.libtiff.org).
> 
> Best regards,
> 
> -- 
>
---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank
> Warmerdam, warmerdam at pobox.com
> light and sound - activate the windows |
> http://pobox.com/~warmerdam
> and watch the world go round - Rush    | Geospatial
> Programmer for Rent
> 
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
-------------- next part --------------
--------------------------------------------------------------------------------------------------------------------------
((fltinfo data for the 256 color image))
((The one that causes the problems))

--------------------------------------------------------------------------------------------------------------------------
Driver: GTiff/GeoTIFF
Size is 800, 600
Coordinate System is:
GEOGCS["NAD83",
    DATUM["North_American_Datum_1983",
        SPHEROID["GRS 1980",6378137,298.257222101]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433]]
Origin = (-115.679700,46.440000)
Pixel Size = (0.001000,-0.001000)
Corner Coordinates:
Upper Left  (-115.6797000,  46.4400000) (115d40'46.92"W, 46d26'24.00"N)
Lower Left  (-115.6797000,  45.8400000) (115d40'46.92"W, 45d50'24.00"N)
Upper Right (-114.8797000,  46.4400000) (114d52'46.92"W, 46d26'24.00"N)
Lower Right (-114.8797000,  45.8400000) (114d52'46.92"W, 45d50'24.00"N)
Center      (-115.2797000,  46.1400000) (115d16'46.92"W, 46d 8'24.00"N)
Band 1 Block=800x2 Type=Float32, ColorInterp=Red
  Min=-4294967295.000/0, Max=4294967295.000/0
Band 2 Block=800x2 Type=Float32, ColorInterp=Green
  Min=-4294967295.000/0, Max=4294967295.000/0
Band 3 Block=800x2 Type=Float32, ColorInterp=Blue
  Min=-4294967295.000/0, Max=4294967295.000/0
--------------------------------------------------------------------------------------------------------------------------
((fltinfo data for the same image after being converted to gray scale))

--------------------------------------------------------------------------------------------------------------------------
Driver: GTiff/GeoTIFF
Size is 800, 600
Coordinate System is:
GEOGCS["NAD83",
    DATUM["North_American_Datum_1983",
        SPHEROID["GRS 1980",6378137,298.257222101]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433]]
Origin = (-115.679700,46.440000)
Pixel Size = (0.001000,-0.001000)
Corner Coordinates:
Upper Left  (-115.6797000,  46.4400000) (115d40'46.92"W, 46d26'24.00"N)
Lower Left  (-115.6797000,  45.8400000) (115d40'46.92"W, 45d50'24.00"N)
Upper Right (-114.8797000,  46.4400000) (114d52'46.92"W, 46d26'24.00"N)
Lower Right (-114.8797000,  45.8400000) (114d52'46.92"W, 45d50'24.00"N)
Center      (-115.2797000,  46.1400000) (115d16'46.92"W, 46d 8'24.00"N)
Band 1 Block=800x2 Type=Float32, ColorInterp=Gray
  Min=-4294967295.000/0, Max=4294967295.000/0


More information about the Gdal-dev mailing list