Hi all,
is it possible to write a custom Processing script that can edit the
input layer in place (with the core functionality of course)?
In the documentation I found the method to check if the algorithm
supports the in place editing [0] but not the method to set the script
to support the functi
Hello Matteo,
As far as I know, if your algorithm :
does not change the table structure (geometry type, fields list and
their types)
is an instance of QgsProcessingFeatureBasedAlgorithm (output one
feature for each input feature)
In brief:
- If your algorithm output one featur
Note that when heriting form QgsProcessingFeatureBasedAlgorithm,
you do not have to implement processAlgorithm method which is already
implemented in QgsProcessingFeatureBasedAlgorithm
but should implement the processFeature method.
Arnaud Morvan
Ingénieur logiciel
Tél: +33 (0)4 58 48 20 32
Thanks Arnaud, will try and let you know!
Cheers
Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-develope
Hi Arnaud,
I explored the QgsProcessingFeatureBasedAlgorithm but unfortunately is
not the case of what I'm looking for. From what I understood
QgsProcessingFeatureBasedAlgorithm is the class to use when the
algorithm performs "feature-by-feature" operations like buffers.
In my case I would like t
Hi Matteo,
yes, it's possible to write custom Processing scripts for editing layers
in-place.
Here you can find an example (buffer):
https://github.com/gacarrillor/QGIS-Resources/blob/master/collections/processing_scripts/processing/processing_script_edit_in_place.py
>From the example we can see
Hola Germàn,
thanks for the hint. While it is perfectly working on QGIS 3.10
installed from repository. QGIS is crashing with the same data and the
same script in QGIS master (compiled yesterday). Are there any API problems?
Cheers and thanks!
Matteo
_
Hi Matteo,
confirmed! Then, we've found a bug:
https://github.com/qgis/QGIS/issues/35844
Regards,
Germán
El vie., 17 abr. 2020 a las 2:29, matteo ()
escribió:
> Hola Germàn,
>
> thanks for the hint. While it is perfectly working on QGIS 3.10
> installed from repository. QGIS is crashing with
Hi Matteo,
not sure what exactly you want to achieve, but you can do a union and
dissolve by doing a buffer with zero buffer distance and enabling the
dissolve result checkbox.
Regards,
Stefanos
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
Hi Stefanos,
yep, but digging into this I was wondering how to use the EditInPlace
also for scripts :)
Cheers and thanks for the hint
Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listi
Hi Matteo,
the sample script I mentioned in my previous e-mail in this thread
should be working on master now. Nyall fixed the bug reported.
Regards,
Germán
El mar., 21 abr. 2020 a las 1:45, matteo ()
escribió:
> Hi Stefanos,
>
> yep, but digging into this I was wondering how to use the EditIn
Hi Germàn,
> the sample script I mentioned in my previous e-mail in this thread
> should be working on master now. Nyall fixed the bug reported.
awesome! Thanks to you and to Nyall!
Cheers
Matteo
___
QGIS-Developer mailing list
QGIS-Developer@lists.os
12 matches
Mail list logo