Hi all,

I have a few Spot image files and ran the following. Is there a good way to check the integrity of the original image. Should I have used some other options?

Thanks,
  -Steve

gdalinfo --version
GDAL 1.5.2, released 2008/05/29

gdalwarp -s_srs EPSG:4326 -t_srs epsg:900913 -co TILED=YES file1.tif ../900913/file1.tif

gdaladdo file1.tif 2
0ERROR 1: file1.tif:DumpModeDecode: Not enough data for scanline 0
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: IReadBlock failed at X offset 0, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 0
ERROR 1: file1.tif:DumpModeDecode: Not enough data for scanline 128
ERROR 1: TIFFReadEncodedTile() failed.
ERROR 1: IReadBlock failed at X offset 1, Y offset 0
ERROR 1: GetBlockRef failed at X block offset 1, Y block offset 0
ERROR 1: file1.tif:DumpModeDecode: Not enough data for scanline 256
...
More than 1000 errors or warnings have been reported. No more will be reported from now.
...20...30...40...50...60...70...80...90...100 - done.

gdaladdo file 2   errors
gdaladdo file 4   ok
gdaladdo file 8   errors
gdaladdo file 16  ok
gdaladdo file 32  ok
gdaladdo file 64  ok
gdaladdo file 128 ok
gdaladdo file 256 ok

in mapserver at some resolutions the image is badly broken.

gdalinfo file1.tif
Driver: GTiff/GeoTIFF
Files: file1.tif
Size is 6692, 7078
Coordinate System is:
PROJCS["Google Maps Global Mercator",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.2572235630016,
                AUTHORITY["EPSG","7030"]],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4326"]],
    PROJECTION["Mercator_1SP"],
    PARAMETER["central_meridian",0],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (6914290.436308964155614,4085886.801310364622623)
Pixel Size = (2.813934708443432,-2.813934708443432)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  ( 6914290.436, 4085886.801) ( 62d 6'43.66"E, 34d36'13.24"N)
Lower Left  ( 6914290.436, 4065969.771) ( 62d 6'43.66"E, 34d27'20.18"N)
Upper Right ( 6933121.287, 4085886.801) ( 62d16'52.64"E, 34d36'13.24"N)
Lower Right ( 6933121.287, 4065969.771) ( 62d16'52.64"E, 34d27'20.18"N)
Center      ( 6923705.862, 4075928.286) ( 62d11'48.15"E, 34d31'46.83"N)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
Overviews: 3346x3539, 1673x1770, 837x885, 419x443, 210x222, 105x111, 53x56, 27x28
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
Overviews: 3346x3539, 1673x1770, 837x885, 419x443, 210x222, 105x111, 53x56, 27x28
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
Overviews: 3346x3539, 1673x1770, 837x885, 419x443, 210x222, 105x111, 53x56, 27x28
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to