Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-23 Thread Anita Graser
On Jan 23, 2018 1:19 AM, "Nyall Dawson" wrote: > On 23 January 2018 at 04:12, Anita Graser wrote: > > On Sat, Jan 20, 2018 at 12:40 PM, Anita Graser > wrote: > >> > >> Do we have any working example scripts for Processing in QGIS

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-23 Thread Alexander Bruy
There are some scripts in the Processing tests https://github.com/qgis/QGIS/tree/master/python/plugins/processing/tests/testdata/scripts 2018-01-23 10:19 GMT+02:00 Anita Graser : > On Jan 23, 2018 1:19 AM, "Nyall Dawson" wrote: >> >> On 23 January 2018

Re: [QGIS-Developer] QGIS3 Processing Modeler - some bugs encountered

2018-01-23 Thread kimaidou
Thanks Nyall ! 2018-01-23 1:57 GMT+01:00 Nyall Dawson : > On 19 January 2018 at 18:26, kimaidou wrote: > > Dear devs, > > > > I am looking at Processing for QGIS3, and would like to share some bugs I > > discovered while playing with models. I have

[QGIS-Developer] Plugin [1381] MapFinder Brasil approval notification.

2018-01-23 Thread noreply
Plugin MapFinder Brasil approval by zimbogisgeek. The plugin version "[1381] MapFinder Brasil 1.1" is now approved Link: http://plugins.qgis.org/plugins/MapFinder/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

[QGIS-Developer] QgsLayout.itemById returns wrong object

2018-01-23 Thread Enrico Ferreguti
I'm trying to programmatically set a QgsLayoutPicture content in QGIS3.0: 1) I create a new print composition and I name it 'test' 2) I create a picture frame in the composition and I call it 'picture' 3) I run the following code: from qgis.core import QgsProject myLayout =

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-23 Thread Nyall Dawson
On 23 January 2018 at 18:28, Alexander Bruy wrote: > There are some scripts in the Processing tests > https://github.com/qgis/QGIS/tree/master/python/plugins/processing/tests/testdata/scripts > There's also

Re: [QGIS-Developer] Example script for Processing in QGIS 3

2018-01-23 Thread G. Allegri
Hi Nyall, scripts seem way more complex then before. I guess it is the simplest way that could be found to accomodate Processing scripts to the refactored code. Some questions from the previous scripts examples: 1) Is automatic output / sink parameter conversion impossible to obtain? In [1]

Re: [QGIS-Developer] Factorizing a dbf

2018-01-23 Thread Paolo Cavallini
Hi Nyall, Il 23/01/2018 01:16, Nyall Dawson ha scritto: > Option 1: > Run the "Add unique value field index" algorithm to add an > autogenerated code for each unique category. Then, run the "List > unique values" algorithm selecting both the original field and the > newly created field for the

Re: [QGIS-Developer] Factorizing a dbf

2018-01-23 Thread Nyall Dawson
On 24 January 2018 at 16:25, Paolo Cavallini wrote: > Hi Nyall, > > Il 23/01/2018 01:16, Nyall Dawson ha scritto: > >> Option 1: >> Run the "Add unique value field index" algorithm to add an >> autogenerated code for each unique category. Then, run the "List >> unique

Re: [QGIS-Developer] Factorizing a dbf

2018-01-23 Thread Paolo Cavallini
Il 24/01/2018 07:37, Nyall Dawson ha scritto: > How would you see this working within processing? I guess you could > select all the desired columns, and then an auto-generated field name > could be made for each new field based on the original column. It's > probably best left to a separate

[QGIS-Developer] Plugin [793] Multi Ring Buffer approval notification.

2018-01-23 Thread noreply
Plugin Multi Ring Buffer approval by zimbogisgeek. The plugin version "[793] Multi Ring Buffer 0.4" is now approved Link: http://plugins.qgis.org/plugins/Multi_Ring_Buffer/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

[QGIS-Developer] Plugin [1357] Least-Cost-Paths Network approval notification.

2018-01-23 Thread noreply
Plugin Least-Cost-Paths Network approval by zimbogisgeek. The plugin version "[1357] Least-Cost-Paths Network 0.1.1 Experimental" is now approved Link: http://plugins.qgis.org/plugins/LCPNetwork/ ___ QGIS-Developer mailing list

[QGIS-Developer] Plugin [833] Select Within approval notification.

2018-01-23 Thread noreply
Plugin Select Within approval by zimbogisgeek. The plugin version "[833] Select Within 0.3" is now approved Link: http://plugins.qgis.org/plugins/SelectWithin/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

[QGIS-Developer] Plugin [1381] MapFinder Brasil approval notification.

2018-01-23 Thread noreply
Plugin MapFinder Brasil approval by zimbogisgeek. The plugin version "[1381] MapFinder Brasil 1.2" is now approved Link: http://plugins.qgis.org/plugins/MapFinder/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

[QGIS-Developer] Plugin [1305] Calidad-CAR approval notification.

2018-01-23 Thread noreply
Plugin Calidad-CAR approval by zimbogisgeek. The plugin version "[1305] Calidad-CAR 0.11" is now approved Link: http://plugins.qgis.org/plugins/CalidadCAR/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

[QGIS-Developer] Plugin [1350] Mascaret approval notification.

2018-01-23 Thread noreply
Plugin Mascaret approval by zimbogisgeek. The plugin version "[1350] Mascaret 0.0.5 Experimental" is now approved Link: http://plugins.qgis.org/plugins/Mascaret/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

Re: [QGIS-Developer] Processing CRS Warnings useless?

2018-01-23 Thread Nyall Dawson
On 24 January 2018 at 03:13, matteo wrote: > Hi devs, > > testing the new release I notice that in the Processing options there > are still the 2 options to warn the user if the CRS among layers don't > match. > > Processing is correctly not warning me with 2 layers with

Re: [QGIS-Developer] QgsLayout.itemById returns wrong object

2018-01-23 Thread Nyall Dawson
On 23 January 2018 at 22:34, Enrico Ferreguti wrote: > I'm trying to programmatically set a QgsLayoutPicture content in QGIS3.0: > > 1) I create a new print composition and I name it 'test' > 2) I create a picture frame in the composition and I call it 'picture' > 3) I run

[QGIS-Developer] Vector Layer Properties Dialog does not return

2018-01-23 Thread Denis Rouzaud
Dear all, I am experiencing a very painful issue I wasn't able to fix up to now. I cannot use the vector layer properties as it freezes the application when exiting the dialog, either by apply or cancel. It does not affect the raster layer dialog. I am on mac, but the original reporter is on

[QGIS-Developer] Plugin [1361] Virtual Raster Builder approval notification.

2018-01-23 Thread noreply
Plugin Virtual Raster Builder approval by zimbogisgeek. The plugin version "[1361] Virtual Raster Builder 0.2" is now approved Link: http://plugins.qgis.org/plugins/vrtbuilderplugin/ ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List

[QGIS-Developer] Processing CRS Warnings useless?

2018-01-23 Thread matteo
Hi devs, testing the new release I notice that in the Processing options there are still the 2 options to warn the user if the CRS among layers don't match. Processing is correctly not warning me with 2 layers with different CRS during a normal difference and intersection operation. Isn't it

Re: [QGIS-Developer] QgsLayout.itemById returns wrong object

2018-01-23 Thread Alessandro Pasotti
On Tue, Jan 23, 2018 at 1:34 PM, Enrico Ferreguti wrote: > I'm trying to programmatically set a QgsLayoutPicture content in QGIS3.0: > > 1) I create a new print composition and I name it 'test' > 2) I create a picture frame in the composition and I call it 'picture' > 3) I

Re: [QGIS-Developer] QgsLayout.itemById returns wrong object

2018-01-23 Thread Alexander Bruy
2018-01-23 14:34 GMT+02:00 Enrico Ferreguti : > from qgis.core import QgsProject > myLayout = QgsProject.instance().layoutManager().layoutByName('test') > myLayoutPicture = myLayout.itemById("picture") > myLayoutPicture.setPicturePath("path to an image") > > and I get the