Changeset 14736
- Timestamp:
- 06/20/08 17:14:33 (5 months ago)
- Files:
-
- branches/1.5/gdal/alg/gdalgeoloc.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.5/gdal/alg/gdalgeoloc.cpp
r12820 r14736 659 659 } 660 660 661 if (psTransform->hDS_X == NULL || 662 psTransform->hDS_Y == NULL) 663 { 664 GDALDestroyGeoLocTransformer( psTransform ); 665 return NULL; 666 } 667 661 668 /* -------------------------------------------------------------------- */ 662 669 /* Get the band handles. */ … … 669 676 nBand = MAX(1,atoi(CSLFetchNameValue( papszGeolocationInfo, "Y_BAND" ))); 670 677 psTransform->hBand_Y = GDALGetRasterBand( psTransform->hDS_Y, nBand ); 678 679 if (psTransform->hBand_X == NULL || 680 psTransform->hBand_Y == NULL) 681 { 682 GDALDestroyGeoLocTransformer( psTransform ); 683 return NULL; 684 } 671 685 672 686 /* -------------------------------------------------------------------- */
