Changeset 11175

Show
Ignore:
Timestamp:
04/02/07 16:15:31 (2 years ago)
Author:
dnadeau
Message:

correct a cut and paste error.

Sign "-" was changed for "*" in pixel center computation.
Wrong GeoTransform? array was computed in SetProjection? method.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/frmts/netcdf/netcdfdataset.cpp

    r11166 r11175  
    10791079/* -------------------------------------------------------------------- */ 
    10801080                  poDS->adfGeoTransform[0] = pdfXCoord[0] 
    1081                       * (poDS->adfGeoTransform[1] / 2); 
     1081                      - (poDS->adfGeoTransform[1] / 2); 
    10821082 
    10831083                  poDS->adfGeoTransform[3] = pdfYCoord[0] 
    1084                       * (poDS->adfGeoTransform[5] / 2); 
     1084                      - (poDS->adfGeoTransform[5] / 2); 
    10851085 
    10861086                    oSRS.exportToWkt( &(poDS->pszProjection) ); 
     
    11811181/* -------------------------------------------------------------------- */ 
    11821182              adfGeoTransform[0] = dfWE 
    1183                       * (adfGeoTransform[1] / 2); 
     1183                      - (adfGeoTransform[1] / 2); 
    11841184 
    11851185              adfGeoTransform[3] = dfNN 
    1186                       * (adfGeoTransform[5] / 2); 
     1186                      - (adfGeoTransform[5] / 2); 
    11871187 
    11881188