Quick question on GeoServer image mosaics (using ImageMosaic plugin) with overlapping rasters: 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. Is there a way to allow the client to specify this ordering arbitrarily?
Here's what a request might look like:
https://geoserverLocation.co/geoserver/store/ows?width=...&height=...&bbox=...&crs=...&format=image/png&request=GetMap&service=WMS&styles=&transparent=true&version=1.3.0&layers=...&featureid=layer.id1,layer.id2
including sortby=featureid
results in the features being sorted by featureid, but as reflected in the table, not my arbitrary ordering in the request. I think this is expected behavior, but I'm wondering if there's a way to order granules arbitrarily using client-side input.
use case:
My app allows users to reorder the list of granules in the UI of a web app, which I'm then tryingI need to mirror onmatch the map interfacesorting order of granules with the (arbitrary) order set by the user. I'm able to do this using Esri backends (see LockRaster link above), but haven't quite found a way to do it in the open source side of things.
Perhaps there's a CQL way of doing this?