That is not valid XML. Problems with tag matching etc.
···
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
<?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