I have a land use raster dataset (GeoTIFF) that I've published on geoserver. I am able to display it using both leaflet and OpenLayers using their respective WMS methods.
What I need to do is to recalculate the land use classes/number of pixels per class, at different zoom levels. I have been researching it, and have realized that I would probably have to use WCS or WPS. But I am unable to find any example, that can help me figure out how to handle these services.
Can anyone guide me on how to integrate these services with OpenLayers or Leaflet?