Skip to main content
2 of 6
added 45 characters in body

Sort granules using provided list of featureids in WMS request to Geoserver

Quick question on image mosaics (using ImageMosaic plugin) with overlapping rasters in Geoserver: I’m filtering the WMS query by featureid and ideally the order in which the rasters are ‘stacked’ would be controlled by their appearance in the array of feature IDs I provide in the request (similar to the "LockRaster" mosaic rule in Esri mosaic datasets) So if I had a wms request with featureid=id1,id2, I’d get id1 raster over the id2 raster. and if I flipped the order to id2,id1, I’d get the opposite. Is there any way to do this?

I guess more precise terminology would be: how do I get granule sorting to follow featureid listing, as opposed to specifying a field name using the sortby option.

Perhaps there's a CQL way of doing this?

Many thanks!