Giter Site home page Giter Site logo

qgis-suite-plugin's Introduction

OpenGeo Explorer

This plugin for QGIS has been discontinued.

GeoServer functionality can now be found in the GeoServer plugin

https://github.com/boundlessgeo/qgis-geoserver-plugin

PostGIS functionality is available in the built-in QGIS DB Manager

Documentation

Nevertheless, the plugin is documented here.

Cloning this repository

This repository uses external repositories as submodules. Therefore in order to include the external repositories during cloning you should use the --recursive option:

git clone --recursive http://github.com/boundlessgeo/qgis-suite-plugin.git

Also, to update the submodules whenever there are changes in the remote repositories one should do:

git submodule update --remote

qgis-suite-plugin's People

Contributors

alexbruy avatar bmmpxf avatar dakcarto avatar ischneider avatar jmarin avatar luipir avatar ndkv avatar srnetochan avatar tbarsballe avatar vdeparday avatar volaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qgis-suite-plugin's Issues

Possible error publishing polygons with holes

While trying to publish a layer such as the one in the screenshot, GeoServer only ends up publishing the polygon with holes. Need to investigate this at QA phase, might be data related or problem with the REST API
screen shot 2013-07-21 at 3 45 49 pm

Two exceptions when trying to drag a PostGIS layer

Although issue #37 has been closed I am still getting two errors.
Configuration (from KyngChaos MacOS X build) :
QGIS version 2.0.1-Dufour QGIS code revision f738351
Compiled against Qt 4.8.5 Running against Qt 4.8.5
Compiled against GDAL/OGR 1.10.1 Running against GDAL/OGR 1.10.0
Compiled against GEOS 3.4.2-CAPI-1.8.2 Running against GEOS 3.4.1-CAPI-1.8.0 r3892
PostgreSQL Client Version 9.2.4 SpatiaLite Version 4.1.1
QWT Version 6.0.2 PROJ.4 Version 480
QScintilla2 Version 2.7.2

The first is the same one as in #37. The second one is a new one:

An error has occured while executing Python code:

Traceback (most recent call last):
File "/Users/viv/.qgis2/python/plugins/opengeo/gui/explorertree.py", line 153, in mimeData
uri = uri_utils.tableMimeUri(table)
File "/Users/viv/.qgis2/python/plugins/opengeo/qgis/uri.py", line 48, in tableMimeUri
if isinstance(table, Table):
NameError: global name 'Table' is not defined

Python version:
2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]

Keep a list of the GeoServer catalog after QGIS closes

Just a feature request not a bug: as it stands, every time a user closes QGIS then he has to re-enter the information to connect to the catalog, it would be nice if (like for the PostGIS connections), there was a list of GeoServer catalog that is saved from one session to the other.

Installing QGIS2 alongside Opengeosuite

Hi, I set up a new ubuntu server 1304. I installed the opengeosuite; it works fine. Next thing to do is install qgis 2.0 from the qgis-nightly. so i can try this plugin. because i''m really excited about this.
But I cant install qgis nightly because of a problem in the libgdall1 thing (im not an linux expert)

These is the output.

web@OGSuite1304:$ sudo apt-get -f install
[sudo] password for web:
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De status informatie wordt gelezen... Klaar
Vereisten worden gecorrigeerd... Klaar
De volgende extra pakketten zullen geïnstalleerd worden:
gdal-bin libgdal1
De volgende NIEUWE pakketten zullen geïnstalleerd worden:
gdal-bin libgdal1
0 pakketten opgewaardeerd, 2 pakketten nieuw geïnstalleerd, 0 te verwijderen en 4 niet opgewaardeerd.
11 pakketten niet volledig geïnstalleerd of verwijderd.
Er moeten 0 B/4956 kB aan archieven opgehaald worden.
Door deze operatie zal er 15,6 MB extra schijfruimte gebruikt worden.
Wilt u doorgaan [J/n]? J
(Database inlezen ... 189056 files and directories currently installed.)
Uitpakken van libgdal1 (uit .../libgdal1_1.9.0-3.1ubuntu1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libgdal1_1.9.0-3.1ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/libgdal.so.1', which is also in package libgdal 1.9.1-1
Er is geen apport-verslag weggeschreven omdat het maximum aantal verslagen (MaxReports) al is bereikt
Uitpakken van gdal-bin (uit .../gdal-bin_1.9.0-3.1ubuntu1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/gdal-bin_1.9.0-3.1ubuntu1_amd64.deb (--unpack):
trying to overwrite '/usr/bin/ogrtindex', which is also in package libgdal 1.9.1-1
Er is geen apport-verslag weggeschreven omdat het maximum aantal verslagen (MaxReports) al is bereikt
dpkg-deb: error: subprocess paste was killed by signal (Gebroken pijp)
Processing triggers for man-db ...
Fouten gevonden tijdens behandelen van:
/var/cache/apt/archives/libgdal1_1.9.0-3.1ubuntu1_amd64.deb
/var/cache/apt/archives/gdal-bin_1.9.0-3.1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
web@OGSuite1304:
$

Error creating Layer Group

Received this error when trying to create a Layer Group via the UI.

An error has occured while executing Python code:

Traceback (most recent call last):
File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/explorer.py", line 287, in finish
item.refreshContent()
File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 20, in refreshContent
self.populate()
File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 109, in populate
groupItem.populate()
File "/Users/jj0hns0n/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 189, in populate
for layer in self.element.layers:
TypeError: 'NoneType' object is not iterable

Python version:
2.7.4 (default, May 10 2013, 08:56:29)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]

Clicking on refresh while selecting Geoserver Catalogs generate an exception and delete all the geoserver catalogs

When selecting the parent item: Geoserver Catalogs (highlighted in blue) and then clicking refresh at the top on the box generate the following exception and also delete all the existing GeoServer catalog in the tree.

An error has occured while executing Python code:

Traceback (most recent call last):
File "/Users/viv/.qgis2/python/plugins/opengeo/gui/exploreritems.py", line 17, in refreshContent
self.populate()
File "/Users/viv/.qgis2/python/plugins/opengeo/gui/gsexploreritems.py", line 180, in populate
item = self.getGeoServerCatalogItem(catalog, name)
TypeError: getGeoServerCatalogItem() takes exactly 4 arguments (3 given)

Exception raised when trying to drag a GeoServer layer

Issue #38 was closed but I still get an exception. The exception is a bit different.

I am using QGIS 2.0 with the KingChaos build (recommended on qgis.org: http://www.qgis.org/en/site/forusers/download.html).

This is the versions of the libraries:
QGIS version 2.0.1-Dufour QGIS code revision f738351
Compiled against Qt 4.8.5 Running against Qt 4.8.5
Compiled against GDAL/OGR 1.10.1 Running against GDAL/OGR 1.10.0
Compiled against GEOS 3.4.2-CAPI-1.8.2 Running against GEOS 3.4.1-CAPI-1.8.0 r3892
PostgreSQL Client Version 9.2.4 SpatiaLite Version 4.1.1
QWT Version 6.0.2 PROJ.4 Version 480
QScintilla2 Version 2.7.2

An error has occured while executing Python code:

Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1374, in dumps
Pickler(file, protocol).dump(obj)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 725, in save_inst
save(stuff)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 306, in save
rv = reduce(self.proto)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.py", line 77, in _reduce_ex
raise TypeError("a class that defines slots without "
TypeError: a class that defines slots without defining getstate cannot be pickled

Python version:
2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]

Exception when trying to drag a GeoServer layer

An error has occured while executing Python code:

Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1374, in dumps
Pickler(file, protocol).dump(obj)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 306, in save
rv = reduce(self.proto)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.name
TypeError: can't pickle instancemethod objects

Namespaces not supported for layers through REST API

When a new resource is created into a workspace x, a layer in that workspace is created. Hwever, the REST API lists all layers together, ignoring namespaces, so in practice x:layer and y:layer will be listed as "layer".

GWC uses the full qualified name, which is likely to cause confussion and problems

Better error message when unable to connect to GeoServer

I tried to connect to my local GeoServer, but had forgotten that I had changed the port. The following is the error message I get when the plugin can't connect:

An error has occured while executing Python code:

Traceback (most recent call last):
  File "C:\Users\Mike/.qgis2/python/plugins\opengeo\gui\gsexploreritems.py", line 188, in 
    createCatalogAction.triggered.connect(lambda: self.addGeoServerCatalog(explorer))
  File "C:\Users\Mike/.qgis2/python/plugins\opengeo\gui\gsexploreritems.py", line 196, in addGeoServerCatalog
    v = cat.gsversion()
  File "C:\Users\Mike/.qgis2/python/plugins\opengeo\geoserver\catalog.py", line 86, in gsversion
    response, content = self.http.request(about_url, "GET")
  File "C:\Users\Mike/.qgis2/python/plugins\opengeo\httplib2\__init__.py", line 1591, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "C:\Users\Mike/.qgis2/python/plugins\opengeo\httplib2\__init__.py", line 1339, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "C:\Users\Mike/.qgis2/python/plugins\opengeo\httplib2\__init__.py", line 1275, in _conn_request
    conn.connect()
  File "C:\Users\Mike/.qgis2/python/plugins\opengeo\httplib2\__init__.py", line 910, in connect
    raise socket.error, msg
error: [Errno 10061] No connection could be made because the target machine actively refused it`

Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

QGIS version:
2.0.1-Dufour Dufour, d94c044`

Python path: ['C:\\Users\\Mike/.qgis2/python/plugins\\opengeo', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins\\processing', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python', 'C:\\Users\\Mike/.qgis2/python', 'C:\\Users\\Mike/.qgis2/python/plugins', 'C:/PROGRA~1/QGISDU~1/apps/qgis/./python/plugins', 'C:\\PROGRA~1\\QGISDU~1\\bin\\python27.zip', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\DLLs', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\plat-win', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\lib-tk', 'C:\\PROGRA~1\\QGISDU~1\\bin', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\PIL', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\win32\\lib', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\Pythonwin', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\six-1.3.0-py2.7.egg', 'C:\\PROGRA~1\\QGISDU~1\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode', 'C:\\PROGRA~1\\QGISDU~1\\apps\\qgis\\python\\plugins\\fTools\\tools']

Wouldn't a simple message saying "Could not connect to GeoServer" suffice? 😄

Trying to add a vector layer to a QGIS project leads to Python error

Trying to add a vector layer to a QGIS project leads to this error:

(Try layers from demo.opengeo.org/geoserver)

An error has occured while executing Python code:

Traceback (most recent call last):
File "C:\Users\OpenGeo/.qgis2/python/plugins\opengeo\gui\gsexploreritems.py", line 545, in
addLayerAction.triggered.connect(lambda: self.addLayerToProject(explorer))
File "C:\Users\OpenGeo/.qgis2/python/plugins\opengeo\gui\gsexploreritems.py", line 685, in addLayerToProject
cat.addLayerToProject(self.element.name)
File "C:\Users\OpenGeo/.qgis2/python/plugins\opengeo\qgis\catalog.py", line 296, in addLayerToProject
raise e
AttributeError: 'NoneType' object has no attribute 'sld_body'

Python version:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

Extend behaviour for drag & drop operations

It would be good if the user could select the behaviour he want when a d&d operation is performed. From a simpler one using default values, to a more detailed one in which an intermediate dialog is shown

PostGIS connection management is confusing

I have played around with the PostGIS connections and I have found it a bit confusing. I supposed it is due to the way it is meant to integrate with the QGIS DB Manager.

  • I coundn't edit the PostGIS connection characteristics that I had just created except for the user and password (or no hint to do hint through another of the QGIS dialogs).
  • I couldn't delete the connection
  • I ended up editing it through the 'Add PostGIS Layers'
  • But then the OpenGeo explored connection lists and the 'Add PostGIS Layers' connection lists went out of sync when I renamed one through the 'Add PostGIS layers' dialog.

Drag & Drop layer to map canvas

From the GeoServer Catalog, I should be able to pick a layer and drag it to the map canvas, in order to display its contents in QGIS

Labels not rendered by GeoServer

Created a layer style with lablels and published to GeoServer and the labels were not rendered by GeoServer (in the layer preview)

doesnt open the plugin.

After ibnstallin i got this...

Kan deze plugin niet laden opengeo door een fout bij het aanroepen van de classFactory()-methode

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 204, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "/home/web/.qgis2/python/plugins/opengeo/init.py", line 6, in classFactory
from opengeo.plugin import OpenGeoPlugin
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/web/.qgis2/python/plugins/opengeo/plugin.py", line 8, in
from opengeo.gui.explorer import OpenGeoExplorer
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/web/.qgis2/python/plugins/opengeo/gui/explorer.py", line 7, in
from opengeo.gui.explorerwidget import ExplorerWidget
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/web/.qgis2/python/plugins/opengeo/gui/explorerwidget.py", line 4, in
from opengeo.gui.explorertree import ExplorerTreeWidget
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/web/.qgis2/python/plugins/opengeo/gui/explorertree.py", line 3, in
from opengeo.gui.gsexploreritems import *
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/web/.qgis2/python/plugins/opengeo/gui/gsexploreritems.py", line 19, in
from opengeo.gui.qgsexploreritems import QgsLayerItem, QgsGroupItem,
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 453, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/web/.qgis2/python/plugins/opengeo/gui/qgsexploreritems.py", line 154
def createStoresFromLayers(self, tree, explorer, selected):
^
IndentationError: expected an indented block

Python versie:
2.7.3 (default, Apr 10 2013, 06:31:07)
[GCC 4.6.3]

QGIS versie:
1.9.0-Master Master, exported

Python pad: ['/usr/share/qgis/python/plugins/processing', '/usr/share/qgis/python', '/home/web/.qgis2/python', '/home/web/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/share/qgis/python/plugins/fTools/tools']

Categorized Styles not displayed correctly in GeoServer

I created a Categorized style based on a value and published it to GeoServer via the plugin. The style appears to have been published into the list of styles correctly, and the SLD is valid and looks correct based on a minimal inspection, but the layer does not render properly in the layer preview (uses only a single symbol).

It could be that the SLD looks correct, but the rules are not specified correctly.

Exception prevent from starting the plugin

I am working of the master branch. It was working fine. I just played around with the plugin (see issue #47) but then I just tried to restart QGIS and now I get the following exception which prevent from loading the plugin. I tried again with a new clone. Same error.:

Couldn't load plugin opengeo due an error when calling its initGui() method

Traceback (most recent call last):
File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 213, in startPlugin
plugins[packageName].initGui()
File "/Users/viv/.qgis2/python/plugins/opengeo/plugin.py", line 45, in initGui
self.explorer = OpenGeoExplorer(singletab = singletab)
File "/Users/viv/.qgis2/python/plugins/opengeo/gui/explorer.py", line 25, in init
dsn = dsn if dsn.strip() != "" else RAVEN_URL
AttributeError: 'QPyNullVariant' object has no attribute 'strip'

Two exceptions when trying to drag a PostGIS layer

That is the first exception:

An error has occured while executing Python code:

Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1374, in dumps
Pickler(file, protocol).dump(obj)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 725, in save_inst
save(stuff)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 663, in _batch_setitems
save(v)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 306, in save
rv = reduce(self.proto)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy_reg.py", line 71, in _reduce_ex
state = base(self)
TypeError: the sip.simplewrapper type cannot be instantiated or sub-classed

This is the second exception:

An error has occured while executing Python code:

Traceback (most recent call last):
File "/Users/viv/.qgis2/python/plugins/opengeo/gui/explorertree.py", line 143, in mimeData
uri = pgutils.mimeUri(table)
File "/Users/viv/.qgis2/python/plugins/opengeo/postgis/postgis_utils.py", line 646, in mimeUri
uri = tableUri(table)
File "/Users/viv/.qgis2/python/plugins/opengeo/postgis/postgis_utils.py", line 640, in tableUri
uri.setConnection(geodb.host, str(geodb.port), geodb.dbname, geodb.user, geodb.passwd)
TypeError: arguments did not match any overloaded call:
QgsDataSourceURI.setConnection(QString, QString, QString, QString, QString, QgsDataSourceURI.SSLmode sslmode=QgsDataSourceURI.SSLprefer): argument 4 has unexpected type 'QPyNullVariant'
QgsDataSourceURI.setConnection(QString, QString, QString, QString, QgsDataSourceURI.SSLmode sslmode=QgsDataSourceURI.SSLprefer): argument 4 has unexpected type 'QPyNullVariant'

Cloropleth style publishes as single fill

A style such as the following gets published as a single color in GeoServer

<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis version="1.9.0-Master" minLabelScale="0" maxLabelScale="1e+08" scaleBasedLabelVisibilityFlag="0">
 <renderer-v2 attr="ProbSurge05" symbollevels="0" type="graduatedSymbol">
  <ranges>
   <range symbol="0" lower="1.000000" upper="20.600000" label="1.0000 - 20.6000"/>
   <range symbol="1" lower="20.600000" upper="40.200000" label="20.6000 - 40.2000"/>
   <range symbol="2" lower="40.200000" upper="59.800000" label="40.2000 - 59.8000"/>
   <range symbol="3" lower="59.800000" upper="79.400000" label="59.8000 - 79.4000"/>
   <range symbol="4" lower="79.400000" upper="99.000000" label="79.4000 - 99.0000"/>
  </ranges>
  <symbols>
   <symbol alpha="1" type="fill" name="0">
    <layer pass="0" class="SimpleFill" locked="0">
     <prop k="border_width_unit" v="MM"/>
     <prop k="color" v="247,251,255,255"/>
     <prop k="color_border" v="0,0,0,255"/>
     <prop k="offset" v="0,0"/>
     <prop k="offset_unit" v="MM"/>
     <prop k="style" v="solid"/>
     <prop k="style_border" v="no"/>
     <prop k="width_border" v="0.26"/>
    </layer>
   </symbol>
   <symbol alpha="1" type="fill" name="1">
    <layer pass="0" class="SimpleFill" locked="0">
     <prop k="border_width_unit" v="MM"/>
     <prop k="color" v="199,220,239,255"/>
     <prop k="color_border" v="0,0,0,255"/>
     <prop k="offset" v="0,0"/>
     <prop k="offset_unit" v="MM"/>
     <prop k="style" v="solid"/>
     <prop k="style_border" v="no"/>
     <prop k="width_border" v="0.26"/>
    </layer>
   </symbol>
   <symbol alpha="1" type="fill" name="2">
    <layer pass="0" class="SimpleFill" locked="0">
     <prop k="border_width_unit" v="MM"/>
     <prop k="color" v="114,178,215,255"/>
     <prop k="color_border" v="0,0,0,255"/>
     <prop k="offset" v="0,0"/>
     <prop k="offset_unit" v="MM"/>
     <prop k="style" v="solid"/>
     <prop k="style_border" v="no"/>
     <prop k="width_border" v="0.26"/>
    </layer>
   </symbol>
   <symbol alpha="1" type="fill" name="3">
    <layer pass="0" class="SimpleFill" locked="0">
     <prop k="border_width_unit" v="MM"/>
     <prop k="color" v="40,120,184,255"/>
     <prop k="color_border" v="0,0,0,255"/>
     <prop k="offset" v="0,0"/>
     <prop k="offset_unit" v="MM"/>
     <prop k="style" v="solid"/>
     <prop k="style_border" v="no"/>
     <prop k="width_border" v="0.26"/>
    </layer>
   </symbol>
   <symbol alpha="1" type="fill" name="4">
    <layer pass="0" class="SimpleFill" locked="0">
     <prop k="border_width_unit" v="MM"/>
     <prop k="color" v="8,48,107,255"/>
     <prop k="color_border" v="0,0,0,255"/>
     <prop k="offset" v="0,0"/>
     <prop k="offset_unit" v="MM"/>
     <prop k="style" v="solid"/>
     <prop k="style_border" v="no"/>
     <prop k="width_border" v="0.26"/>
    </layer>
   </symbol>
  </symbols>
  <source-symbol>
   <symbol alpha="1" type="fill" name="0">
    <layer pass="0" class="SimpleFill" locked="0">
     <prop k="border_width_unit" v="MM"/>
     <prop k="color" v="178,168,124,255"/>
     <prop k="color_border" v="0,0,0,255"/>
     <prop k="offset" v="0,0"/>
     <prop k="offset_unit" v="MM"/>
     <prop k="style" v="solid"/>
     <prop k="style_border" v="no"/>
     <prop k="width_border" v="0.26"/>
    </layer>
   </symbol>
  </source-symbol>
  <colorramp type="gradient" name="[source]">
   <prop k="color1" v="247,251,255,255"/>
   <prop k="color2" v="8,48,107,255"/>
   <prop k="discrete" v="0"/>
   <prop k="stops" v="0.13;222,235,247,255:0.26;198,219,239,255:0.39;158,202,225,255:0.52;107,174,214,255:0.65;66,146,198,255:0.78;33,113,181,255:0.9;8,81,156,255"/>
  </colorramp>
  <mode name="equal"/>
  <rotation field=""/>
  <sizescale field="" scalemethod="area"/>
 </renderer-v2>
 <customproperties>
  <property key="labeling" value="pal"/>
  <property key="labeling/addDirectionSymbol" value="false"/>
  <property key="labeling/angleOffset" value="0"/>
  <property key="labeling/blendMode" value="0"/>
  <property key="labeling/bufferBlendMode" value="0"/>
  <property key="labeling/bufferColorA" value="255"/>
  <property key="labeling/bufferColorB" value="255"/>
  <property key="labeling/bufferColorG" value="255"/>
  <property key="labeling/bufferColorR" value="255"/>
  <property key="labeling/bufferDraw" value="false"/>
  <property key="labeling/bufferJoinStyle" value="64"/>
  <property key="labeling/bufferNoFill" value="false"/>
  <property key="labeling/bufferSize" value="1"/>
  <property key="labeling/bufferSizeInMapUnits" value="false"/>
  <property key="labeling/bufferTransp" value="0"/>
  <property key="labeling/centroidWhole" value="false"/>
  <property key="labeling/decimals" value="3"/>
  <property key="labeling/displayAll" value="false"/>
  <property key="labeling/dist" value="0"/>
  <property key="labeling/distInMapUnits" value="false"/>
  <property key="labeling/enabled" value="false"/>
  <property key="labeling/fieldName" value=""/>
  <property key="labeling/fontBold" value="false"/>
  <property key="labeling/fontCapitals" value="0"/>
  <property key="labeling/fontFamily" value="Lucida Grande"/>
  <property key="labeling/fontItalic" value="false"/>
  <property key="labeling/fontLetterSpacing" value="0"/>
  <property key="labeling/fontLimitPixelSize" value="false"/>
  <property key="labeling/fontMaxPixelSize" value="10000"/>
  <property key="labeling/fontMinPixelSize" value="3"/>
  <property key="labeling/fontSize" value="13"/>
  <property key="labeling/fontSizeInMapUnits" value="false"/>
  <property key="labeling/fontStrikeout" value="false"/>
  <property key="labeling/fontUnderline" value="false"/>
  <property key="labeling/fontWeight" value="50"/>
  <property key="labeling/fontWordSpacing" value="0"/>
  <property key="labeling/formatNumbers" value="false"/>
  <property key="labeling/isExpression" value="false"/>
  <property key="labeling/labelOffsetInMapUnits" value="true"/>
  <property key="labeling/labelPerPart" value="false"/>
  <property key="labeling/leftDirectionSymbol" value="&lt;"/>
  <property key="labeling/limitNumLabels" value="false"/>
  <property key="labeling/maxCurvedCharAngleIn" value="20"/>
  <property key="labeling/maxCurvedCharAngleOut" value="-20"/>
  <property key="labeling/maxNumLabels" value="2000"/>
  <property key="labeling/mergeLines" value="false"/>
  <property key="labeling/minFeatureSize" value="0"/>
  <property key="labeling/multilineAlign" value="0"/>
  <property key="labeling/multilineHeight" value="1"/>
  <property key="labeling/namedStyle" value="Regular"/>
  <property key="labeling/obstacle" value="true"/>
  <property key="labeling/placeDirectionSymbol" value="0"/>
  <property key="labeling/placement" value="0"/>
  <property key="labeling/placementFlags" value="0"/>
  <property key="labeling/plussign" value="false"/>
  <property key="labeling/preserveRotation" value="true"/>
  <property key="labeling/previewBkgrdColor" value="#ffffff"/>
  <property key="labeling/priority" value="5"/>
  <property key="labeling/quadOffset" value="4"/>
  <property key="labeling/reverseDirectionSymbol" value="false"/>
  <property key="labeling/rightDirectionSymbol" value=">"/>
  <property key="labeling/scaleMax" value="10000000"/>
  <property key="labeling/scaleMin" value="1"/>
  <property key="labeling/scaleVisibility" value="false"/>
  <property key="labeling/shadowBlendMode" value="6"/>
  <property key="labeling/shadowColorB" value="0"/>
  <property key="labeling/shadowColorG" value="0"/>
  <property key="labeling/shadowColorR" value="0"/>
  <property key="labeling/shadowDraw" value="false"/>
  <property key="labeling/shadowOffsetAngle" value="135"/>
  <property key="labeling/shadowOffsetDist" value="1"/>
  <property key="labeling/shadowOffsetGlobal" value="true"/>
  <property key="labeling/shadowOffsetUnits" value="1"/>
  <property key="labeling/shadowRadius" value="1.5"/>
  <property key="labeling/shadowRadiusAlphaOnly" value="false"/>
  <property key="labeling/shadowRadiusUnits" value="1"/>
  <property key="labeling/shadowScale" value="100"/>
  <property key="labeling/shadowTransparency" value="30"/>
  <property key="labeling/shadowUnder" value="0"/>
  <property key="labeling/shapeBlendMode" value="0"/>
  <property key="labeling/shapeBorderColorA" value="255"/>
  <property key="labeling/shapeBorderColorB" value="128"/>
  <property key="labeling/shapeBorderColorG" value="128"/>
  <property key="labeling/shapeBorderColorR" value="128"/>
  <property key="labeling/shapeBorderWidth" value="0"/>
  <property key="labeling/shapeBorderWidthUnits" value="1"/>
  <property key="labeling/shapeDraw" value="false"/>
  <property key="labeling/shapeFillColorA" value="255"/>
  <property key="labeling/shapeFillColorB" value="255"/>
  <property key="labeling/shapeFillColorG" value="255"/>
  <property key="labeling/shapeFillColorR" value="255"/>
  <property key="labeling/shapeJoinStyle" value="64"/>
  <property key="labeling/shapeOffsetUnits" value="1"/>
  <property key="labeling/shapeOffsetX" value="0"/>
  <property key="labeling/shapeOffsetY" value="0"/>
  <property key="labeling/shapeRadiiUnits" value="1"/>
  <property key="labeling/shapeRadiiX" value="0"/>
  <property key="labeling/shapeRadiiY" value="0"/>
  <property key="labeling/shapeRotation" value="0"/>
  <property key="labeling/shapeRotationType" value="0"/>
  <property key="labeling/shapeSVGFile" value=""/>
  <property key="labeling/shapeSizeType" value="0"/>
  <property key="labeling/shapeSizeUnits" value="1"/>
  <property key="labeling/shapeSizeX" value="0"/>
  <property key="labeling/shapeSizeY" value="0"/>
  <property key="labeling/shapeTransparency" value="0"/>
  <property key="labeling/shapeType" value="0"/>
  <property key="labeling/textColorA" value="255"/>
  <property key="labeling/textColorB" value="0"/>
  <property key="labeling/textColorG" value="0"/>
  <property key="labeling/textColorR" value="0"/>
  <property key="labeling/textTransp" value="0"/>
  <property key="labeling/upsidedownLabels" value="0"/>
  <property key="labeling/wrapChar" value=""/>
  <property key="labeling/xOffset" value="0"/>
  <property key="labeling/yOffset" value="0"/>
 </customproperties>
 <blendMode>0</blendMode>
 <featureBlendMode>0</featureBlendMode>
 <layerTransparency>0</layerTransparency>
 <displayfield>POINTID</displayfield>
 <label>0</label>
 <labelattributes>
  <label fieldname="" text="Label"/>
  <family fieldname="" name="Lucida Grande"/>
  <size fieldname="" units="pt" value="12"/>
  <bold fieldname="" on="0"/>
  <italic fieldname="" on="0"/>
  <underline fieldname="" on="0"/>
  <strikeout fieldname="" on="0"/>
  <color fieldname="" red="0" blue="0" green="0"/>
  <x fieldname=""/>
  <y fieldname=""/>
  <offset x="0" y="0" units="pt" yfieldname="" xfieldname=""/>
  <angle fieldname="" value="0" auto="0"/>
  <alignment fieldname="" value="center"/>
  <buffercolor fieldname="" red="255" blue="255" green="255"/>
  <buffersize fieldname="" units="pt" value="1"/>
  <bufferenabled fieldname="" on=""/>
  <multilineenabled fieldname="" on=""/>
  <selectedonly on=""/>
 </labelattributes>
 <edittypes>
  <edittype labelontop="0" editable="1" type="0" name="POINTID"/>
  <edittype labelontop="0" editable="1" type="0" name="ProbSurge05"/>
 </edittypes>
 <editform></editform>
 <editforminit></editforminit>
 <annotationform></annotationform>
 <editorlayout>generatedlayout</editorlayout>
 <excludeAttributesWMS/>
 <excludeAttributesWFS/>
 <attributeactions/>
</qgis>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.