I am using following GetLegendGraphcs request


With this I am able to get Legend for Phase 1. I have rules for Phase 2 (rule2) , Phase 3 (rule3) and phase 4 (rule4) too. If I want rules for Phase 1 and Phase 2, how shall I use GetLegendGraphics request where I can include more rules.

Thanks & Regards

  • What if you apply multiple styles in your request each with their own rule set; like: https://develop.blaa.nl/data/test/wms?LAYER=nccw%3avariabele_woz&request=GetLegendGraphic&format=image/png&style=nccw_variabele_woz,some-otherstyle& – nmtoken Jul 31 '16 at 9:46

You need to use RULES instead of RULE in your url to pass multiple rules


  • This does not seems to work. Can you provide a link to documentation on it / a working example? – Cushen May 18 '17 at 0:56
  • This is working in our geoserver – Mr. P May 18 '17 at 4:36

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.