[GeoNode-users] QGIS SLD and GeoNode/GeoServer

Daniel Victoria daniel.victoria at gmail.com
Tue Mar 1 03:36:16 PST 2016


I tried the plugin but there are some messed up layers in my geoserver and
so the Plugin cannot list the entire contents of the server.

As for comparing what happens to the SLD after I edit it using GeoNode,
here are the tests and results I got:
1) I created a simple black outline style in QGis and saved as a SLD file
(style_qgis.sld).
2) I pasted this style in GeoServer and it worked both in the GeoServer
layer preview and GeoNode
3) I tried to edit the style using Geonode interface and I got the error
message: "There was an error saving the style back to the server."
4) After this error, the layer style in GeoServer contained only
<?xml version="1.0" encoding="UTF-8"?><sld:StyledLayerDescriptor xmlns:xs="
http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml"
xmlns:se="http://www.opengis.net/se"/>

5) I cannot edit the style in GeoNode and I have to set it manually using
GeoServer interface

Daniel

On Mon, Feb 29, 2016 at 4:56 PM, Francesco Bartoli <xbartolone at gmail.com>
wrote:

> Hi,
>
> have you tried to edit styles with this plugin
> <https://github.com/boundlessgeo/qgis-geoserver-plugin> from Boundless?
> Also did you try to compare the SLD file from geoserver before and after
> you edited it from the geonode editor and see what are the differences?
>
> Francesco
>
> Il giorno 29/feb/2016, alle ore 20:25, Stefan Steiniger <sstein at geo.uzh.ch>
> ha scritto:
>
> Hi Daniel,
>
> no solution - but confirming.
> I have the same problem: Creating Styles in QGIS and c&p in GeoServer, and
> when I try editing style I get errors. So I am also just sticking to "don't
> edit styles" set in GeoServer :(
>
> Related to that, perhaps: I also have problem with spanish names and
> accent-letters when used for classification. In a weird case (don't
> remember the details) the polygons of a particular class didn't even get
> rendered.
>
> cheers,
> stefan
>
> On 2/29/16 15:19, Daniel Victoria wrote:
>
> Hi List,
>
> This is probaly more of a GeoServer question but, GeoNode users probably
> have faced this some time or another, so here we go:
>
> I have a soil vector layer with lots of different soil classes. In order
> to create a nice layer style, I used QGis v2.12 to create some nice legend.
> I then saved the layer style as a SLD file and pasted it in GeoServer. This
> process has worked quite nice, despite differences in SLD version between
> QGis (v1.1) and GeoSever (1.0). But it's not 100% and if I try to edit the
> layer style using GeoNode Style editor, thing stop working and the style is
> messed up.
>
> So, what are the workflows for setting complex layer styles? Anyone using
> QGis to generate SLD? I heard uDig is also a good tool for style
> generation? And what about the Geoserver Explorer plugin? I never had much
> luck using the plugin but I believe there is a problem with some of the
> layers in my geoserver instance that is messing things up.
>
> Thanks
> Daniel
>
>
> _______________________________________________
> geonode-users mailing listgeonode-users at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160301/296fb02a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: style_qgis.sld
Type: application/vnd.ogc.sld+xml
Size: 1042 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160301/296fb02a/attachment-0001.bin>


More information about the geonode-users mailing list