Re: [Qgis-developer] QGIS Server Publish to Web plugin

2014-09-11 Thread René-Luc Dhont
Hi Alessandro, I think that this plugin is not yet necessary, because QGIS project is the way to Publish to Web. No need to export the project to a SLD configuration file like in the youth of QGIS-Server. Marco can confirm it, isn't it ? René-Luc Le 10/09/2014 09:38, Alessandro Pasotti a

Re: [Qgis-developer] QGIS Server Publish to Web plugin

2014-09-11 Thread Marco Hugentobler
Hi Yes, the 'publish to web' plugin is from the time when QGIS server had SLD as the only way of configuration (before 2009). Such a plugin could still be usefull to upload svg images / local data to the server or to replace db user/pw in the project file (but the old publish to web plugin

Re: [Qgis-developer] QGIS Server Publish to Web plugin

2014-09-11 Thread Alessandro Pasotti
Removed that fossil: https://github.com/qgis/QGIS-Documentation/pull/253 2014-09-11 9:08 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: Hi Yes, the 'publish to web' plugin is from the time when QGIS server had SLD as the only way of configuration (before 2009). Such a plugin

Re: [Qgis-developer] Open Badges

2014-09-11 Thread matteo
Hi all Recently I have learned about Mozilla Open Badges: http://www.openbadges.org/ Basically it is an open specification and infrastructure where anyone can issue badges which people can collect - and which can be later verified. Maybe we could make some use of it as a kind of

[Qgis-developer] Creating fully isolated python environment (virtualenv) on Linux

2014-09-11 Thread Matthias Ludwig
Hi,Iam writing a python standalone application, which should later run on windows (not my choice...). All the development is done on Ubuntu 12.04. I managed to run the application with a standard QGIS 2.2 Windows installer package. The problem is, that it starts but crashes unexpectedly without

[Qgis-developer] Allow experimental plugins

2014-09-11 Thread Rémi Bovard
Hi list, I'm trying to allow experimental plugins via a Python script and it doesn't work. Here is the code: from PyQt4.QtCore import QSettings s = QSettings() s.setValue(Qgis/plugin-installer/allowExperimental, True) What am I doing wrong? Thanks in advance. Rémi

[Qgis-developer] Deleting records from PostGIS

2014-09-11 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all. I'm noticing that deleting a large number of records from a PG table tekes an enormous amount of time. I imagine this is due to individual delete, une per record. Is there a way to speed this up? All the best. - -- Paolo Cavallini -

Re: [Qgis-developer] Deleting records from PostGIS

2014-09-11 Thread Necip Enes GENGEÇ
Hi Paolo, I tested with a table of 9000~ features. It took me almost no time to delete half of the table. (Config: Ubuntu 14.04, QGIS 2.4, Postgresql 9.3) I experienced something like this while I was working with a active delete/update trigger of the subjected table in oracle before. Regards,

Re: [Qgis-developer] Allow experimental plugins

2014-09-11 Thread Denis Rouzaud
Hi Rémi, On 11.09.2014 14:39, Rémi Bovard wrote: Hi list, I'm trying to allow experimental plugins via a Python script and it doesn't work. Here is the code: from PyQt4.QtCore import QSettings s = QSettings() s.setValue(Qgis/plugin-installer/allowExperimental, True) not sure, but try

Re: [Qgis-developer] Allow experimental plugins

2014-09-11 Thread Rémi Bovard
Hi Denis, Thanks for your answer but this is not better... If I manually enable / disable the checkbox, I can see both result with: s.value(Qgis/plugin-installer/allowExperimental) s.value(/qgis/plugin-installer/allowExperimental) Do you know if there is something else to do to allow

Re: [Qgis-developer] Allow experimental plugins

2014-09-11 Thread Denis Rouzaud
Sorry, looking in the debugger shows: s.setValue(/Qgis/plugin-installer/allowExperimental, True) so the first slash was missing. On 11.09.2014 15:28, Denis Rouzaud wrote: Hi Rémi, On 11.09.2014 14:39, Rémi Bovard wrote: Hi list, I'm trying to allow experimental plugins via a Python script

Re: [Qgis-developer] Deleting records from PostGIS

2014-09-11 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/09/2014 15:21, Necip Enes GENGEÇ ha scritto: Hi Paolo, I tested with a table of 9000~ features. It took me almost no time to delete half of the table. (Config: Ubuntu 14.04, QGIS 2.4, Postgresql 9.3) I experienced something like this

Re: [Qgis-developer] Deleting records from PostGIS

2014-09-11 Thread Matthias Kuhn
Hi Paolo, Does it make a difference if the attribute table is open or closed? On Don 11 Sep 2014 16:05:11 CEST, Paolo Cavallini wrote: * *BEGIN ENCRYPTED or SIGNED PART* * Il 11/09/2014 15:21, Necip Enes GENGEÇ ha scritto: Hi Paolo, I tested with a table of 9000~ features.

Re: [Qgis-developer] Deleting records from PostGIS

2014-09-11 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/09/2014 16:06, Matthias Kuhn ha scritto: Hi Paolo, Does it make a difference if the attribute table is open or closed? Got it: with a closed table, it is fast. Still a bit inconvenient for the unconscious user. Thanks. - -- Paolo

Re: [Qgis-developer] Deleting records from PostGIS

2014-09-11 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/09/2014 16:13, Matthias Kuhn ha scritto: I remember fixing something similar (or at least trying to) some months ago by introducing some kind of batch job detection on attribute table side. Would be good to spend some time on implementing

Re: [Qgis-developer] Allow experimental plugins

2014-09-11 Thread Rémi Bovard
After looking to the code [1], it's this setting which is read: /Qgis/plugin-installer/allowExperimental It's really strange... [1] https://github.com/qgis/QGIS/blob/master/python/pyplugin_installer/installer_data.py#L735 2014-09-11 15:37 GMT+02:00 Denis Rouzaud denis.rouz...@gmail.com:

Re: [Qgis-developer] Deleting records from PostGIS

2014-09-11 Thread Matthias Kuhn
On Don 11 Sep 2014 16:16:58 CEST, Paolo Cavallini wrote: Il 11/09/2014 16:13, Matthias Kuhn ha scritto: I remember fixing something similar (or at least trying to) some months ago by introducing some kind of batch job detection on attribute table side. Would be good to spend some time on

[Qgis-developer] Filtering a shapefile and editing

2014-09-11 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all. If I filter a shapefile after loading it, the layer can no longer be edited. Is this a provider limitation, or can we do something about it? Moreover, if I remove the filter after attempting to edit it, the layer remains impossible to edit

Re: [Qgis-developer] Filtering a shapefile and editing

2014-09-11 Thread Jürgen E . Fischer
Hi Paolo, On Thu, 11. Sep 2014 at 17:04:46 +0200, Paolo Cavallini wrote: If I filter a shapefile after loading it, the layer can no longer be edited. Is this a provider limitation, or can we do something about it? Yes. Moreover, if I remove the filter after attempting to edit it, the layer

[Qgis-developer] PyDev Debugging Protocol changes; remote debug plug-in issues

2014-09-11 Thread Bill Bishop
Hello, Is anyone successfully using the remote debug plug-in with PyDev Eclipse? I tried using it, and noticed that the debugging protocol used by PyDev appears to have changed, thus rendering the remote debug plug-in less than useful. The plug-in appeared to work at-first, but when it

Re: [Qgis-developer] PyDev Debugging Protocol changes; remote debug plug-in issues

2014-09-11 Thread Pirmin Kalberer
Hi Bill, On Thursday, September 11, 2014 10:37:51 AM Bill Bishop wrote: Is anyone successfully using the remote debug plug-in with PyDev Eclipse? I tried using it, and noticed that the debugging protocol used by PyDev appears to have changed, thus rendering the remote debug plug-in

Re: [Qgis-developer] Support for field aliases in expressions

2014-09-11 Thread Matthias Kuhn
Hi Michael and Martin, On Wed 10 Sep 2014 07:38:15 PM CEST, kimaidou wrote: Hi all, I am not sure using alias would be easier for the users. Some thoughts : * sometimes aliases are quite complicated, like Contexte de l'édition for a field named context. We would need to escape properly

[Qgis-developer] Very poor performance moving features

2014-09-11 Thread Gary Sherman
I'm getting very poor performance doing a simple move in edit mode of a moderate number of features (~5,000) This occurs moving simple point features---QGIS churns for a long time before displaying the new location of the selected features. This has been confirmed on both Windows 7 and OS X with

Re: [Qgis-developer] PyDev Debugging Protocol changes; remote debug plug-in issues

2014-09-11 Thread Bill Bishop
Hi Pirmin, I can only speak to the breakpoint code, since I didn't dig any deeper; but w/respect to that: on line 583 (or so) of pydevd.py (in the remote debug plug-in), the breakpoint parsing code is: file, line, condition = text.split('\t', 2) A new parameter (I'll call it bpid for

Re: [Qgis-developer] Getting center of layer in lat/long

2014-09-11 Thread Mark Coletti
On Wed, Sep 10, 2014 at 7:05 AM, Leyan ouyang.leyan...@hotmail.com wrote: On 09/09/2014 05:36 AM, Mark Coletti wrote: layerCenter = layer.extent().center() if layer.crs().geographicFlag() : # if already lat/long, do nothing return layerCenter else :

Re: [Qgis-developer] Getting center of layer in lat/long

2014-09-11 Thread Gary Sherman
On 9/11/14 1:09 PM, Mark Coletti wrote: However, this may be a valid concern if this does become a snippet on the web site. So, I'll ask again: how do I get this code added as a snippet to the web site since it's likely a common use case for plugin development? Hi Mark, The snippets are