planetfederal / qgis-geoserver-plugin

GNU General Public License v2.0
62 stars 52 forks source link

Saving SLD from QGIS error #28

Closed Geoneer closed 8 years ago

Geoneer commented 8 years ago

On Windows 7 64bits Enterprise:

What did I do:

next error occurred:

must be string or buffer, not tuple Traceback (most recent call last): File "C:/Users/A613256/.qgis2/python/plugins\geoserverexplorer\gui\explorer.py", line 98, in run command(*params) File "build\bdist.win32\egg\geoserver\style.py", line 108, in update_body self.body_href, "PUT", body, headers) File "C:/Users/A613256/.qgis2/python/plugins\geoserverexplorer\geoserver\retry.py", line 14, in decorator raise e TypeError: must be string or buffer, not tuple

Q: Did you see this bug also?

What to do:

  1. workaround export SLD and put in the SLD editor?
  2. fix this bug in .py files?

I did fork the source also. I'm thinking about to try to solve this bug so the SLD is put to Geoserver through REST.

luipir commented 8 years ago

are you saying you are using plugin source code (then paver packaging) or the version installed from qgis plugin repo?

Geoneer commented 8 years ago

I did install the plugin throught the default QGIS repository:

http://plugins.qgis.org/plugins/plugins.xml

Geoneer commented 8 years ago

image

Geoneer commented 8 years ago

image

Geoneer commented 8 years ago

image

Geoneer commented 8 years ago

Geoserver: image

Geoneer commented 8 years ago

So I installed it from the default repos of the QGIS plugins.

luipir commented 8 years ago

ok...you installed from repo... but I can't reporduce your problem. You wrote:

in these steps there is no interaction with geoserver, but only saving polygon style in the qgis project. I suppose you applied a style to a polygon layer and imported the layer in the default geoserver worspace. Is it correct? The error is during import? is during loading the layer from geoserver? when?

Geoneer commented 8 years ago

let's see:

1

image

2

image

3

image

4 edit the style from the SLD

image

5 apply / save / close

image

Geoneer commented 8 years ago

So it happens when I want to edit the SLD file when double click on the Styles tree in the Geoserver explorer. In my case the style 'giant polygon'.

If you've not got this error and you could save the QGIS style SLD to the Geoserver, how did you do this? Did you first add the layer to QGIS and edit the styling there?

Geoneer commented 8 years ago

A few things I have to make clear:

  1. I'm using Geoserver for my internet data handling in WMS / CesiumJS
  2. I'm using QGIS to edit the styling of the layers which are stored in Geoserver
  3. My spatial data is in PostGIS 9.4 database, but at the moment I'm just testing with the Tasmania polygon in the default Geoserver Installtion
  4. I run Geoserver manualy in Jetty 6.1.8