MCPcopy Create free account
hub / github.com/OSGeo/gdal / SetColorTable

Method SetColorTable

gcore/rawdataset.cpp:1468–1479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1466/************************************************************************/
1467
1468CPLErr RawRasterBand::SetColorTable(GDALColorTable *poNewCT)
1469
1470{
1471 if (poCT)
1472 delete poCT;
1473 if (poNewCT == nullptr)
1474 poCT = nullptr;
1475 else
1476 poCT = poNewCT->Clone();
1477
1478 return CE_None;
1479}
1480
1481/************************************************************************/
1482/* GetColorTable() */

Calls 1

CloneMethod · 0.45