Changeset 19455


Ignore:
Timestamp:
Apr 19, 2010 8:54:33 AM (6 years ago)
Author:
pvachon
Message:

Add support for reading/writing complex PCIDSK files through libpcidsk

File:
1 edited

Legend:

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

    r19152 r19455  
    13301330        return GDT_Byte;
    13311331       
     1332      case CHN_C16U:
     1333        return GDT_CInt16;
     1334     
     1335      case CHN_C16S:
     1336        return GDT_CInt16;
     1337     
     1338      case CHN_C32R:
     1339        return GDT_CFloat32;
     1340       
    13321341      default:
    13331342        return GDT_Unknown;
     
    14751484
    14761485    if( eType == GDT_Float32 )
    1477         aeChanTypes.resize( MAX(1,nBands), CHN_32R ); 
     1486        aeChanTypes.resize( MAX(1,nBands), CHN_32R );
    14781487    else if( eType == GDT_Int16 )
    1479         aeChanTypes.resize( MAX(1,nBands), CHN_16S ); 
     1488        aeChanTypes.resize( MAX(1,nBands), CHN_16S );
    14801489    else if( eType == GDT_UInt16 )
    1481         aeChanTypes.resize( MAX(1,nBands), CHN_16U );
     1490        aeChanTypes.resize( MAX(1,nBands), CHN_16U );
     1491    else if( eType == GDT_CInt16 )
     1492        aeChanTypes.resize( MAX(1, nBands), CHN_C16S );
     1493    else if( eType == GDT_CFloat32 )
     1494        aeChanTypes.resize( MAX(1, nBands), CHN_C32R );
    14821495    else
    1483         aeChanTypes.resize( MAX(1,nBands), CHN_8U ); 
     1496        aeChanTypes.resize( MAX(1,nBands), CHN_8U );
    14841497
    14851498/* -------------------------------------------------------------------- */
     
    15601573        poDriver->SetMetadataItem( GDAL_DCAP_VIRTUALIO, "YES" );
    15611574        poDriver->SetMetadataItem( GDAL_DMD_EXTENSION, "pix" );
    1562         poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES, "Byte UInt16 Int16 Float32" );
     1575        poDriver->SetMetadataItem( GDAL_DMD_CREATIONDATATYPES, "Byte UInt16 Int16 Float32 CInt16 CFloat32" );
    15631576        poDriver->SetMetadataItem( GDAL_DMD_CREATIONOPTIONLIST,
    15641577"<CreationOptionList>"
Note: See TracChangeset for help on using the changeset viewer.