Changeset 13715
- Timestamp:
- 02/06/08 15:05:24 (5 months ago)
- Files:
-
- trunk/gdal/frmts/ecw/ecwcreatecopy.cpp (modified) (2 diffs)
- trunk/gdal/frmts/jpeg/jpgdataset.cpp (modified) (1 diff)
- trunk/gdal/frmts/jpeg2000/jpeg2000dataset.cpp (modified) (1 diff)
- trunk/gdal/frmts/mrsid/mrsiddataset.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/frmts/ecw/ecwcreatecopy.cpp
r10957 r13715 1013 1013 return NULL; 1014 1014 } 1015 1016 if (poSrcDS->GetRasterBand(1)->GetColorTable() != NULL) 1017 { 1018 CPLError( (bStrict) ? CE_Failure : CE_Warning, CPLE_NotSupported, 1019 "ECW driver ignores color table. " 1020 "The source raster band will be considered as grey level.\n" ); 1021 if (bStrict) 1022 return NULL; 1023 } 1015 1024 1016 1025 return ECWCreateCopy( pszFilename, poSrcDS, bStrict, papszOptions, … … 1052 1061 1053 1062 return NULL; 1063 } 1064 1065 if (poSrcDS->GetRasterBand(1)->GetColorTable() != NULL) 1066 { 1067 CPLError( (bStrict) ? CE_Failure : CE_Warning, CPLE_NotSupported, 1068 "ECW driver ignores color table. " 1069 "The source raster band will be considered as grey level.\n" ); 1070 if (bStrict) 1071 return NULL; 1054 1072 } 1055 1073 trunk/gdal/frmts/jpeg/jpgdataset.cpp
r13687 r13715 1736 1736 poSrcDS->GetRasterBand(1)->GetColorTable() != NULL) 1737 1737 { 1738 CPLError( CE_Warning, CPLE_NotSupported,1738 CPLError( (bStrict) ? CE_Failure : CE_Warning, CPLE_NotSupported, 1739 1739 "JPEG driver ignores color table. " 1740 1740 "The source raster band will be considered as grey level.\n" ); 1741 if (bStrict) 1742 return NULL; 1741 1743 } 1742 1744 trunk/gdal/frmts/jpeg2000/jpeg2000dataset.cpp
r12396 r13715 733 733 int nYSize = poSrcDS->GetRasterYSize(); 734 734 735 if (poSrcDS->GetRasterBand(1)->GetColorTable() != NULL) 736 { 737 CPLError( (bStrict) ? CE_Failure : CE_Warning, CPLE_NotSupported, 738 "JPEG2000 driver ignores color table. " 739 "The source raster band will be considered as grey level.\n" ); 740 if (bStrict) 741 return NULL; 742 } 743 735 744 if( !pfnProgress( 0.0, NULL, pProgressData ) ) 736 745 return NULL; trunk/gdal/frmts/mrsid/mrsiddataset.cpp
r12686 r13715 2831 2831 bool bMeter = true; 2832 2832 #endif 2833 2833 2834 if (poSrcDS->GetRasterBand(1)->GetColorTable() != NULL) 2835 { 2836 CPLError( (bStrict) ? CE_Failure : CE_Warning, CPLE_NotSupported, 2837 "MrSID driver ignores color table. " 2838 "The source raster band will be considered as grey level.\n" ); 2839 if (bStrict) 2840 return NULL; 2841 } 2842 2834 2843 // Output Mrsid Version 2 file. 2835 2844 if( pszVersion && atoi(pszVersion) == 2 ) … … 2991 3000 int nYSize = poSrcDS->GetRasterYSize(); 2992 3001 LT_STATUS eStat; 3002 3003 if (poSrcDS->GetRasterBand(1)->GetColorTable() != NULL) 3004 { 3005 CPLError( (bStrict) ? CE_Failure : CE_Warning, CPLE_NotSupported, 3006 "MrSID driver ignores color table. " 3007 "The source raster band will be considered as grey level.\n" ); 3008 if (bStrict) 3009 return NULL; 3010 } 2993 3011 2994 3012 if( !pfnProgress( 0.0, NULL, pProgressData ) )
