District heating does not involve making electricity.
> Wärtsilä’s combined power generation and heat recovery plant offering comprises solutions for combined heat and power (CHP) including dynamic district heating (DDH), district cooling and power (DCAP) and trigeneration for applications that require both heating and cooling.
https://www.wartsila.com/energy/engine-power-plant-solutions...
...what? What does that have to do with district heating? The one in Poland is coal fired, the one in the UK is electric.