[Qgis-developer] Difference of "import" inside qgis python console and inside a python plugin

2015-04-02 Thread Luca Mandolesi
Hi to all, I'm trying to use vispy module inside my python plugin, but a strange thing happens: If I call import vispy inside the Qgis python console the script runs properly, but, if I put the "import vispy", at the beginning of my plugin, I receive this error [0] Why inside the Qgis python con

Re: [Qgis-developer] Setting up environment for developing with QGIS in c++

2015-04-02 Thread George Silva
Thanks Richard, I'm on Linux :D. I'll take a look at the resources. Thanks! On Thu, Apr 2, 2015 at 2:48 PM, Richard Duivenvoorde wrote: > On 02-04-15 19:24, George Silva wrote: > > Hello everyone, > > > > Is there a place where I can find documentation on what sort of > > environment I need to

Re: [Qgis-developer] Setting up environment for developing with QGIS in c++

2015-04-02 Thread Richard Duivenvoorde
On 02-04-15 19:24, George Silva wrote: > Hello everyone, > > Is there a place where I can find documentation on what sort of > environment I need to develop/debug QGIS itself? > > What's the motivation behind this is a blocker bug in Raster Calculator, > that I reported. Hi George, depending on

[Qgis-developer] Setting up environment for developing with QGIS in c++

2015-04-02 Thread George Silva
Hello everyone, Is there a place where I can find documentation on what sort of environment I need to develop/debug QGIS itself? What's the motivation behind this is a blocker bug in Raster Calculator, that I reported. THanks -- George R. C. Silva SIGMA Consultoria

[Qgis-developer] QGIS WPS plugin misses one parameter

2015-04-02 Thread Yannick Tylle
Hello everybody, I set up a Web Processing Service with 52°North and GRASS (using the wps-grass-bridge). All went smooth and I get a proper DescribeProcess for i.cluster similar to the demo here: http://geoprocessing.demo.52north.org:8080/wps/WebProcessingService?REQUEST= DescribeProcess

Re: [Qgis-developer] Background to Lable

2015-04-02 Thread Nikhil Murarka
shapefile format, but most > >> data sources QGIS handles don't have this limitation. I also > >> think it does not hold with quite a lot of modern GIS uses > >> (especially web related, think of openstreetmaps for instance). > >> > >> There's this feature request (6th oldest op

Re: [Qgis-developer] Thoughts about multi-type tables in QGIS

2015-04-02 Thread Olivier Dalang
Hi, Would it really be more complicated ? I mean, for now, an algorithm that works only with line layers already has to check whether the layer is of type line. That's done before iterating the features. Exactly in the same way, there would be functions to determine whether a layer supports a ge

Re: [Qgis-developer] Thoughts about multi-type tables in QGIS

2015-04-02 Thread Bo Victor Thomsen
As an old MapInfo user/developer my opion is: Don't do it. It has always been a problem in MapInfo and it will be a problem in QGIS - if implemented. A better approach is to have the possibility to let different QGIS layers share some common characteristics (for example labelling). And - of c

Re: [Qgis-developer] Thoughts about multi-type tables in QGIS

2015-04-02 Thread Matthias Kuhn
I agree with Nathan, for algorithms, symbology and a lot of small things it will become very complicated. As an alternative approach, we could think about having some layer settings defined on group level (and maybe even a merged attribute table for the whole group). That would already make a lot

Re: [Qgis-developer] Thoughts about multi-type tables in QGIS

2015-04-02 Thread Nathan Woodrow
I would not be in favour of supporting a many geometry type per layer type setup, it just makes things a heap more complicated IMO for little gain. Also makes your code a lot more complicated, you now have to check each geometry for type because you are never sure what you will get. MapInfo did t

[Qgis-developer] Drag & Drop into MapCanvas

2015-04-02 Thread Boehnke, Christian
Hello, I wrote a QGIS Plugin to load MS Access Databases into a QTreeWidget. At a first step, I'm able to display the tables as a temporary shape file by clicking a button and executing a proper function. Now I want to drag the tables into the QGIS Map Canvas (and to be shown as temporary shape

Re: [Qgis-developer] Thoughts about multi-type tables in QGIS

2015-04-02 Thread Denis Rouzaud
Hi Olivier, I think you can easily extend your reasoning to the support of multiple geometry columns in QGIS. I believe that this would come in QGIS at some point. If QGIS 3 is getting closer, our company will support this feature. As you suggest, the layer could have different geometry types

[Qgis-developer] Thoughts about multi-type tables in QGIS

2015-04-02 Thread Olivier Dalang
Hi, In some projects of mine, I work with multiple geometry types in one postgis table, using a column of type geometry(Geometry,4326). This is very well supported by postgis. It is possible to load such a table in QGIS by manually selecting the geometry type you want to load. This means that to

Re: [Qgis-developer] Adding grass commands to the processing toolbox

2015-04-02 Thread Paolo Cavallini
Il 02/04/2015 12:40, Olivier Dalang ha scritto: > Yes but for now I only looked at the binding for v.net.centrality, > shouldn't we be a bit more general and bind the all the v.net.* > functions before making a pull request ? This could be even better, but one is better than nothing. All the best

Re: [Qgis-developer] Adding grass commands to the processing toolbox

2015-04-02 Thread Olivier Dalang
Hi, Could you please submit it as a Pull Request? Yes but for now I only looked at the binding for v.net.centrality, shouldn't we be a bit more general and bind the all the v.net.* functions before making a pull request ? In the meantime, I found how to make it work on mac too. The plugins\proc

Re: [Qgis-developer] Map canvas zoom resets visibility of QgsRubberBand

2015-04-02 Thread Anatoliy Golubev
This changes can be made in next major version with another API changes and for now I think it is better to save compatibility with existing user stuff. 2015-04-02 12:20 GMT+03:00 Sandro Santilli : > > My personal preference (for ease and intuitiveness) would be: > > - On construction - visibilit

Re: [Qgis-developer] Adding grass commands to the processing toolbox

2015-04-02 Thread Paolo Cavallini
Hi Olivier, Il 01/04/2015 16:26, Olivier Dalang ha scritto: > And now I've the function right in QGIS's toolbox, and it works perfectly ! Could you please submit it as a Pull Request? Thanks. -- Paolo Cavallini - www.faunalia.eu QGIS & PostGIS courses: http://www.faunalia.eu/training.html _

Re: [Qgis-developer] Canvas rotation.

2015-04-02 Thread Sandro Santilli
On Wed, Apr 01, 2015 at 02:04:03PM -0500, G. Garibaldi wrote: > Thanks. Very nice. GIS operators the world over are in your debt. Thank you ! It would be great if some of them could payback the debt by providing improvements to it, under form of automated tests, bugfixes and GUI enhancements :)

Re: [Qgis-developer] Map canvas zoom resets visibility of QgsRubberBand

2015-04-02 Thread Sandro Santilli
On Thu, Apr 02, 2015 at 09:24:42AM +0300, Anatoliy Golubev wrote: > Hi devs! > > I found another issue with QgsRubberBand which appear after fixing > #12392. See #12486 for details. > > Im trying to fix this issue and have a questions about expected > behavior of QgsRubberBand. > When we create Q

Re: [Qgis-developer] Bug in rendering Rasters in QGIS 2.4 2.6 and 2.8 in Windows

2015-04-02 Thread SBP
Hi Micheal, I tried this with pyramids too. But that did not help. I created external pyramids but the same behaviour continued. Regards, Sitansu -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Bug-in-rendering-Rasters-in-QGIS-2-4-2-6-and-2-8-in-Windows-tp5196427p5196587.ht

Re: [Qgis-developer] QGIS Web-Client Cant display HelloWorld example

2015-04-02 Thread Marc Beiling
Hi Andreas, thanks for your immediate reply! It was my fault and a permissions problem. The web folder had to be owned by www-data, but was owned by my personal user after i cloned the project from git. Now everything (both examples) works fine. I dont get the opacity-complaint from javascript wh

[Qgis-developer] programmatically load a plugin

2015-04-02 Thread PIERRE Sylvain
Hello, I would like to programmatically load a plugin from QGIS official repository (eg in startup python script) I’ve found QgsPluginManagerInterface class but I’m not sure addPluginMetadata can do the t