Changeset 11905

Show
Ignore:
Timestamp:
08/18/07 12:03:55 (1 year ago)
Author:
rouault
Message:

* Fix for bug #1750 : Fixes bounding box for CADRG files crossing meridian 180°

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/frmts/nitf/nitfimage.c

    r11815 r11905  
    801801            break; 
    802802        } 
     803    } 
     804 
     805    /* Bug #1750 */ 
     806    /* Fix for cjnc/cjncz01/000k1023.jn1 (and similar) from NIMA GNCJNCN CDROM: */ 
     807    /* this product is crossing meridian 180deg and the upper and lower right longitudes are negative */ 
     808    /* which causes problems in OpenEV, etc... So we are adjusting their value by setting them above +180 */ 
     809    if( (psImage->chICORDS == 'G' || psImage->chICORDS == 'D') && 
     810        (psImage->dfURX < psImage->dfULX && psImage->dfLRX < psImage->dfLLX)) 
     811    { 
     812        psImage->dfURX += 360; 
     813        psImage->dfLRX += 360; 
    803814    } 
    804815