Exemplo n.º 1
0
Arquivo: gdal.go Projeto: kikht/gdal
// Set the raster color table for this raster band
func (rasterBand RasterBand) SetColorTable(colorTable ColorTable) error {
	err := C.GDALSetRasterColorTable(rasterBand.cval, colorTable.cval)
	if err != 0 {
		return error(err)
	}

	return nil
}
Exemplo n.º 2
0
Arquivo: gdal.go Projeto: colek42/gdal
// Set the raster color table for this raster band
func (rasterBand RasterBand) SetColorTable(colorTable ColorTable) error {
	return C.GDALSetRasterColorTable(rasterBand.cval, colorTable.cval).Err()
}