Re: [QGIS-Developer] Make Regular Shape Digitizing Toolbar disabled by default?

2018-02-15 Thread L.Bartoletti
Hi Harrissou, "Regular shape" is a false name. So, what about "Advanced shape toolbar" ? Regards Loïc On 15.02.2018 10:20, DelazJ wrote: Hi, 2018-02-15 9:25 GMT+01:00 L.Bartoletti >: Hi, Yes. I will rename

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread Nyall Dawson
On 16 February 2018 at 17:29, kimaidou wrote: > Thanks Nyall, > > Our posts crossed ! > > Ok for the shortcut and the getMapLayer method. > Here you go: https://github.com/qgis/QGIS/pull/6359 ___ QGIS-Developer mailing list

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread kimaidou
Thanks for your explanation ! I also think it makes sense to share source layers in some cache in the future. 2018-02-16 7:36 GMT+01:00 Nyall Dawson : > On 16 February 2018 at 17:29, kimaidou wrote: > > Thanks Nyall, > > > > Our posts crossed ! > > >

[QGIS-Developer] Hi-dpi 3.0 beta tests, your feedback wanted...

2018-02-15 Thread Nyall Dawson
Hi all, If you're running a QGIS 3.0 beta and have a hidpi/retina display, I'm after some feedback. Can you please run the following commands in the Python console: ss = iface.mainWindow().styleSheet() iface.mainWindow().setStyleSheet( ss + ' QToolBar > QToolButton {padding: 8px;} ') and see

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread Nyall Dawson
On 16 February 2018 at 17:29, kimaidou wrote: > Thanks Nyall, > > Our posts crossed ! > > Ok for the shortcut and the getMapLayer method. > > One question : in my alg, if I use QgsProcessingParameterFeatureSource > instead of QgsProcessingParameterVectorLayer for my input, can

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread kimaidou
Thanks Nyall, Our posts crossed ! Ok for the shortcut and the getMapLayer method. One question : in my alg, if I use QgsProcessingParameterFeatureSource instead of QgsProcessingParameterVectorLayer for my input, can I still use mapLayerFromString and the getFeatures, or is there a

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread kimaidou
Found id ! I have to use mapLayerFromString : blayer = QgsProcessingUtils.mapLayerFromString(area_result['OUTPUT'], context) \o/ 2018-02-16 7:11 GMT+01:00 kimaidou : > Hi Salvatore, > > I already tried to use > > blayer = area_result['OUTPUT'] > for feat in

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread Nyall Dawson
On 16 February 2018 at 04:36, kimaidou wrote: > Hi all, > > I have a simple processing python alg which > * generates a buffer with qgis:buffer > * use qgis:fieldcalculator to add an buf_area field -> the output vector of > my alg is this buffer+new field. > > I would like to

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread kimaidou
Hi Salvatore, I already tried to use blayer = area_result['OUTPUT'] for feat in blayer.getFeatures(): with no success . If I do so I get AttributeError: 'str' object has no attribute 'getFeatures' There must be a way to transforme this string representing the layer as a processing

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread kimaidou
Hi Salvatore, I already tried to use blayer = area_result['OUTPUT'] for feat in blayer.getFeatures(): with no success . If I do so I get AttributeError: 'str' object has no attribute 'getFeatures' There must be a way to transforme this string representing the layer as a processing

Re: [QGIS-Developer] API freeze

2018-02-15 Thread Nyall Dawson
On 15 February 2018 at 20:02, Enrico Ferreguti wrote: > Hi all, In github wiki I read that: " QGIS 3 has entered feature freeze. > It's, therefore, time to port your plugin. But be aware that the API is not > freezed yet. " > > Me and many other plugin developers are

Re: [QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread Salvatore Larosa
Hi Michaël, On Thu, Feb 15, 2018 at 6:36 PM, kimaidou wrote: > Hi all, > > I have a simple processing python alg which > * generates a buffer with qgis:buffer > * use qgis:fieldcalculator to add an buf_area field -> the output vector > of my alg is this buffer+new field. > >

Re: [QGIS-Developer] Read QgsProject properties

2018-02-15 Thread Gerald Kogler
QgsProject.nonIdentifiableLayers() does the trick, so I think it's save to say that every tag in project .qgs can be accessed through the API On 14/02/18 22:49, Gerald Kogler wrote: > 2.18 > > thanks > Gerald > > On 14/02/18 02:06, Gerald Kogler wrote: >> 2.x >> >> On 14/02/18 00:47, Nyall

[QGIS-Developer] QGIS3 - processing python script. Read features from output layer

2018-02-15 Thread kimaidou
Hi all, I have a simple processing python alg which * generates a buffer with qgis:buffer * use qgis:fieldcalculator to add an buf_area field -> the output vector of my alg is this buffer+new field. I would like to parse the features of the output vector in order to gather some information and

Re: [QGIS-Developer] [GRASS-dev] External providers in QGIS

2018-02-15 Thread Anita Graser
On Sun, Feb 11, 2018 at 8:52 AM, Paolo Cavallini wrote: > Il 10/02/2018 14:38, Anita Graser ha scritto: > > Since Madeira is just around the corner, let's organize a round table > > discussion on this issue. I've started a section here: > >

[QGIS-Developer] Plugin [1409] iso4app approval notification.

2018-02-15 Thread noreply
Plugin iso4app approval by pcav. The plugin version "[1409] iso4app 0.1 Experimental" is now approved Link: http://plugins.qgis.org/plugins/iso4app/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

[QGIS-Developer] Plugin [609] Temporal/Spectral Profile Tool approval notification.

2018-02-15 Thread noreply
Plugin Temporal/Spectral Profile Tool approval by pcav. The plugin version "[609] Temporal/Spectral Profile Tool 1.3.0" is now approved Link: http://plugins.qgis.org/plugins/temporalprofiletool/ ___ QGIS-Developer mailing list

[QGIS-Developer] Plugin [947] ImportEpanetInpFiles approval notification.

2018-02-15 Thread noreply
Plugin ImportEpanetInpFiles approval by pcav. The plugin version "[947] ImportEpanetInpFiles 1.0" is now approved Link: http://plugins.qgis.org/plugins/ImportEpanetInpFiles/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

Re: [QGIS-Developer] API freeze

2018-02-15 Thread Denis Rouzaud
Hi Enrico, Even if the API is not officialy frozen, you can consider it pretty much stable, and I think it's safe to update your plugin now. If anything changes from now on, I guess that we could ask to send a mail on this list with [API BREAK] subject, but it's very likely to happen.

Re: [QGIS-Developer] Make Regular Shape Digitizing Toolbar disabled by default?

2018-02-15 Thread DelazJ
Hi, 2018-02-15 9:25 GMT+01:00 L.Bartoletti : > Hi, > > Yes. I will rename > the > toolbar too. > If I may, I prefer the current name; it represents what it does: help you draw regular shapes (or some

Re: [QGIS-Developer] Make Regular Shape Digitizing Toolbar disabled by default?

2018-02-15 Thread Alexandre Neto
Thanks! A qui, 15/02/2018, 08:34, L.Bartoletti escreveu: > Hi, > > Yes. I will rename > the > toolbar too. > > Regards > > Loïc > > On 15.02.2018 09:07, Régis Haubourg wrote: > > Agreed, I discovered that

[QGIS-Developer] API freeze

2018-02-15 Thread Enrico Ferreguti
Hi all, In github wiki I read that: " QGIS 3 has entered feature freeze. It's, therefore, time to port your plugin. But be aware that the *API is not freezed yet*. " Me and many other plugin developers are partecipating to QGIS3 migration effort. I'm handling issues notifications related to API

Re: [QGIS-Developer] Bumping Qt to 5.9 on Travis

2018-02-15 Thread Jürgen E . Fischer
Hi Denis, On Wed, 14. Feb 2018 at 15:40:01 +, Denis Rouzaud wrote: > But, there won't be any error if one pushes changes only possible with > newest version of Qt and only Jürgen will notice it from the nightly builds. Results are now also submitted to dash in case of build failures

Re: [QGIS-Developer] Make Regular Shape Digitizing Toolbar disabled by default?

2018-02-15 Thread L.Bartoletti
Hi, Yes. I will rename the toolbar too. Regards Loïc On 15.02.2018 09:07, Régis Haubourg wrote: Agreed, I discovered that yesterday too. Loïc, is that something you can do? Régis Le 14 févr. 2018 23:05, "Alexandre Neto"

Re: [QGIS-Developer] Make Regular Shape Digitizing Toolbar disabled by default?

2018-02-15 Thread Régis Haubourg
Agreed, I discovered that yesterday too. Loïc, is that something you can do? Régis Le 14 févr. 2018 23:05, "Alexandre Neto" a écrit : Hi, It seems that in QGIS 3, the new Regular Shape Digitizing Toolbar is enabled (visible) by default. I love the work done for this