Changeset 19568


Ignore:
Timestamp:
Apr 28, 2010, 2:48:43 PM (14 years ago)
Author:
Even Rouault
Message:

RPFTOC: accept A.TOC files with frame entries that have same (row,col) coordinates (based on feedback from http://lists.osgeo.org/pipermail/mapserver-users/2010-April/065405.html)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gdal/frmts/nitf/rpftocfile.cpp

    r19323 r19568  
    423423        if (frameEntry->exists)
    424424        {
    425             CPLError( CE_Failure, CPLE_NotSupported,
    426                       "Invalid TOC file. Frame entry(%d,%d) for frame file index %d is a duplicate.",
     425            CPLError( CE_Warning, CPLE_AppDefined,
     426                      "Frame entry(%d,%d) for frame file index %d was already found.",
    427427                      frameRow, frameCol, i);
    428             RPFTOCFree(toc);
    429             return NULL;
     428            CPLFree(frameEntry->directory);
     429            frameEntry->directory = NULL;
     430            CPLFree(frameEntry->fullFilePath);
     431            frameEntry->fullFilePath = NULL;
     432            frameEntry->exists = 0;
    430433        }
    431434       
Note: See TracChangeset for help on using the changeset viewer.