Sounds like a good plan, just use STYLES=good_style& in your getMap request
instead of the normal STYLES=& which uses the default

Ian

On 5 May 2016 at 16:43, Alberto Callejas Delgado <
[email protected]> wrote:

> Hi all,
>
> I need to get ride of the red cross representing "no data" in the
> "GetGraphicLegend" request.
>
> [image: Inline images 1]
>
> My idea is to create two different rules in the rastersymbolizer SLD style
> descriptor.
> The rule including the "no data" values with opacity = 0 will be used in
> the "GetMap" request in order to get ride of the ugly background no data
> values.
>
> But I would like to use another rule (without the red cross;
> "rule_no_redcross") which has not "no data values" on it to show the legend
> of the raster without the redcross watermark in
> the GetLegendGraphic request.
>
> At the moment, specifying in the GetLegendGraphic request
> "&rule=rule_no_redcross" I can make the red cross disappear from the
> legend.
> But the problem is I now get the background no data values on the raster
> image in the GetMap request.
>
> I think that in the GetMap request, GeoServer display all the rules for
> that specific style.
>
> So resuming, I want to create two rules;
> - One rule to show the legend in the GetLegendGraphic request without the
> red cross on it.
> - Another rule to allow transparency to raster in the "GetMap" request.
>
> My question:
>
> Is it possible to add a parameter in the GetMap request to say:
>  hey GeoServer! I just want you to apply this style rule to this nice
> layer. Please, proceed.
>
> Thanks a lot!
>
> Alberto
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 
Ian Turton
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to