Re: [Qgis-user] Error while processing "servicearea"

2018-05-04 Thread Jean-Baptiste Desbas
OTH' : '', 'VALUE_FORWARD' : '' } > > > r=processing.run('qgis:serviceareafromlayer',serviceParameter,feedback=feedback) > l=r['OUTPUT_LINES'] > for f in l.getFeatures(): > sink.addFeature(f) > 2018-05-03 9:33 GMT+02:00 Jean-Baptiste Desbas <jb.des...@gmail.com>: > Hello, > >

[Qgis-user] Error while processing "servicearea"

2018-05-03 Thread Jean-Baptiste Desbas
Hello, I want to use the serviceareafromlayer alg in a python script, but it give me an error : Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.0/apps/qgis/./python/plugins\processing\algs\qgis\ServiceAreaFromLayer.py", line 264, in processAlgorithm fields,

Re: [Qgis-user] Add processing script to toolbox

2018-07-30 Thread Jean-Baptiste Desbas
Hi, Any error message ? 2018-07-25 11:32 GMT+02:00 Reginald : > Hi, > > I'm trying to add some scripts to the toolbox of QGIS-versie > 3.2.1-Bonn. Whatever I do to import the script in the toolbox fails. > I use the python icon that is in the menubar of Toolbox Processing. > I have run the

Re: [Qgis-user] Categorized Symbology

2018-08-09 Thread Jean-Baptiste Desbas
Hi, What appened if you type " to_string(YOURFIELD) " instead of juste " YOURFIELD " as categorized field ? 2018-08-09 11:11 GMT+02:00 GILLEN Finbar : > Hi, > > > > I have added delimited text layer to QGIS 3.2 which I have converted to > point layer. When I add it in I am able to style the

Re: [Qgis-user] Access to iface in processing alg

2018-07-10 Thread Jean-Baptiste Desbas
Thanks to you two, I didn't realize that it can cause other troubles.. So I will continue to use pushInfo/repportError ! Regards, 2018-07-10 2:56 GMT+02:00 Nyall Dawson : > On Tue, 10 Jul 2018 at 05:15, Jean-Baptiste Desbas > wrote: > > > > > > Hi, > > > >

Re: [Qgis-user] Access to iface in processing alg

2018-07-09 Thread Jean-Baptiste Desbas
est regards > > Matthias > > On 07/09/2018 09:58 AM, Jean-Baptiste Desbas wrote: > > Hello, > > What is the proper way to access iface in a processing alg ? > > I try "from qgis.utils import iface" but it crash when i make an > iface.pushWar

[Qgis-user] Access to iface in processing alg

2018-07-09 Thread Jean-Baptiste Desbas
Hello, What is the proper way to access iface in a processing alg ? I try "from qgis.utils import iface" but it crash when i make an iface.pushWarning. Thanks, Here is the stack trace : *Crash ID*: 59968a8cbec4e3d98bbe532ada707149cd7f9eee *Stack Trace* QgsCustomization::preNotify :

Re: [Qgis-user] QGIS3: can't write to loaded GPKG

2018-03-01 Thread Jean-Baptiste Desbas
Hi, I have got this issue too. Sometimes.. I don't know when it appends or not. Perhaps when you open the GPKG with drag'n'drop ? You can use DB manager to save your layer in the DPKG without error. Regards, 2018-03-01 8:56 GMT+01:00 Alessandro Pasotti : > Hi, > > I've

[Qgis-user] QGIS 3 : Run alg in an algorithm

2018-04-08 Thread Jean-Baptiste Desbas
Hello, I wan't to run a native algorithm (execute SQL) in an homemade algorithm : I try processing.run('qgis:executesql',{'INPUT_DATASOURCES':[sink],'INPUT_QUERY':'SELECT * FROM input1'},feedback=None) but i've got an error : line 140, in processAlgorithm

Re: [Qgis-user] QGIS 3 : Python scripts

2018-03-26 Thread Jean-Baptiste Desbas
eGroup Verwaltungs GmbH > vertreten durch: > Olaf Knopp, Peter Stamm > --- > > Am 06.03.2018 um 08:41 schrieb Jean-Baptiste Desbas: > > Thank you for your explanation, > So, do you know where i can find sample or doc about making python script

[Qgis-user] Copy-paste form definition (QGIS3)

2018-04-04 Thread Jean-Baptiste Desbas
Hello, When I copy-paste a style form a layer to another, symbology AND form definition are copied (because they are both part of style). Is it possible to copy-paste form definition without symbology and vice versa ? Thanks, ___ Qgis-user mailing list

Re: [Qgis-user] Grass not found

2018-03-20 Thread Jean-Baptiste Desbas
Hello, Maybe check if you use the "with GRASS" shortcuts (bin\qgis-bin-g7.4.0.exe) ? I also had some issues with GRASS algorithms when I used geopackage layer as inputs. Regards, 2018-03-19 20:57 GMT+01:00 : > Thanks William. > > I downloaded the update and am still

Re: [Qgis-user] QGIS3 Processing Clip

2018-03-23 Thread Jean-Baptiste Desbas
You can also use the "fix geometries" algorithm on your invalid layer 2018-03-23 11:30 GMT+01:00 Drexel Peter : > Hi all, > > In QGIS 3.0 I use native:clip in processing to clip a Shapefile with > another shapefile. > > The Import-Shapefile contains some invalid

[Qgis-user] QGIS 3 : Python scripts

2018-03-05 Thread Jean-Baptiste Desbas
Hello, Since QGIS 3, I can't run python scripts : - In the toolbox, there is no "create new scripte" under the script block in the toolbox - In the script editeur, when i try to run a script i have an alert : "Seems ther is no valid script in the file" The issue occurs in QGIS 3.0 and 3.1.0-9. I

Re: [Qgis-user] QGIS 3 : Python scripts

2018-03-05 Thread Jean-Baptiste Desbas
00 Alexander Bruy <alexander.b...@gmail.com>: > >> "Create new script" was moved to the toolbar inside Processing toolbox. >> >> As Processing API was changed, scripts should be adopted to new API. >> >> 2018-03-05 10:10 GMT+02:00 Jean-Baptiste

Re: [Qgis-user] QGIS 3 Processing question

2018-06-29 Thread Jean-Baptiste Desbas
Hi, I had the same issue. I had to loop over the output vector layer (child alg) to feed the sink (main alg). Maybe is not the simpliest/shortest/fastest, but it works. Something like that : o = processing.run( 'qgis:pointsalonglines', params, context=context,

Re: [Qgis-user] Save field mapping

2018-10-01 Thread Jean-Baptiste Desbas
******** > > > On Mon, 1 Oct 2018 at 12:16, Jean-Baptiste Desbas > wrote: > >> Hello ! >> >> Does anyone know any solution to save a field mapping (algo >> "qgis:refactorfields") ? >> >> Thanks ! >> ___

Re: [Qgis-user] Geopagkage and "geom" in DBmanager

2018-09-13 Thread Jean-Baptiste Desbas
Hi, I have to use *st_area(CastAutomagic(geom)) *instead of *st_area(geom)*, otherwise null column is retourned. Le jeu. 13 sept. 2018 à 11:45, Bo Victor Thomsen < bo.victor.thom...@gmail.com> a écrit : > Hi Lene - > > I've made a few observations regarding the use of GeoPackage in >

[Qgis-user] Plugin ArrayPlus in conflit with QGIS 3.3

2018-09-17 Thread Jean-Baptiste Desbas
Hello, I am maintener of ArrayPlus plugin ( https://plugins.qgis.org/plugins/arrayplus/) Since QGIS 3.3 includes "hstore_to_map" and "json_to_map" functions, the ArrayPlus plugin is in conflit with QGIS 3.3. ( https://framagit.org/jbdesbas/arrayPlus/issues/2 ) Tough, I'm not sur that others

Re: [Qgis-user] Plugin ArrayPlus in conflit with QGIS 3.3

2018-09-17 Thread Jean-Baptiste Desbas
30300: register foo()" according to the current QGIS version. > > About array_lambda, there is now array_foreach in QGIS core using an > expression. > > Le lun. 17 sept. 2018 à 04:15, Jean-Baptiste Desbas > a écrit : > >> Hello, >> >> I am maintener

[Qgis-user] Plugin approval

2021-03-12 Thread Jean-Baptiste Desbas
Hi, I receveid an email about plugin approvment few days ago, but the new version is style marked as unapproved (submited 2021-02-22). Is there a problem? Who can I contact about this? Plugin arrayPlus approval by zimbogisgeek. The plugin version "[1480] arrayPlus 1.7" is now approved Link: