[Geoserver-users] legend not showing in Geoserver

Dear Geoserver Support

Hope this email finds you well.

I would like to report an issue I am facing with Geoserver legend not showing.

For the last few weeks Geoserver is not being able to draw a legend (before that was working fine).

I tried to go under “styles” sections and then click on preview, and I got the error message below:

Would like to ask if you have any suggestion that might solve this issue?

Also please let me know if you need any additional information?

Many thanks,

Daniel

we need to see the whole of the error message as text (not an image) and the SLD you are using for the style before there is any chance of us being able to help

Ian

···

Ian Turton

Hi Ian,

Thanks for the quick response.

Please see the txt file attached with the errors.

Many thanks,

Daniel

image001.png

geoserver_error.txt (15.1 KB)

···

From: Ian Turton ijturton@anonymised.com
Sent: 29 April 2022 16:55
To: Daniel Campeao Daniel.Campeao@anonymised.com
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] legend not showing in Geoserver

CAUTION: This email originated from outside of KALIBRATE. Do not click links or open attachments unless you recognise the sender and know the content is safe!

we need to see the whole of the error message as text (not an image) and the SLD you are using for the style before there is any chance of us being able to help

Ian

On Fri, 29 Apr 2022 at 14:21, Daniel Campeao via Geoserver-users <geoserver-users@lists.sourceforge.net> wrote:

Dear Geoserver Support

Hope this email finds you well.

I would like to report an issue I am facing with Geoserver legend not showing.

For the last few weeks Geoserver is not being able to draw a legend (before that was working fine).

I tried to go under “styles” sections and then click on preview, and I got the error message below:

Would like to ask if you have any suggestion that might solve this issue?

Also please let me know if you need any additional information?

Many thanks,

Daniel

This message (including any attachments) is confidential. It may contain sensitive and proprietary or legally privileged information. If you are not the intended recipient, please delete it or any copies of it immediately and notify the sender. You must not use, copy, or distribute any part of this message if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to make such a statement.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ian Turton

<?xml version="1.0" encoding="UTF-8"?>

sld:NamedLayer

sld:NameDefault Styler</sld:Name>

sld:UserStyle

sld:NameDefault Styler</sld:Name>

sld:AbstractDemand Household count with categories standarized with Natural Break Jenk</sld:Abstract>

sld:FeatureTypeStyle

sld:Namename</sld:Name>

sld:Rule

sld:Title0 - 367</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal1</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal2</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal3</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#ffffcc</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title368 - 501</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal4</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal5</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#d7efaa</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title502 - 612</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal6</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal7</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#a9dc8e</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title613 - 738</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal8</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal9</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#78c679</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title739 - 1006</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal10</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal11</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal12</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#48af60</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title> 1007</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal13</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal14</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal15</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal16</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#006837</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

<sld:VendorOption name=“ruleEvaluation”>first</sld:VendorOption>

</sld:FeatureTypeStyle>

</sld:UserStyle>

</sld:NamedLayer>

</sld:StyledLayerDescriptor>

image001.png

···

From: Daniel Campeao
Sent: 29 April 2022 17:13
To: Ian Turton ijturton@anonymised.com
Cc: geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] legend not showing in Geoserver

Hi Ian,

Thanks for the quick response.

Please see the txt file attached with the errors.

Many thanks,

Daniel

From: Ian Turton <ijturton@anonymised.com.84…>
Sent: 29 April 2022 16:55
To: Daniel Campeao <Daniel.Campeao@anonymised.com>
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] legend not showing in Geoserver

CAUTION: This email originated from outside of KALIBRATE. Do not click links or open attachments unless you recognise the sender and know the content is safe!

we need to see the whole of the error message as text (not an image) and the SLD you are using for the style before there is any chance of us being able to help

Ian

On Fri, 29 Apr 2022 at 14:21, Daniel Campeao via Geoserver-users <geoserver-users@lists.sourceforge.net> wrote:

Dear Geoserver Support

Hope this email finds you well.

I would like to report an issue I am facing with Geoserver legend not showing.

For the last few weeks Geoserver is not being able to draw a legend (before that was working fine).

I tried to go under “styles” sections and then click on preview, and I got the error message below:

Would like to ask if you have any suggestion that might solve this issue?

Also please let me know if you need any additional information?

Many thanks,

Daniel

This message (including any attachments) is confidential. It may contain sensitive and proprietary or legally privileged information. If you are not the intended recipient, please delete it or any copies of it immediately and notify the sender. You must not use, copy, or distribute any part of this message if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to make such a statement.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ian Turton

Googling error messages often helps. The relevant bit here is:

Caused by: java.lang.NullPointerException
at java.desktop/sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1262)
at java.desktop/sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:225)
at java.desktop/sun.awt.FontConfiguration.init(FontConfiguration.java:107)

Which led me to:
https://stackoverflow.com/questions/65509533/npe-from-sun-awt-fontconfiguration-getversion-using-apache-fop-jdk-11-on-linux-s

Not having fontconfig is common in stripped down docker images (alpine I assume?)

Cheers
Andrea

image001.png

···

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 333 8128928

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it


Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail

That is not valid XML. Problems with tag matching etc.

Try something like https://codebeautify.org/xmlvalidator to find and sort out the issue.

image001.png

···

Ngā mihi, Nā Phil Scadden

Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and Analysis)

GNS Science Te Pῡ Ao

764 Cumberland St, Private Bag 1930,

Dunedin, New Zealand Ph +64 3 4799663, 027 3463185

“Whāia te iti kahurangi ki te tūohu koe me he maunga teitei”

From: Daniel Campeao via Geoserver-users geoserver-users@lists.sourceforge.net
Sent: Saturday, 30 April 2022 7:07 AM
To: Ian Turton <ijturton@…84…>
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] legend not showing in Geoserver








Note: External sender:


<?xml version="1.0" encoding="UTF-8"?>

sld:NamedLayer

sld:NameDefault Styler</sld:Name>

sld:UserStyle

sld:NameDefault Styler</sld:Name>

sld:AbstractDemand Household count with categories standarized with Natural Break Jenk</sld:Abstract>

sld:FeatureTypeStyle

sld:Namename</sld:Name>

sld:Rule

sld:Title0 - 367</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal1</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal2</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal3</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#ffffcc</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title368 - 501</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal4</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal5</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#d7efaa</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title502 - 612</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal6</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal7</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#a9dc8e</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title613 - 738</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal8</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal9</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#78c679</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title739 - 1006</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal10</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal11</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal12</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#48af60</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

sld:Rule

sld:Title> 1007</sld:Title>

ogc:Filter

ogc:Or

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal13</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal14</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal15</ogc:Literal>

</ogc:PropertyIsEqualTo>

ogc:PropertyIsEqualTo

ogc:PropertyNameCategory_House</ogc:PropertyName>

ogc:Literal16</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Or>

</ogc:Filter>

sld:PolygonSymbolizer

sld:Fill

<sld:CssParameter name=“fill”>#006837</sld:CssParameter>

<sld:CssParameter name=“fill-opacity”>0.65</sld:CssParameter>

</sld:Fill>

sld:Stroke

<sld:CssParameter name=“stroke”>#4C8067</sld:CssParameter>

<sld:CssParameter name=“stroke-linejoin”>bevel</sld:CssParameter>

<sld:CssParameter name=“stroke-opacity”>0.74</sld:CssParameter>

<sld:CssParameter name=“stroke-width”>

<ogc:Function name=“Categorize”>

<ogc:Function name=“env”>

ogc:Literalwms_scale_denominator</ogc:Literal>

</ogc:Function>

ogc:Literal2</ogc:Literal>

ogc:Literal150000</ogc:Literal>

ogc:Literal1.5</ogc:Literal>

ogc:Literal400000</ogc:Literal>

ogc:Literal1</ogc:Literal>

ogc:Literal700000</ogc:Literal>

ogc:Literal0.7</ogc:Literal>

</ogc:Function>

</sld:CssParameter>

</sld:Stroke>

</sld:PolygonSymbolizer>

</sld:Rule>

<sld:VendorOption name=“ruleEvaluation”>first</sld:VendorOption>

</sld:FeatureTypeStyle>

</sld:UserStyle>

</sld:NamedLayer>

</sld:StyledLayerDescriptor>

From: Daniel Campeao
Sent: 29 April 2022 17:13
To: Ian Turton <ijturton@…84…>
Cc: geoserver-users@lists.sourceforge.net
Subject: RE: [Geoserver-users] legend not showing in Geoserver

Hi Ian,

Thanks for the quick response.

Please see the txt file attached with the errors.

Many thanks,

Daniel

From: Ian Turton <ijturton@…84…>
Sent: 29 April 2022 16:55
To: Daniel Campeao <Daniel.Campeao@…11446…>
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] legend not showing in Geoserver

CAUTION: This email originated from outside of KALIBRATE. Do not click links or open attachments unless you recognise the sender and know the content is safe!

we need to see the whole of the error message as text (not an image) and the SLD you are using for the style before there is any chance of us being able to help

Ian

On Fri, 29 Apr 2022 at 14:21, Daniel Campeao via Geoserver-users <geoserver-users@lists.sourceforge.net> wrote:

Dear Geoserver Support

Hope this email finds you well.

I would like to report an issue I am facing with Geoserver legend not showing.

For the last few weeks Geoserver is not being able to draw a legend (before that was working fine).

I tried to go under “styles” sections and then click on preview, and I got the error message below:

Would like to ask if you have any suggestion that might solve this issue?

Also please let me know if you need any additional information?

Many thanks,

Daniel

This message (including any attachments) is confidential. It may contain sensitive and proprietary or legally privileged information. If you are not the intended recipient, please delete it or any copies of it immediately and notify the sender. You must not use, copy, or distribute any part of this message if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to make such a statement.


Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ian Turton