[gdal-dev] copying a GDALColorTable

David Strip gdal at stripfamily.net
Sun Nov 11 11:07:56 PST 2012


On 11/11/2012 11:59 AM, Mateusz Loskot wrote:

> IMO, for GDAL 2.0 the API could be improved and some symmetry
> introduced. For example, for GDALColorTable::Clone()
> two static methods could be added:
>
> static GDALColorTable* GDALColorTable::Create(GDALPaletteInterp=GPI_RGB);
> static void GDALColorTable::Destroy(GDALColorTable*);

If we're building a list of suggestions, a copy constructor would allow 
more C++ like coding:
GDALColorTable::GDALColorTable (const GDALColorTable &)
and perhaps an assignment operator
GDALColorTable::operator = (const GDALColorTable &)




More information about the gdal-dev mailing list