Changeset 14402

Show
Ignore:
Timestamp:
05/09/08 01:20:49 (3 months ago)
Author:
rouault
Message:

Fix SGI driver that misidentified SRTMHGT files as SGI files (#2289)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/gdal/frmts/sgi/sgidataset.cpp

    r10645 r14402  
    399399        return NULL; 
    400400 
     401    if (tmpImage.type != 0 && tmpImage.type != 1) 
     402        return NULL; 
     403 
     404    if (tmpImage.bpc != 1 && tmpImage.bpc != 2) 
     405        return NULL; 
     406 
     407    if (tmpImage.dim != 1 && tmpImage.dim != 2 && tmpImage.dim != 3) 
     408        return NULL; 
     409 
    401410    if(tmpImage.bpc != 1) 
    402411    {