Re: [QGIS-Developer] Adding Layer tree embedded widgets programmatically

2019-02-13 Thread Raymond Nijssen
Hi Richard, Here is some example code. I will try to make it work now. Groetjes! Raymond On 13-02-19 12:37, Richard Duivenvoorde wrote: Hi Devs, Thinking about creating a small plugin which would add a 'Layer tree embedded widget' to a layer in the legend, I hit:

Re: [QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope

2019-01-31 Thread Raymond Nijssen
Nevermind, that return line should work. The self.Branches and self.Nodes are variables containing the strings for your dict. The problem is in the AlgorithmDialog code. Hope someone else can help you with that. Cheers, Raymond On 31-01-19 09:02, Raymond Nijssen wrote: Hi Bjorn, What do

Re: [QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope

2019-01-31 Thread Raymond Nijssen
Hi Bjorn, What do you expect this {self.Branches:dest_id,self.Nodes:dest_id2} would result in? It doesn't look like python to me but I might be missing something. What does the variable self.Branches contain? "self" Refers to your Branches_Nodes class itself. (By the way, it is a good

Re: [QGIS-Developer] segmentSide and leftOfLine functions

2019-01-17 Thread Raymond Nijssen
Should be fixed -- looks like needless duplication to me. One of the methods should be deprecated and tagged for removal in QGIS 4.0. Can't leftOfLine() be removed before the 3.6 release? Hasn't been used too much yet, I think. Is it possible to find out who added it? I tried git blame but

[QGIS-Developer] segmentSide and leftOfLine functions

2019-01-15 Thread Raymond Nijssen
Since 2 months there's a new function called leftOfLine() which calculates if a point is left or right from a line(segment). While using it I wondered why: It returns -1 if point is on left side 1 if point is on right side cause I would expect the opposite result, or call the function

Re: [QGIS-Developer] Madeira Hackfest Blog post

2018-12-21 Thread Raymond Nijssen
Seems like you are mixing Madeira HF (2018) and A Coruna HF (2019). On 21-12-18 12:40, Ismail Sunni wrote: Hi matteo, The link: http://blog.qgis.org/2018/12/03/call-for-presentations-qgis-user-conference-and-developer-meeting-2019/ It's the 2nd last post. Best regards On Fri, Dec 21,

Re: [QGIS-Developer] rotating and resizing layout items (bug?)

2018-12-21 Thread Raymond Nijssen
Created this issue: https://issues.qgis.org/issues/20864 On 16-12-18 21:49, Raymond Nijssen wrote: Tnx Paolo, but that is another bug. I'm talking about QgsLayoutItemLabels here, not the map labels. I mean the pieces of text you put on a layout, like a title. On 16-12-18 18:59, Paolo

Re: [QGIS-Developer] rotating and resizing layout items (bug?)

2018-12-16 Thread Raymond Nijssen
Tnx Paolo, but that is another bug. I'm talking about QgsLayoutItemLabels here, not the map labels. I mean the pieces of text you put on a layout, like a title. On 16-12-18 18:59, Paolo Cavallini wrote: https://issues.qgis.org/issues/19263 ? Cheers On 12/15/18 10:46 AM, Raymond Nijssen

[QGIS-Developer] rotating and resizing layout items (bug?)

2018-12-15 Thread Raymond Nijssen
Hi! I'm experiencing some strange behavior while working with rotated labels in a layout. Put a label on my layout like this: x: 100 y: 100 width: 30 height: 12 refPoint: center-left When I rotate it 270 degrees, it rotates around the center, ending up at x: 115, y: 115. I would expect it

Re: [QGIS-Developer] What is the way to get all items of a QgsLayout?

2018-11-17 Thread Raymond Nijssen
Hi Song, It is simply: layout.items() For example, you can do this: p = QgsProject.instance() lom = p.layoutManager() lo = lom.layoutByName(u'a4') print(lo.items()) And then this to get all the labels: for item in lo.items(): if isinstance(item, QgsLayoutItemLabel):

Re: [QGIS-Developer] Import in PostGIS from Processing

2018-11-14 Thread Raymond Nijssen
Hi Paolo, Not sure, but is this what you mean? algorithm name: 'Export to PostgreSQL' description: Export to PostgreSQL This algorithm imports a vector layer into a PostGIS database, creating a new table. Prior to this a connection between QGIS and the PostGIS database has to be created

Re: [QGIS-Developer] get visibility from layout items with python

2018-11-07 Thread Raymond Nijssen
On 08-11-18 08:20, Nyall Dawson wrote: On Thu, 8 Nov 2018 at 17:18, Raymond Nijssen wrote: I'm also using setVisible() now, instead of setVisibility(). But now I wonder why the latter exists. Check the API dox -- there's a specific note there that you need to call setVisibility instead

Re: [QGIS-Developer] get visibility from layout items with python

2018-11-07 Thread Raymond Nijssen
On 08-11-18 08:08, Nyall Dawson wrote: On Thu, 8 Nov 2018 at 17:02, Raymond Nijssen wrote: In the python api, QgsLayoutItems have a setter for the visibility, but i cannot find a way to retrieve the visibility setting. https://qgis.org/pyqgis/master/core/Layout/QgsLayoutItem.html I would

[QGIS-Developer] get visibility from layout items with python

2018-11-07 Thread Raymond Nijssen
In the python api, QgsLayoutItems have a setter for the visibility, but i cannot find a way to retrieve the visibility setting. https://qgis.org/pyqgis/master/core/Layout/QgsLayoutItem.html I would like to do this: item = QgsLayoutItemLabel() # I get this from my layout

Re: [QGIS-Developer] Unable to export map with PyQGIS 3

2018-10-24 Thread Raymond Nijssen
answer. It worked. Are you aware of any resources, online trainings, books or anything else which focuses on the pyqgis3? What would be your recommendation on this. Cheers Dimitris On Wed, Oct 24, 2018 at 10:09 AM Raymond Nijssen <mailto:r.nijs...@terglobo.nl>> wrote: Hi

Re: [QGIS-Developer] Unable to export map with PyQGIS 3

2018-10-24 Thread Raymond Nijssen
Hi Dimitris, It is indeed hard to learn pyqgis 3 with outdated docs. The following code worked for me (suggested by Martin Dobias): settings = QgsMapSettings() settings.setOutputSize(QSize(512,512)) settings.setExtent(layer.extent()) settings.setLayers([layer]) job =

Re: [QGIS-Developer] URL/Request logging of QGIS?

2018-10-18 Thread Raymond Nijssen
Hi Richard, I would love this as well, when trying to debug WMS/WFS problems. In the past I've been using Wireshark for this, which you can try for now. Raymond On 18-10-18 13:31, Tom Chadwin wrote: I'd find this incredibly useful, as I've had to attach an HTTP debugger in the past, which

Re: [QGIS-Developer] set data defined override expression with python?

2018-10-18 Thread Raymond Nijssen
On 16-10-18 04:19, Nyall Dawson wrote: The API uses ints instead of the direct DataDefinedProperty enums, as the enums vary by part of code (there's separate enums for symbology, labelling, layouts, etc) For symbology: layer = QgsSvgMarkerSymbolLayer(...) ... layer.setDataDefinedProperty(

Re: [QGIS-Developer] set data defined override expression with python?

2018-10-15 Thread Raymond Nijssen
On 22-08-18 08:39, Raymond Nijssen wrote: Thank you Nyall! Does exactly what I need. Will add it to the python cookbook. Raymond On 22-08-18 00:10, Nyall Dawson wrote: On Wed, 22 Aug 2018 at 01:41, Raymond Nijssen wrote: Hi devs! I'd like my python plugin to set an expression for

Re: [QGIS-Developer] open atlas layout, using python

2018-10-12 Thread Raymond Nijssen
then, turn off and on the atlas preview, it works as expected. Does it need to get some kind of gui redraw/update call? Regards, Raymond On 12-10-18 01:39, Nyall Dawson wrote: On Fri, 12 Oct 2018 at 02:22, Raymond Nijssen wrote: By the way, the fragile code solution does not work for me

Re: [QGIS-Developer] open atlas layout, using python

2018-10-12 Thread Raymond Nijssen
that is still too young and not all finished? Regards, Raymond On 12-10-18 01:39, Nyall Dawson wrote: On Fri, 12 Oct 2018 at 02:22, Raymond Nijssen wrote: By the way, the fragile code solution does not work for me. It does toggle the button but it does not activate the atlas preview. Ok - I've

Re: [QGIS-Developer] open atlas layout, using python

2018-10-11 Thread Raymond Nijssen
= lo_window.findChild(QAction, 'mActionAtlasPreview') action.toggle() On 11-10-18 16:51, Raymond Nijssen wrote: Hi Nyall, It sounded great and I spent some hours on that better approach, but I didn't succeed. So maybe 3.6 will have it... Tnx! Raymond On 25-09-18 23:57, Nyall Dawson wrote: On Tue, 25 Sep

Re: [QGIS-Developer] open atlas layout, using python

2018-10-11 Thread Raymond Nijssen
Hi Nyall, It sounded great and I spent some hours on that better approach, but I didn't succeed. So maybe 3.6 will have it... Tnx! Raymond On 25-09-18 23:57, Nyall Dawson wrote: On Tue, 25 Sep 2018 at 22:36, Raymond Nijssen wrote: 1. Can I open a layout window with a python command

[QGIS-Developer] open atlas layout, using python

2018-09-25 Thread Raymond Nijssen
1. Can I open a layout window with a python command? 2. Can I turn on "atlas preview" with a python command? Hope anyone knows! Kind regards, Raymond ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

Re: [QGIS-Developer] Has QgsLayout.itemById() changed?

2018-09-23 Thread Raymond Nijssen
at 19:37, Alessandro Pasotti wrote: Do you have any clue about why this issue is not always reproducible? I suspect it's something to do with whether the item was created in Python or c++. Nyall On Sun, Sep 23, 2018, 11:27 Nyall Dawson wrote: On Fri, 21 Sep 2018 at 23:20, Raymond

Re: [QGIS-Developer] Has QgsLayout.itemById() changed?

2018-09-21 Thread Raymond Nijssen
the bindings code and it looks fine, can you check latest master? On Fri, Sep 21, 2018 at 3:47 PM Raymond Nijssen <mailto:r.nijs...@terglobo.nl>> wrote: Will do so. Thank you Alessandro! On 21-09-18 15:32, Alessandro Pasotti wrote: > Hi Raymond, > > confirmed,

Re: [QGIS-Developer] Has QgsLayout.itemById() changed?

2018-09-21 Thread Raymond Nijssen
Will do so. Thank you Alessandro! On 21-09-18 15:32, Alessandro Pasotti wrote: Hi Raymond, confirmed, there is probably something broken in the bindings, please file a ticket. On Fri, Sep 21, 2018 at 3:20 PM Raymond Nijssen <mailto:r.nijs...@terglobo.nl>> wrote: Running th

[QGIS-Developer] Has QgsLayout.itemById() changed?

2018-09-21 Thread Raymond Nijssen
Running this python script (in qgis 3.3): p = QgsProject.instance() lom = p.layoutManager() lo = lom.layoutByName('a4') item = lo.itemById('label_title') print(item) a few weeks ago, it outputed this: but today it outputs: My next line is: item.setText('hello') which doesn't work

Re: [QGIS-Developer] round function not working

2018-09-03 Thread Raymond Nijssen
On 03-09-18 02:00, Nyall Dawson wrote: On Sun, 2 Sep 2018 at 20:47, Raymond Nijssen wrote: Just discovered similar unexpected rounding behavior, but a bit different I think: My expression is this one, to show lengths of tracks on my map, in km: "etappe" || '\n (' || round((length

Re: [QGIS-Developer] round function not working

2018-09-02 Thread Raymond Nijssen
Just discovered similar unexpected rounding behavior, but a bit different I think: My expression is this one, to show lengths of tracks on my map, in km: "etappe" || '\n (' || round((length(transform($geometry,'epsg:4326','epsg:31466'))/1000), 1) || ' km)' The rounding does actually work

Re: [QGIS-Developer] Geometry data model logic?

2018-08-22 Thread Raymond Nijssen
On 22-08-18 14:51, Denis Rouzaud wrote: Hi Raymond, Le mer. 22 août 2018 à 15:30, Raymond Nijssen <mailto:r.nijs...@terglobo.nl>> a écrit : Hopefully it is just a misconception on my side, but I really don't get the logic in the qgis geometry data model. I tried the

Re: [QGIS-Developer] [Plugin] Add help html documentation

2018-08-22 Thread Raymond Nijssen
Hi Joao, I used it in a qgis2 plugin: # import it: from qgis.utils import showPluginHelp # create help function def showHelp(self): """Reacts on help button""" showPluginHelp(filename = 'help/index') # connect it to some button (here in the old way):

[QGIS-Developer] Geometry data model logic?

2018-08-22 Thread Raymond Nijssen
Hopefully it is just a misconception on my side, but I really don't get the logic in the qgis geometry data model. I tried the following script (sorry, some lines are wrapped by my email client): --- #points p1 = QgsGeometry().fromWkt('point(0 0)') print(p1) # print(p1.asPoint()) #

Re: [QGIS-Developer] set data defined override expression with python?

2018-08-22 Thread Raymond Nijssen
Thank you Nyall! Does exactly what I need. Will add it to the python cookbook. Raymond On 22-08-18 00:10, Nyall Dawson wrote: On Wed, 22 Aug 2018 at 01:41, Raymond Nijssen wrote: Hi devs! I'd like my python plugin to set an expression for overriding a property and I have no clue how

[QGIS-Developer] set data defined override expression with python?

2018-08-21 Thread Raymond Nijssen
Hi devs! I'd like my python plugin to set an expression for overriding a property and I have no clue how to do so. I expect there must be some generic way to set expressions. Specifically, I want to set the expression for the "Image source" of a QgsLayoutItemPicture to:

Re: [QGIS-Developer] outdated cookbook

2018-07-09 Thread Raymond Nijssen
a working example?? Thanks! Raymond On 05-07-18 18:17, Jürgen E. Fischer wrote: Hi Raymond, On Thu, 05. Jul 2018 at 16:53:21 +0200, Raymond Nijssen wrote: Can anyone provide a working example for exporting maps to png files? Probably not a nice example for the cookbook, but this does the job

[QGIS-Developer] outdated cookbook

2018-07-05 Thread Raymond Nijssen
Hi all, I'm working on a qgis3 plugin, and want it to export my map as a png image. According to the cookbook it should go like this: https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/composer.html#simple-rendering But QgsMapRenderer has been removed in v3, so I will need other

Re: [QGIS-Developer] issues with 1:n relations

2018-04-17 Thread Raymond Nijssen
Hi Giovanni, Not sure what you exactly did, I wasn't even aware of QGIS being able doing any 1:n relations. But a few months ago I had to do a more complex 1:n relation, including adding some fields. I solved it by using a virtual layer. The description is here:

Re: [QGIS-Developer] QGIS Annual General Meeting - 2018

2018-04-11 Thread Raymond Nijssen
Thank you so much for all your efforts Tim! And Paolo and Marco, congratulations with your new PSC jobs, and good luck of course! And to all PSC members, nice having you around for another 2 years! Regards, Raymond On 11-04-18 01:09, Tim Sutton wrote: Dear QGIS Community We recently held

Re: [QGIS-Developer] Split parts tool creates invalid polygons

2018-02-13 Thread Raymond Nijssen
Hi Anita, Tried what you said but cannot reproduce it. This might depend a lot on what shape you draw and how/where you cut it. What does your validation error say? I got this: Processing algorithm... Algorithm 'Check validity' starting... Input parameters: { 'INVALID_OUTPUT' : 'memory:',

Re: [QGIS-Developer] Broken 'randomness' for new layer styles?

2018-02-03 Thread Raymond Nijssen
Hi Nyall, Great idea to improve those random colors! This could also be a function instead of a palette in my opinion. I even guess it already is, since I think qgis stopped using very dark random colors a while ago. I think those colors should be: - not too dark (too close to black) - not

[QGIS-Developer] postgis connection to server instead of individual databases?

2018-01-27 Thread Raymond Nijssen
Dear developers, Today I suddenly wondered: Why can pgAdmin have a connection to a database *server* and automatically list all databases that are present while in QGIS I need to create a new connection for every individual postgresql/postgis database? It would be very handy if QGIS could

Re: [QGIS-Developer] Thanks!

2017-12-28 Thread Raymond Nijssen
+1 <3 Totally agree!! Raymond On 27-12-17 14:00, Denis Rouzaud wrote: Hi Guys, Yeah, let's throw flowers to ourselves :) This is indeed awesome to be part of this community and to meet regularly at the hackfests! Thank you all! Denis Le mer. 27 déc. 2017 à 08:40, Luiz Motta

Re: [QGIS-Developer] QGIS Meeting #20 : 20-25 February 2018, Madeira

2017-12-10 Thread Raymond Nijssen
Last month I did an osgeo.nl presentation "QGIS behind the scenes" to show people how the organisation is set up and how they can (and should!) help. I would not mind giving it at Madeira as an introduction to our new attendants. It is here (in dutch):

Re: [QGIS-Developer] Clear log messages panel?

2017-12-06 Thread Raymond Nijssen
Ah, thanks Jurgen! I thought I found the opposite yesterday.. Still a clear button would be cooler, but I can live with workaround. :) Thank you all, Raymond On 06-12-17 12:08, Etienne Trimaille wrote: I can confirm. If I close one tab, it will come back empty when new messages are coming.

[QGIS-Developer] Clear log messages panel?

2017-12-05 Thread Raymond Nijssen
Is there a way to erase all messages from a Log Messages Panel? I tried closing it, but when it reopens with a new message, all old ones are still visible. Also, a little 'clear' button would be nice, maybe in a right click on the panel? Thanks! Raymond

Re: [QGIS-Developer] QGIS Meeting #20 : 20-25 February 2018, Madeira

2017-11-01 Thread Raymond Nijssen
Just found out that booking a one week tourist holiday to Madeira is cheaper than booking rooms and flights seperately. And for me it also resulted in having a direct charter flight. Hope to see you soon, Raymond On 29-10-17 23:08, Tim Sutton wrote: Hi All We have a confirmed venue for

Re: [QGIS-Developer] Possible discussion during hackfest?

2017-08-02 Thread Raymond Nijssen
On 01-08-17 12:45, Paolo Cavallini wrote: Il 1 agosto 2017 11:56:24 CEST, Nyall Dawson ha scritto: Hey all, I'm wondering if it's possible for us to block aside some time during the upcoming hackfest for a group discussion about the future of QGIS.

Re: [QGIS-Developer] PyQGIS: Convert 25 meters to layer crs?

2017-05-28 Thread Raymond Nijssen
Hi Magnus, As I understand you are writing a script that should perform a 25m buffer on any user layer? I think you should never buffer unprojected layers. So blocking the process and telling the user to transform the data to an appropriate projection would be best in my opinion. If you

Re: [QGIS-Developer] [Qgis-developer] [resolved] Qt4 asked when compiling current master

2017-05-15 Thread Raymond Nijssen
Thanks Pierre, I just ran into the same. Should qt4-linguist-tools be added to the dependency list? https://htmlpreview.github.io/?https://github.com/qgis/QGIS/blob/master/doc/INSTALL.html#toc6 Raymond On 21-03-17 21:48, Pierre_Loicq wrote: Pierre_Loicq wrote Hello, I am trying to

Re: [QGIS-Developer] Converting plugins to QGIS 3

2017-05-10 Thread Raymond Nijssen
Hi Calvin, Here are some thoughts on python imports: https://www.python.org/dev/peps/pep-0008/#imports The last paragraph is about using wildcards. Raymond On 10-05-17 20:03, C Hamilton wrote: I am wondering how important it is to import the modules separately. Such as: from qgis.core

Re: [Qgis-developer] Plugin with custom QGIS-Qt Widget for master

2017-03-05 Thread Raymond Nijssen
Hi Matteo, I ran into this last week. The solution, or workaround, is here: https://lists.osgeo.org/pipermail/qgis-developer/2016-August/044138.html You need to manually change the output of QtDesigner. Good luck! Raymond On 06-03-17 07:07, Denis Rouzaud wrote: Hi Matteo, Are you using

Re: [Qgis-developer] Processing params always n meters?

2017-03-05 Thread Raymond Nijssen
Hi Paolo, I've been thinking of this as well and I would love it! I hate ending up with a huge circle on my screen after performing a quick "look how easy qgis processing is!" 500 degrees buffer on my data. :) The problem is that you cannot convert degrees to meters so easily since they

Re: [Qgis-developer] map scale as a variable in map composer? (html label)

2017-03-04 Thread Raymond Nijssen
Thanks Harrissou, that is good news! Regards, Raymond On 03-03-17 16:38, DelazJ wrote: Hi Raymond, It'll be possible with 3.0 (see https://github.com/qgis/QGIS/commit/f2032ea2688715163a631cc0860b9e5f97257cfc) Regards, Harrissou 2017-03-03 9:22 GMT+01:00 Raymond Nijssen <r.n

[Qgis-developer] map scale as a variable in map composer? (html label)

2017-03-03 Thread Raymond Nijssen
Is it possible to get the map scale as a variabele in the map composer? I guess not, according to no replies on this: http://gis.stackexchange.com/questions/133045/integrating-numeric-scales-into-a-text-or-html-box-in-qgis-print-composer Could it be added if it is not there yet? I'm afraid it

Re: [Qgis-developer] color widget not updated after changing item color by python

2017-02-28 Thread Raymond Nijssen
:27, Nyall Dawson wrote: On 27 February 2017 at 01:17, Raymond Nijssen <r.nijs...@terglobo.nl> wrote: When changing the color of a composer item using python, the corresponding color widget does not update to my new color. For example, changing the label font color: composerLabel.set

[Qgis-developer] color widget not updated after changing item color by python

2017-02-26 Thread Raymond Nijssen
When changing the color of a composer item using python, the corresponding color widget does not update to my new color. For example, changing the label font color: composerLabel.setFontColor(QColor(50,50,50,255)) After a redraw, the label's color in the map does change to my new value. But

Re: [Qgis-developer] Outline/border -> stroke?

2017-02-23 Thread Raymond Nijssen
appareil Samsung Message d'origine De : Raymond Nijssen <r.nijs...@terglobo.nl> Date : 18/02/2017 11:15 (GMT+01:00) À : qgis-developer@lists.osgeo.org Objet : Re: [Qgis-developer] Outline/border -> stroke? +1 for stroke +0 for opacity/transparency, but let's pick on

Re: [Qgis-developer] Outline/border -> stroke?

2017-02-18 Thread Raymond Nijssen
+1 for stroke +0 for opacity/transparency, but let's pick one of them for QGIS overall. +1 for not using black, but please make it a really dark gray because I think maps look crappy when the outline color gets lighter than the fill color. (As I notice sometimes in another desktop GIS...)

Re: [Qgis-developer] loading multiple wfs layers causes unexpected behaviour

2016-12-14 Thread Raymond Nijssen
Thanks! Seems like this WFS service is not very stable at certain moments. Trying to figure out what is going on. But it doesn't seem to be a QGIS problem. phew :) Raymond On 12-12-16 16:13, Even Rouault wrote: So I think 2.14 is not patched? You need to have latest 2.18 or 2.16 ...

[Qgis-developer] loading multiple wfs layers causes unexpected behaviour

2016-12-10 Thread Raymond Nijssen
In a loop, my python script adds 4 WFS layers to a new layer group in my map. Before adding them I test for vlayer.isValid() and for some reason they randomly seem invalid. Adding 0, 1, 2, 3 or 4 layers to my new group. Check attached screenshot. I guess this might have to do with the remote

Re: [Qgis-developer] Reporting an issue at http://hub.qgis.org/

2016-11-28 Thread Raymond Nijssen
This is very recognizable, Nyall! What are the options? Do other open source software projects have more user friendly systems for this? We could ask osgeo to implement it. Raymond On 28-11-16 01:31, Nyall Dawson wrote: On 27 November 2016 at 21:33, Bernd Vogelgesang

Re: [Qgis-developer] broken link to CODING.md

2016-11-14 Thread Raymond Nijssen
://qgis.org/en/site/getinvolved/development/qgisdevelopersguide.html Thanks Matthias On 11/14/2016 12:43 PM, Raymond Nijssen wrote: The qtcreator setup page: https://www.qgis.org/en/site/getinvolved/development/qgisdevelopersguide/qtcreator.html contains a broken link to: https://github.com/qgis

[Qgis-developer] broken link to CODING.md

2016-11-14 Thread Raymond Nijssen
The qtcreator setup page: https://www.qgis.org/en/site/getinvolved/development/qgisdevelopersguide/qtcreator.html contains a broken link to: https://github.com/qgis/QGIS/blob/master/CODING.md Indeed there is no directory 'blob' in the project (anymore) and I cannot find any file called

Re: [Qgis-developer] run only one unit test?

2016-10-14 Thread Raymond Nijssen
It was already there. But there is *a lot* more on that page, making it hard to find. It is in the very last bash block: $ ctest -R appl -V On 10/14/2016 11:11 AM, Richard Duivenvoorde wrote: On 14-10-16 10:58, Raymond Nijssen wrote: Thank you Sandro! I was looking for it over here

Re: [Qgis-developer] run only one unit test?

2016-10-14 Thread Raymond Nijssen
jeudi 13 octobre 2016 19:31:08, Sandro Santilli a écrit : On Thu, Oct 13, 2016 at 07:07:01PM +0200, Raymond Nijssen wrote: Can I run only one unit test, instead of all 244? Something like: make test QgsSymbolLayerCreateSld Something like this should work: ctest -R QgsSymbolLayerCreateSld

Re: [Qgis-developer] Magnifier causes crash

2016-09-14 Thread Raymond Nijssen
Confirmed, on debian 8, qgis-master. QGIS crashes when i "unmagnify" (?) twice. First time, no problem (100% -> 50%) Second time, it shows 10% for a split second, and then QGIS crashes. Here is the debug output: src/core/qgsmapsettings.cpp: 75: (setMagnificationFactor) [10626ms]

Re: [Qgis-developer] SVG as attribute?

2016-07-15 Thread Raymond Nijssen
Hi Matthias, A few weeks ago I asked a similar question here (titled: "custom charts?"). You can store the filename and use a data defined svg image in the styling tab: --- with an SVG-marker the filename can be "data-defined", so you can for instance use an expression like '/xxx/mymarker_' ||

Re: [Qgis-developer] morph delimited-text-provider to generic table-provider?

2016-07-11 Thread Raymond Nijssen
ir databases. > > Greetings, > Andreas > > On 2016-07-09 11:00, Richard Duivenvoorde wrote: > >> Hi Devs, >> >> Raymond Nijssen had an (I think) intriguing idea: >> >> QGIS can open different types of table-data: dbf, excel etc etc >> >

Re: [Qgis-developer] morph delimited-text-provider to generic table-provider?

2016-07-09 Thread Raymond Nijssen
tandard function is desirable. > Thanks for raising this. > > Il 9 luglio 2016 12:00:38 EEST, Richard Duivenvoorde > <rdmaili...@duif.net> ha scritto: > > Hi Devs, > > Raymond Nijssen had an (I think) intriguing idea: > > QGIS can op

Re: [Qgis-developer] custom charts?

2016-06-28 Thread Raymond Nijssen
a layer in qgis Manually i added the data defined filename based on the id: '/tmp/img_measure_' || "imgid" || '.svg' Et voila! http://terglobo.nl/downloads/voorbeeld_kaart_01.png Thank you all for your suggestions! Raymond On 26-06-16 11:58, Raymond Nijssen wrote: > There is

Re: [Qgis-developer] custom charts?

2016-06-26 Thread Raymond Nijssen
There is this library to make it easier: https://pypi.python.org/pypi/svgwrite/ And since it is python, you can use the standard code editor in QGIS (or an external one if you prefer). Raymond On 25-06-16 21:33, Lauri Kajan wrote: > This would be great also for nautical charts to render light

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Raymond Nijssen
t;a.neum...@carto.net >> <mailto:a.neum...@carto.net>> wrote: >> >> Pretty cool - so we can deliver script-generated SVG code instead of >> a filename? Nice! >> >> Care to do a blog post with some example? This sounds quite exciting >>

Re: [Qgis-developer] custom charts?

2016-06-24 Thread Raymond Nijssen
Hi Hugo, It works! Thanks a lot!! This is exactly what i was looking for, but somehow could not find. Here is a little example with some fake svg's: http://terglobo.nl/downloads/example.png Now I will script generating svg based on real data. Regards, Raymond On 23-06-16 09:02, Hugo

Re: [Qgis-developer] custom charts?

2016-06-23 Thread Raymond Nijssen
Thanks Hugo, I will try to get this to work. On 23-06-16 09:02, Hugo Mercier wrote: > On 22/06/2016 19:06, Richard Duivenvoorde wrote: >> On 22-06-16 14:39, Hugo Mercier wrote: >>> Hi Raymond, - Add a text field to my feature layer containig svg, and somehow make qgis display that on my

[Qgis-developer] custom charts?

2016-06-22 Thread Raymond Nijssen
Dear developers, Can I somehow show custom images for each point feature on a map, similar to the layer diagrams? Having locations with a few sensor values, I'd like to generate a custom image for every feature (for example svg or png) and have it displayed on my feature. I've come up with some

Re: [Qgis-developer] LayerTree group checkbox behavior

2016-05-27 Thread Raymond Nijssen
Totally agree it should work as requested. Raymond On 27-05-16 17:03, Arnaud Morvan wrote: > > Hello, > > One of our customer want this ticket to be done : > https://hub.qgis.org/issues/14547 > For myself, I agree that the actual behavior of layer tree groups is a > little disappointing. > >

Re: [Qgis-developer] debian testing/Linux: yellow non-readable tooltips except for gtk+

2016-04-14 Thread Raymond Nijssen
I've seen this before, and i've never used Gnome3. Probably i used Unity at that time, but i'm not sure. Unfortunately I never found the reason, so I cannot tell you how to solve it. It worked again after a fresh install. Regards, Raymond On 14-04-16 21:40, Richard Duivenvoorde wrote: > Hi, >

Re: [Qgis-developer] Plugin migratin -> mailing list?

2015-11-08 Thread Raymond Nijssen
, no automatic adhesion. People should be invited to voluntarily join it thus a list of mails (at least for the first invitation) 2015-11-08 12:25 GMT+01:00 Raymond Nijssen <r.nijs...@terglobo.nl>: Let us not exaggerate this please. All plugin developers provide an email address to be con

Re: [Qgis-developer] Plugin migratin -> mailing list?

2015-11-08 Thread Raymond Nijssen
Let us not exaggerate this please. All plugin developers provide an email address to be contacted in case of problems/questions. These are publicly available on our website and in our Plugin Manager application. Now, because of large changes in our system that will affect all plugins, the

Re: [Qgis-developer] Plugin migratin -> mailing list?

2015-11-08 Thread Raymond Nijssen
I will do the script if someone provides the data. Raymond On 07-11-15 19:57, Alessandro Pasotti wrote: Forgot the instructions: from xmlrpclib import ServerProxy ServerProxy(' http://osgeo_user:osgeo_passw...@plugins.qgis.org/plugins/RPC2/').plugin.maintainers( ) only administrators can

Re: [Qgis-developer] broken WFS client commit

2015-10-27 Thread Raymond Nijssen
Yes, could someone please revert or solve this? I've been meeting this issue since last summer (http://hub.qgis.org/issues/13117) and it prevents some of my customers to upgrade from 2.8, missing all kinds of nice new features. Regards, Raymond On 25-10-15 22:19, Jeremy Palmer wrote:

Re: [Qgis-developer] broken WFS client commit

2015-10-27 Thread Raymond Nijssen
. Hopefully, we can fund something from our donations/sponsorships. Andreas On 27.10.2015 09:24, Raymond Nijssen wrote: Yes, could someone please revert or solve this? I've been meeting this issue since last summer (http://hub.qgis.org/issues/13117) and it prevents some of my customers to upgrade

Re: [Qgis-developer] Processing test suite

2015-09-30 Thread Raymond Nijssen
Hi Victor, Paolo, This seems important to me too and I'd love to help on it during next hackfest. Regards, Raymond On 30-09-15 08:00, Victor Olaya wrote: Thanks for the proposal Paolo. This is clearly an important need for Processing I, however, don't think that the test suite should have

Re: [Qgis-developer] memory layer performance while adding many features?

2015-08-05 Thread Raymond Nijssen
to the edit buffer and commit at once. Or maybe commit 1000 by 1000. I hope this helps. [0] https://github.com/opengeogroep/AERIUS-QGIS-plugins/blob/master/ImaerReader/imaer_reader.py#L228 On 07/30/2015 09:20 AM, Raymond Nijssen wrote: Hi Denis, The code is in the ImaerReader plugin in the qgis repo

Re: [Qgis-developer] memory layer performance while adding many features?

2015-07-30 Thread Raymond Nijssen
/imaer_reader.py#L228 On 07/30/2015 09:20 AM, Raymond Nijssen wrote: Hi Denis, The code is in the ImaerReader plugin in the qgis repo and in github: https://github.com/opengeogroep/AERIUS-QGIS-plugins I'm adding the features one by one. Regards, Raymond On 30-07-15 08:46, Denis Rouzaud wrote: Hi Raymond

Re: [Qgis-developer] memory layer performance while adding many features?

2015-07-30 Thread Raymond Nijssen
Hi Hugo, I'm not specifically adding an index. So if you are right, I'm not using that. Regards, Raymond On 30-07-15 09:10, Hugo Mercier wrote: Hi Raymond, On 29/07/2015 09:04, Raymond Nijssen wrote: Dear developers, ;) A plugin of mine imports data from a gml file into a memory layer

Re: [Qgis-developer] Voronoi bug?

2015-07-08 Thread Raymond Nijssen
Hi Paolo, I met bugs in the voronoi function several times before. There is already a bug: https://hub.qgis.org/issues/8002 but it seems hard to reproduce. Is it the same? On 08-07-15 14:41, Paolo Cavallini wrote: Hi all. Running the John Snow Processing training exercise, I noticed that

[Qgis-developer] custom page size disabled

2015-05-09 Thread Raymond Nijssen
In the print composer's Page Setup dialog, when i choose Page Size: Custom, the width and height fields stay disabled. So I cannot create a A1 size map. Can anyone confirm? Regards, Raymond -- Terglobo Ampèrestraat 110 5223 CT 's-Hertogenbosch 06-25314983

Re: [Qgis-developer] shp cannot be styled

2015-05-07 Thread Raymond Nijssen
Hi Paolo, Exact same problem here (QGIS testing on linux) and also solved after a save as shapefile. Regards, Raymond On 07-05-15 18:52, Paolo Cavallini wrote: Hi all. This file: http://www.faunalia.eu/~paolo/qgis/result.zip resulting from

[Qgis-developer] wrong attribute values for postgis data in Feature attribute form

2015-03-26 Thread Raymond Nijssen
When I use the Feature info tool with the Auto open form option selected, the form shows different values compared to the identify results. The Identify results are correct. Here's a screenshot: http://terglobo.nl/downloads/qgis_attribute_form_bug.png I am using QGIS Testing (just updated) on

Re: [Qgis-developer] wrong attribute values for postgis data in Feature attribute form

2015-03-26 Thread Raymond Nijssen
Thanks Regis, that was exactly the issue. The (boolean!) field 'inonderzoek' was used as a key. When I change that to 'gid' in the Add PostGIS Table dialog, everything works correctly. Can anyone tell me why QGIS picks that boolean field for most of my tables? Can I change that behaviour by

Re: [Qgis-developer] wrong attribute values for postgis data in Feature attribute form

2015-03-26 Thread Raymond Nijssen
it is fine by default. Not sure about the heuristics used to get the default PK field. Matthias On 03/26/2015 10:57 AM, Raymond Nijssen wrote: Thanks Regis, that was exactly the issue. The (boolean!) field 'inonderzoek' was used as a key. When I change that to 'gid' in the Add PostGIS Table dialog

Re: [Qgis-developer] Is it possible to: Print canvas without Composer and draw polygon in Composer?

2015-03-13 Thread Raymond Nijssen
On 13-03-15 10:32, Lene Fischer wrote: Hi I have got questions from users - which I can´t answer :-O Hopefully some of you can... ·Is it possible to: Print/copy the canvas without Composer. Users need to insert the canvas in a mail or a document. Project Save as image...

[Qgis-developer] opening same table twice

2014-10-07 Thread Raymond Nijssen
Not sure if I met a feature or a bug... I can open the same attribute table multiple times. I would expect, when I open it the second time, QGIS would just show/focus on the window containing the already opened table. Is this meant to be this way? Regards, Raymond

Re: [Qgis-developer] opening same table twice

2014-10-07 Thread Raymond Nijssen
this is intentional (comparing two tables). We thought about having the possibility to have a split view on the table. Once this is possible we could prevent the attribute table from being opened several times for the same layer. Opinions? Matthias On 07.10.2014 13:57, Raymond Nijssen wrote: Not sure if I

Re: [Qgis-developer] opening same table twice

2014-10-07 Thread Raymond Nijssen
I think for smaller screens we can use tabs in the same window. All the best. Actually I expect a table would be split horizontally, dividing is in an upper and lower part. Both parts having their own scrollbar. Now you can scroll to row 1000 with one part and compare the values to the

Re: [Qgis-developer] Opinions on best implementation of color picker dialog?

2014-07-28 Thread Raymond Nijssen
Hi Nyall, Good point! I'd love to see at least the hex/html input so I can copy and paste colors instead of writing down the values for r, g, b and a. Raymond On 28-07-14 12:08, Nyall Dawson wrote: Hi all, I'm increasingly frustrated by QGIS' current color picker dialog - almost enough to

Re: [Qgis-developer] Cannot use data-defined fill color with ellipse marker

2013-11-21 Thread Raymond Nijssen
Hi Anita, It sounds similar to this issue: http://hub.qgis.org/issues/6476 Maybe data-defined anything won't work on ellipse markers?? Regards, Raymond On 20-11-13 18:24, Anita Graser wrote: Hi, Is it a known issue that data-defined fill color does not work with ellipse marker?

Re: [Qgis-developer] Plugin repo down

2013-09-23 Thread Raymond Nijssen
For me (back in NL) both qgis.org and the plugin repo are not available... Though my url qgis.org is replaced by www.qgis.org/en/site/ in my browser (ff). Could the server just be too busy maybe? Raymond On 22-09-13 23:04, Borys Jurgiel wrote: For me it's working again too. Dnia

<    1   2   3   >