I'm currently working with raster data and serving it to a web application using Geoserver. I want to be able to perform queries to retrieve the raster data from a PostgreSQL database with the PostGIS extension to a web application. One of the solutions was to use the ImageMosaicJDBC plugin but I haven't been able query or filter the raster data stored in the PostGIS database from either the WMS or WCS services in Geoserver.
I want to know is there is a standard way to perform queries or filters on raster data based on WMS or WCS requests through a front end such as OpenLayers. Do I use the ImageMosaic plugin instead of the ImageMosaicJDBC? Is WCS more appropriate for these purposes?