Hi all,

I’m using WMS GetMap passing a remote SLD style to be retrieved by the
server at the URL specified in the SLD parameter.

Everything was fine until version 2.19.3 (GeoTools v.25.3). Starting with
this version, the remote SLD seems to be fetched and parsed, but finally
the default style configured in the catalogue is applied.

The log file has lines like the followings:

----------------------------------------------------------------------------------------------------------------

Request: getServiceInfo

2021-11-25 15:14:43,018 DEBUG [org.geotools.data.util] -
CRSConverterFactory can be applied from Strings to CRS  only.

2021-11-25 15:14:43,018 DEBUG [org.geotools.data.util] -
InterpolationConverterFactory can be applied from Strings to Interpolation
only.

2021-11-25 15:14:43,102 TRACE [org.geotools.filter] - processing root Or
ogc:Or

2021-11-25 15:14:43,103 TRACE [org.geotools.filter] - looking up Or

2021-11-25 15:14:43,103 TRACE [org.geotools.filter] - a logical filter Or

2021-11-25 15:14:43,103 TRACE [org.geotools.filter] - adding to logic
filter PropertyIsEqualTo

2021-11-25 15:14:43,103 TRACE [org.geotools.filter] - processing root
PropertyIsEqualTo ogc:PropertyIsEqualTo

2021-11-25 15:14:43,104 TRACE [org.geotools.filter] - looking up
PropertyIsEqualTo

2021-11-25 15:14:43,104 DEBUG [org.geotools.filter] - a comparision filter
PropertyIsEqualTo

2021-11-25 15:14:43,104 DEBUG [org.geotools.filter] - type is 14

2021-11-25 15:14:43,104 TRACE [org.geotools.filter] - add left value ->
[ogc:PropertyName: null]<-

2021-11-25 15:14:43,105 DEBUG [org.geotools.filter] - processing root
PropertyName

2021-11-25 15:14:43,105 TRACE [org.geotools.filter] - add right value ->
[ogc:Literal: null]<-

2021-11-25 15:14:43,105 DEBUG [org.geotools.filter] - processing root
Literal

2021-11-25 15:14:43,105 DEBUG [org.geotools.filter] - processing literal
[ogc:Literal: null]

2021-11-25 15:14:43,106 TRACE [org.geotools.filter] - literal elements (1)
[ogc:Literal: null]

2021-11-25 15:14:43,106 TRACE [org.geotools.filter] - kid 0 [#text:
ESAB11000]

2021-11-25 15:14:43,106 DEBUG [org.geotools.filter] - processing ESAB11000

2021-11-25 15:14:43,106 TRACE [org.geotools.filter] - adding to logic
filter PropertyIsEqualTo

2021-11-25 15:14:43,107 TRACE [org.geotools.filter] - processing root
PropertyIsEqualTo ogc:PropertyIsEqualTo

2021-11-25 15:14:43,107 TRACE [org.geotools.filter] - looking up
PropertyIsEqualTo

2021-11-25 15:14:43,107 DEBUG [org.geotools.filter] - a comparision filter
PropertyIsEqualTo

…

----------------------------------------------------------------------------------------------------------------



showing that the remote Style is being processed (it is a categorized
thematization with labels), but at the end the simple default “Polygon”
style is applied. I also find this log line, going along the file:


----------------------------------------------------------------------------------------------------------------


2021-11-25 15:14:43,177 DEBUG [org.geotools.data.shapefile] - The DBF file
won't be opened since no attributes will be read from it

----------------------------------------------------------------------------------------------------------------



that demonstrates that the attributes of the shapefile are not useful for
the renderization, since a unique simple style is being used.

I also checked with version 2.20.0 and 2.20.1 and got the same wrong
results, whilst 2.16.0, 2.18.5, 2.19.0, 2.19.1 and 2.19.2 are doing well
with the same data and same styles.


Stefano
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

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

Reply via email to