Hi According to the geoserver documentation you can specify rule in a get legend graphic request but I need to specify multiple rules in the request .
The request below works for one single rule: http://localhost:8080/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&scale=15000&WIDTH=20&HEIGHT=20&LAYER=cta:pois&rule=modern&legend_options=fontName:Times%20New%20Roman;fontAntiAliasing:true;fontColor:0x000033;fontSize:14;bgColor:0xFFFFEE;dpi:180 And I would ideally like to have multiple rules so that I have one URL that fetches different symbols based on the rules. The following request does not work http://localhost:8080/geoserver/wms?REQUEST=GetLegendGraphic&VERSION=1.0.0&FORMAT=image/png&scale=15000&WIDTH=20&HEIGHT=20&LAYER=cta:pois&rule=modern,old&legend_options=fontName:Times%20New%20Roman;fontAntiAliasing:true;fontColor:0x000033;fontSize:14;bgColor:0xFFFFEE;dpi:180 It fails with the error 1 layers requested, but found 2 rules specified. Details: org.geoserver.platform.ServiceException: 1 layers requested, but found 2 rules specified. at This above question has been asked on stack exchange (http://gis.stackexchange.com/questions/102938/how-can-i-add-multiple-rules-in-a-getlegendgraphic-request-in-geoserver) and no one has answered it Regards ------------------------------------------------------------------------------ _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
