I need to query/filter my wms in openlayers to only see the polygons classified with the highest values in a given field.

Would be something like:

wms_layer.mergeNewParams({'CQL_FILTER': "ND = max(ND)"});

But this is not working.

Any ideas?


There is no way to do that. If you want to get the highest value of a filed you have to use WPS, GeoServer has a process that does basic statistics on fields, including the max value.

  • How do I do this? – vascobnunes Dec 7 '12 at 14:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.