Hi all,
I try to request a map from GeoServer with a remote SLD.
GeoServer ignores the SLD definition and uses always the default style defined. The same happens if I give the SLD in the SLD_BODY parameter. If the SLD given is invalid GeoServer returns a correct error message.
The log file says that the remote SLD is used first.
011-04-18 11:19:23,129 DEBUG [geoserver.ows] - Getting layers and styles from reomte SLD
2011-04-18 11:19:23,130 DEBUG [geoserver.requests] - First 4 bytes of XML doc are : 3C ('\
<') 3F ('?') 78 ('x') 6D ('m')
2011-04-18 11:19:23,130 DEBUG [geoserver.requests] - Charset detection phase 1. Inferred \
encoding: UTF-8
2011-04-18 11:19:23,130 DEBUG [geoserver.requests] - Charset detection phase 2. Charset i\
n XML declaration is `UTF-8`.
2011-04-18 11:19:23,130 DEBUG [geoserver.requests] - Trying to create reader basing on ex\
isting charset information: `UTF-8`.
2011-04-18 11:19:23,132 DEBUG [geotools.styling] - creating defaultMark
2011-04-18 11:19:23,132 DEBUG [geotools.styling] - creating defaultMark
2011-04-18 11:19:23,132 TRACE [geotools.styling] - ENTRY
2011-04-18 11:19:23,132 DEBUG [geotools.styling] - number of fts set 1
2011-04-18 11:19:23,134 DEBUG [geoserver.wms] - setting up map
2011-04-18 11:19:23,134 DEBUG [wms.map] - setting up 450x450 image
After that it seems that GeoServer is creating the styling with the default style (my remote SLD hasn't filters).
2011-04-18 11:19:23,134 DEBUG [geotools.styling] - number of fts set 1
2011-04-18 11:19:23,135 DEBUG [geotools.rendering] - Computed scale denominator: 1.547618\
9313616667E7
2011-04-18 11:19:23,136 DEBUG [geotools.styling] - number of fts set 1
2011-04-18 11:19:23,136 DEBUG [geotools.rendering] - processing 1 stylers for http://www.\
ilmasto-opas.fi:hydro_snowcoverdays
2011-04-18 11:19:23,136 DEBUG [geotools.rendering] - creating rules for scale denominator\
- 15,476,189.314
2011-04-18 11:19:23,136 DEBUG [geotools.styling] - creating defaultMark
2011-04-18 11:19:23,136 DEBUG [geotools.styling] - creating defaultMark
2011-04-18 11:19:23,136 TRACE [geotools.styling] - ENTRY
...
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting LogicFilter
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting PropertyName
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting LiteralExpression
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting LogicFilter
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting LogicFilter
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting LogicFilter
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting NullFilter
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting PropertyName
2011-04-18 11:19:23,144 DEBUG [geotools.filter] - exporting SQL ComparisonFilter
I updated the GeoServer to the version 2.1-RC4 recently. Remote SLDs work correctly with the layers that I have created with the older version of GeoServer (2.0.2).
If this was a bug in 2.1-RC4 I think that someone would have noticed it. So what could be wrong?
--
Ismo Lahtinen