Re: [Qgis-user] QGIS custom python function with zero or more args

2018-03-09 Thread Fuenfer-Koenigstein.Benjamin2
Hi Frank, thanks for your answer! Yes looks like there is no other way but passing empty strings. That’s what I wanted to avoid but anyway. Regards Benjamin -Ursprüngliche Nachricht- Von: Frank Broniewski [mailto:ha...@frankbroniewski.com] Gesendet: Freitag, 9. März 2018 11:25 An:

[Qgis-user] QGIS custom python function with zero or more args

2018-03-09 Thread Fuenfer-Koenigstein.Benjamin2
Hi all, I would like to write a custom python function for QGIS 2.18 that takes zero or one argument. The reason is that in most cases I can use a default value in the function, in some cases I would like to enter the value as argument. For python I know that you can prefix args in functions

[Qgis-user] Geometry generator styling in DXF Export

2017-12-05 Thread Fuenfer-Koenigstein.Benjamin2
Hi all, has anyone experience with exporting geometry generator styling into DXF. I think it's no alternative to use DB views, SQL or virtual layers as I use dynamic parameters as scale and map extend in my python function. Thanks for your ideas! Regards Benjamin

Re: [Qgis-user] QGIS Save style

2017-11-19 Thread Fuenfer-Koenigstein.Benjamin2
You could use Notpad++ and use find/replace with wildcards, “.matches new line” enabled. Replace ‘

[Qgis-user] Address element in a tuple in QGIS expression builder

2017-11-07 Thread Fuenfer-Koenigstein.Benjamin2
Hi all, is there a way to address a certain element of a tuple with qgis expression builder? I would like to write a python function that returns a tuple with two elements. That way I can use one function for two purposes (I think of something like myfunction(arg1,arg2,arg3)[0], but that

Re: [Qgis-user] Color fill expression and outline color.

2017-10-09 Thread Fuenfer-Koenigstein.Benjamin2
Hi Roxo, I can't reproduce. Of course I don't have your data source, but that shouldn't be the reason. I use PostGIS-Data and use a integer-field with three possible values (1,2 or 3) to do a rule based fill color selection similar to yours. I'm using QGIS 2.18.12, Polygon data from PostGIS,

Re: [Qgis-user] styling to cut out underlying features

2017-10-04 Thread Fuenfer-Koenigstein.Benjamin2
Hi Andreas, thats exactly what I'm looking for or even better because I didn't think about symbol levels yet! Looking forward to see this QEP getting realized some day! Regards Benjamin Von: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von Andreas Neumann Gesendet:

[Qgis-user] styling to cut out underlying features

2017-10-04 Thread Fuenfer-Koenigstein.Benjamin2
Hi all, I am looking for a way to style a point feature layer in a way that underlying features are cut out by the point symbols so a raster layer at the bottom of the layer tree is visible. In other words, the point symbol should make underlying vector features transparent. Physically editing

[Qgis-user] Test

2017-08-30 Thread Fuenfer-Koenigstein.Benjamin2
Hi all, can anyone confirm if my mails to the list are received? Usually I always got copies of my own posts via the list but now not anymore. The config is OK, at "Receive your own posts" "yes" is checked. I receive all posts from other users. Still I can see my posts in the archive. I just

[Qgis-user] Use extend of label background in python

2017-08-28 Thread Fuenfer-Koenigstein.Benjamin2
Hi all, in QGIS, there is the possibility to draw a rectangle around a label text with "Labels -> Background -> Shape: Rectangle; Size type: buffer". This way, the rectangle fits to text extend. Does onyone know a way to use the size or the corner coordinates of this buffer rectangle in a

[Qgis-user] Use size of label background rectangle in python function

2017-08-28 Thread Fuenfer-Koenigstein.Benjamin2
Hi all, in QGIS, there is the possibility to draw a rectangle around a label text with "Labels -> Background -> Shape: Rectangle; Size type: buffer". This way, the rectangle fits to text extend. Does onyone know a way to use the size or the corner coordinates of this buffer rectangle in a