Changeset 14482

Show
Ignore:
Timestamp:
05/17/08 07:14:45 (2 months ago)
Author:
rouault
Message:

FAST : Order the GCP in TL, TR, BR, BL order to benefit from the GDALGCPsToGeoTransform optimization

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/frmts/raw/fastdataset.cpp

    r12825 r14482  
    777777        CPLFree(pasGCPList[3].pszId); 
    778778 
     779        /* Let's order the GCP in TL, TR, BR, BL order to benefit from the */ 
     780        /* GDALGCPsToGeoTransform optimization */  
    779781        pasGCPList[0].pszId = CPLStrdup("UPPER_LEFT"); 
    780782        pasGCPList[0].dfGCPX = dfULX; 
     
    789791        pasGCPList[1].dfGCPPixel = poDS->nRasterXSize-0.5; 
    790792        pasGCPList[1].dfGCPLine = 0.5; 
    791         pasGCPList[2].pszId = CPLStrdup("LOWER_LEFT"); 
    792         pasGCPList[2].dfGCPX = dfLLX; 
    793         pasGCPList[2].dfGCPY = dfLLY; 
     793        pasGCPList[2].pszId = CPLStrdup("LOWER_RIGHT"); 
     794        pasGCPList[2].dfGCPX = dfLRX; 
     795        pasGCPList[2].dfGCPY = dfLRY; 
    794796        pasGCPList[2].dfGCPZ = 0.0; 
    795         pasGCPList[2].dfGCPPixel = 0.5; 
     797        pasGCPList[2].dfGCPPixel = poDS->nRasterXSize-0.5; 
    796798        pasGCPList[2].dfGCPLine = poDS->nRasterYSize-0.5; 
    797         pasGCPList[3].pszId = CPLStrdup("LOWER_RIGHT"); 
    798         pasGCPList[3].dfGCPX = dfLRX; 
    799         pasGCPList[3].dfGCPY = dfLRY; 
     799        pasGCPList[3].pszId = CPLStrdup("LOWER_LEFT"); 
     800        pasGCPList[3].dfGCPX = dfLLX; 
     801        pasGCPList[3].dfGCPY = dfLLY; 
    800802        pasGCPList[3].dfGCPZ = 0.0; 
    801         pasGCPList[3].dfGCPPixel = poDS->nRasterXSize-0.5; 
     803        pasGCPList[3].dfGCPPixel = 0.5; 
    802804        pasGCPList[3].dfGCPLine = poDS->nRasterYSize-0.5; 
    803805