Geothermal energy is also used directly for district heating , or in other heating and cooling applications .
An additional 28 gigawatts of direct geothermal heating capacity is installed for district heating , space heating , spas , industrial processes , desalination and agricultural applications .