Changeset 19485


Ignore:
Timestamp:
Apr 21, 2010 2:01:45 PM (6 years ago)
Author:
warmerdam
Message:

support worldfile if lacking internal georef (#3544)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gdal/frmts/pcidsk/pcidskdataset2.cpp

    r19455 r19485  
    978978    }
    979979       
    980     if( poGeoref == NULL )
    981         return GDALPamDataset::GetGeoTransform( padfTransform );
    982     else
     980    if( poGeoref != NULL )
    983981    {
    984982        try
     
    998996        }
    999997
     998        // If we got anything non-default return it.
     999        if( padfTransform[0] != 0.0
     1000            || padfTransform[1] != 1.0
     1001            || padfTransform[2] != 0.0
     1002            || padfTransform[3] != 0.0
     1003            || padfTransform[4] != 0.0
     1004            || padfTransform[5] != 1.0 )
     1005            return CE_None;
     1006    }
     1007
     1008/* -------------------------------------------------------------------- */
     1009/*      Check for worldfile if we have no other georeferencing.         */
     1010/* -------------------------------------------------------------------- */
     1011    if( GDALReadWorldFile( GetDescription(), "pxw",
     1012                           padfTransform ) )
    10001013        return CE_None;
    1001     }
     1014    else
     1015        return GDALPamDataset::GetGeoTransform( padfTransform );
    10021016}
    10031017
Note: See TracChangeset for help on using the changeset viewer.