Closed smathermather closed 6 years ago
Hi, could you check the geoserver log? If you could provide us the sld we could test it locally.
2014-11-24 22:52 GMT+01:00 Stephen Mather notifications@github.com:
I created an SLD in QGIS which I then copy and pasted into geoserver after loading the layer. The layer loads as expected after modifying the SLD. However, if I try to edit the style in geonode then I get this error message:
[image: image] https://cloud.githubusercontent.com/assets/1174901/5173799/960d496a-73f9-11e4-8173-7ec294763a38.png
Am I missing something?
— Reply to this email directly or view it on GitHub https://github.com/GeoNode/geonode/issues/1833.
Simone
Correction: this was actually my question - accidentally posted with smathermather logged in.
Tested a little and I think the issue is that QGIS's rendition of an SLD differs in some ways. (i.e. has <se: tags instead of <sld:). I reproduced the same style using geonodes GUI and everything works fine if I make changes. It's only when I try to make changes to the style in geonode with a style that a copied from QGIS.
I'm going to give uDig a try for generating SLD's. I'll follow up with how that works out.
Hey @tjk1, can you post the SLD for testing as well?
As far as I know, QGIS uses SLD 1.1 and is not compatible with GeoServer
Thanks for the tip. Just tried creating the SLD in uDig and copying into Geoserver. Again, layer loads fine. However, this time, I'm unable to even make an attempt at editing the style (no options) in GeoNode:
Just looking at the SLD's, I'm noticing a difference in the headers -
beginning of SLD generated from uDig: <?xml version="1.0" encoding="UTF-8"?> <sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" version="1.0.0">
......of SLD generated from GeoNode: <?xml version="1.0" encoding="ISO-8859-1"?> <StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Any ideas?
I created an SLD in QGIS which I then copy and pasted into geoserver after loading the layer. The layer loads as expected after modifying the SLD. However, if I try to edit the style in geonode then I get this error message:
Am I missing something?