Changeset 14401

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

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

Files:

Legend:

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

    r13506 r14401  
    521521        return NULL; 
    522522 
     523    if (tmpImage.type != 0 && tmpImage.type != 1) 
     524        return NULL; 
     525 
     526    if (tmpImage.bpc != 1 && tmpImage.bpc != 2) 
     527        return NULL; 
     528 
     529    if (tmpImage.dim != 1 && tmpImage.dim != 2 && tmpImage.dim != 3) 
     530        return NULL; 
     531 
    523532    if(tmpImage.bpc != 1) 
    524533    {