Changeset 19507


Ignore:
Timestamp:
Apr 23, 2010 7:19:58 AM (6 years ago)
Author:
warmerdam
Message:

include rsets even if the extension is not .r0 (#3545)

Location:
trunk/gdal/frmts/nitf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gdal/frmts/nitf

  • trunk/gdal/frmts/nitf/nitfdataset.cpp

    r19365 r19507  
    30143014
    30153015{
    3016     if( !EQUAL(CPLGetExtension(pszNITFFilename),"r0") )
    3017         return FALSE;
     3016    bool isR0File = EQUAL(CPLGetExtension(pszNITFFilename),"r0");
    30183017
    30193018/* -------------------------------------------------------------------- */
     
    30283027        VSIStatBufL sStat;
    30293028
    3030         osTarget = pszNITFFilename;
    3031         osTarget[osTarget.size()-1] = ('0' + i );
     3029        if ( isR0File )
     3030        {
     3031          osTarget = pszNITFFilename;
     3032          osTarget[osTarget.size()-1] = ('0' + i );
     3033        }
     3034        else
     3035          osTarget.Printf( "%s.r%d", pszNITFFilename, i );
    30323036
    30333037        if( VSIStatL( osTarget, &sStat ) != 0 )
Note: See TracChangeset for help on using the changeset viewer.