Re: [QGIS-Developer] Catch PostgreSQL logs in pyqgis
Hi Hannes, so the only way to get the queries is to read what development panel is listing when enabled? I also found GDALDatasetSetQueryLoggerFunc: https://github.com/qgis/QGIS/blob/master/src/core/providers/ogr/qgsogrfeatureiterator.cpp#L417 but seems not directly accessible with python Cheers and thanks Matteo On 3/5/24 08:53, Johannes Kröger (WhereGroup) wrote: Hi Matteo, https://api.qgis.org/api/master/classQgsDatabaseQueryLog.html does have appropriate signals (queryFinished and queryStarted, both include the query) but it looks like they are not documented in the Python API https://qgis.org/pyqgis/master/core/QgsDatabaseQueryLog.html It *looks* like they are exposed though. So try def do_something_with(query): ... query_log = QgsApplication.databaseQueryLog() query_log.queryFinished.connect(do_something_with) If that does not work, maybe the debugging panel itself has a signal you can connect to as a hacky workaround. Cheers, Hannes On 04.03.24 17:54, Matteo Ghetta via QGIS-Developer wrote: Hi devs, I'm looking for a way in pyqgis to catch the (raw) queries that QGIS is sending to the PostgreSQL provider when a table is edited: for example the raw "INSERT ... INTO ...", "UPDATE ...". Basically what the Development Panel is listing when enabled. Is there a way in pyqgis? Cheers and thanks for any suggestion! 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-developer ___ 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-developer
[QGIS-Developer] Catch PostgreSQL logs in pyqgis
Hi devs, I'm looking for a way in pyqgis to catch the (raw) queries that QGIS is sending to the PostgreSQL provider when a table is edited: for example the raw "INSERT ... INTO ...", "UPDATE ...". Basically what the Development Panel is listing when enabled. Is there a way in pyqgis? Cheers and thanks for any suggestion! 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-developer
[QGIS-Developer] Split feature after dissolve
Hi devs, maybe a silly question, but after a dissolve of a line layer, when using the split feature function to split the layer, instead of splitting in 2 parts, the tool is splitting in n parts (where n = 113). Apparently the parts are randomly located. It doesn't matter if the layer is shapefile, geopackage, temporary layer, postgis, etc. Any idea why this is happening? Cheers and thanks for any suggestion! 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-developer
Re: [QGIS-Developer] DWG/DXF QGIS on Linux/Debian
thanks for all the answers! I forgot to tell the those files are importable in Windows. Does it change anything? Matteo On 7/13/23 09:59, Matthias Kuhn wrote: Hi Matteo, libdxfrw doesn't support this version yet. There's an open PR for libdxfrw for importing newer versions: https://github.com/LibreCAD/libdxfrw/pull/63 <https://github.com/LibreCAD/libdxfrw/pull/63> You might be able to manually patch it if you are adventurous Matthias On Thu, Jul 13, 2023 at 9:44 AM Stefan Giese (WhereGroup) via QGIS-Developer <mailto:qgis-developer@lists.osgeo.org>> wrote: Hi Matteo, did you import via drag-and-drop from the Browser or did you use use the dedicated Project ► Import/Export ► Import Layers from DWG/DXF tool? Best Stefan Am 13.07.2023 um 09:10 schrieb Matteo Ghetta via QGIS-Developer: Hi all, I'm on a Debian testing fresh machine and with both QGIS 3.28 from package and master compiled I cannot import DWG/DXF. This is the error I get: Drawing import failed (unsupported version. Cannot read AutoCAD 2018/2019/2020 documents.) I don't remember if there is a procedure on Linux (Debian) to compile QGIS with a driver that allows to import those formats. Thanks for any suggestion! Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> -- Mit freundlichen Grüßen Stefan Giese Projektleiter/Consultant - Aufwind durch Wissen! Web-Seminare und Online-Schulungen bei derwww.foss-academy.com <http://www.foss-academy.com> - WhereGroup GmbH Schwimmbadstr. 2 79100 Freiburg Germany Tel.: +49 (0)761 / 519 102 - 61 Fax: +49 (0)761 / 519 102 - 11 stefan.gi...@wheregroup.com <mailto:stefan.gi...@wheregroup.com> www.wheregroup.com <http://www.wheregroup.com> Geschäftsführer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> ___ 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-developer
[QGIS-Developer] DWG/DXF QGIS on Linux/Debian
Hi all, I'm on a Debian testing fresh machine and with both QGIS 3.28 from package and master compiled I cannot import DWG/DXF. This is the error I get: Drawing import failed (unsupported version. Cannot read AutoCAD 2018/2019/2020 documents.) I don't remember if there is a procedure on Linux (Debian) to compile QGIS with a driver that allows to import those formats. Thanks for any suggestion! 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-developer
[QGIS-Developer] Refresh attribute form python action
Hi all, I'm defining a python action that is triggered in the feature form (as a button or from the menu). The action is retrieving some values from other layers and some of these values will update some form widget, avoiding the user to filling them manually (I really simplified the workflow :) ). I think it is by design that QGIS is sending to the data provider the values when the OK button is clicked and then the Save button is clicked, but with the commitChanges() method I can directly send the changes to the provider from the action body. Now the problem: the widgets are not updated unless the form is closed and reopened again. I couldn't find a method to refresh the form widget from the action itself. Is there any? Cheers and thanks! 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-developer
Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)
Just a quick update, the fix is now in master and backported: https://github.com/qgis/QGIS/issues/51971 https://github.com/qgis/QGIS/pull/51985 Thanks to all the devs! Cheers Matteo On 2/22/23 08:33, matteo wrote: Hi Richard, Not very helpful for you, but what about creating an issue with the minimal code to crash? done: https://github.com/qgis/QGIS/issues/51971 I've prepared a minimal algorithm that mimics the problem And about Thread/Crash problems: I have been succesful with the tips of Nyall in: https://lists.osgeo.org/pipermail/qgis-developer/2023-February/065525.html to create a QgsTask which either crashed or gave warnings... One thing I've seen recently is that some Processing algs with me give these "...is run from a different thread than the object lives in ..."-warnings. And my feeling is that if some code is fetching references to the QGIS application instance, it shows this warning. Good luck solving your issue Thanks! Some gurus around? :) Cheers Matteo Regards, Richard On 2/21/23 16:41, matteo via QGIS-Developer wrote: Hi devs, I'm raising this email again because I don't know if this a bug/limitation/correct behavior. I also think that the problem is from a thread point of view, at least by the crash that I have. Knowing that a processing algorithm, as suggested by Germàn, can be created with: processing.createAlgorithmDialog("my_provider:my_algorithm", params) within a plugin, if the algorithm **id** is passed as first argument, QGIS is crashing, while it seems working on a standalone script in the QGIS code editor. Is this a limitation? Cheers and thanks for any suggestion! Matteo On 8/1/22 15:23, matteo wrote: Hi all, I've a set of custom processing scripts within a plugin (that is both "normal" and processing provider plugin). I'm trying to executing the dialog of these algorithm from one of the main plugin file. I found the processing.createAlgorithmDialog [0], but it is constantly crashing when I'm passing the instance of the algorithm: my_alg = MyCustomAlg() my_dialog = my_alg.createAlgorithmDialog(custom_dict) ## crash here Thinking it was a problem of the threads I also tried to overwrite the `flag` method in the algorithm by setting also QgsProcessingAlgorithm.FlagNoThreading but with the same results. I know I can run the processing algorithm with processing.run() but I need to open the dialog pre-filled with custom parameters and to get also some other outputs besides the standard ones (like the QgsFeatureSink path) Thanks for any suggestion Cheers Matteo [0] https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155 ___ 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-developer ___ 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-developer ___ 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-developer
Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)
Hi Richard, Not very helpful for you, but what about creating an issue with the minimal code to crash? done: https://github.com/qgis/QGIS/issues/51971 I've prepared a minimal algorithm that mimics the problem And about Thread/Crash problems: I have been succesful with the tips of Nyall in: https://lists.osgeo.org/pipermail/qgis-developer/2023-February/065525.html to create a QgsTask which either crashed or gave warnings... One thing I've seen recently is that some Processing algs with me give these "...is run from a different thread than the object lives in ..."-warnings. And my feeling is that if some code is fetching references to the QGIS application instance, it shows this warning. Good luck solving your issue Thanks! Some gurus around? :) Cheers Matteo Regards, Richard On 2/21/23 16:41, matteo via QGIS-Developer wrote: Hi devs, I'm raising this email again because I don't know if this a bug/limitation/correct behavior. I also think that the problem is from a thread point of view, at least by the crash that I have. Knowing that a processing algorithm, as suggested by Germàn, can be created with: processing.createAlgorithmDialog("my_provider:my_algorithm", params) within a plugin, if the algorithm **id** is passed as first argument, QGIS is crashing, while it seems working on a standalone script in the QGIS code editor. Is this a limitation? Cheers and thanks for any suggestion! Matteo On 8/1/22 15:23, matteo wrote: Hi all, I've a set of custom processing scripts within a plugin (that is both "normal" and processing provider plugin). I'm trying to executing the dialog of these algorithm from one of the main plugin file. I found the processing.createAlgorithmDialog [0], but it is constantly crashing when I'm passing the instance of the algorithm: my_alg = MyCustomAlg() my_dialog = my_alg.createAlgorithmDialog(custom_dict) ## crash here Thinking it was a problem of the threads I also tried to overwrite the `flag` method in the algorithm by setting also QgsProcessingAlgorithm.FlagNoThreading but with the same results. I know I can run the processing algorithm with processing.run() but I need to open the dialog pre-filled with custom parameters and to get also some other outputs besides the standard ones (like the QgsFeatureSink path) Thanks for any suggestion Cheers Matteo [0] https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155 ___ 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-developer ___ 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-developer ___ 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-developer
Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)
Hi devs, I'm raising this email again because I don't know if this a bug/limitation/correct behavior. I also think that the problem is from a thread point of view, at least by the crash that I have. Knowing that a processing algorithm, as suggested by Germàn, can be created with: processing.createAlgorithmDialog("my_provider:my_algorithm", params) within a plugin, if the algorithm **id** is passed as first argument, QGIS is crashing, while it seems working on a standalone script in the QGIS code editor. Is this a limitation? Cheers and thanks for any suggestion! Matteo On 8/1/22 15:23, matteo wrote: Hi all, I've a set of custom processing scripts within a plugin (that is both "normal" and processing provider plugin). I'm trying to executing the dialog of these algorithm from one of the main plugin file. I found the processing.createAlgorithmDialog [0], but it is constantly crashing when I'm passing the instance of the algorithm: my_alg = MyCustomAlg() my_dialog = my_alg.createAlgorithmDialog(custom_dict) ## crash here Thinking it was a problem of the threads I also tried to overwrite the `flag` method in the algorithm by setting also QgsProcessingAlgorithm.FlagNoThreading but with the same results. I know I can run the processing algorithm with processing.run() but I need to open the dialog pre-filled with custom parameters and to get also some other outputs besides the standard ones (like the QgsFeatureSink path) Thanks for any suggestion Cheers Matteo [0] https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155 ___ 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-developer
Re: [QGIS-Developer] Pyqgis master api search broken?
Hi Richard, 3.28 is working fine for me here. I don't see any JQuery related error in the debugging console. Where are you seeing this error? Cheers Matteo On 2/8/23 09:46, Richard Duivenvoorde wrote: Now 3.28 is also 'affected' ? In dev console I see: Uncaught ReferenceError: jQuery is not defined is some jquery cdn failing? Regards, Richard Duivenvoorde On 2023-02-08 09:12, matteo via QGIS-Developer wrote: Hi Denis, Is this related to this? https://github.com/qgis/pyqgis/commit/465d91a265e4f1828f0da623d32f8ac7a1de <https://github.com/qgis/pyqgis/commit/465d91a265e4f1828f0da623d32f8ac7a1de> Matteo, shall we try to revert? not sure about that. I was searching in the docs till yesterday and it was working. Has something changed in the last weeks? Cheers Matteo Cheers, Denis Le mer. 8 févr. 2023 à 08:58, matteo via QGIS-Developer <mailto:qgis-developer@lists.osgeo.org>> a écrit : Hi Richard, I can confirm: searching in master will stay there forever without finding anything. Cheers Matteo On 2/8/23 08:52, Richard Duivenvoorde via QGIS-Developer wrote: > Hi, > > Am I right to conclude something is wrong with PyQGIS api (DOCS build) > for master? > > https://qgis.org/pyqgis/master/search.html <https://qgis.org/pyqgis/master/search.html> > isn't working (missing jQuery?) > while > https://qgis.org/pyqgis/3.28/search.html <https://qgis.org/pyqgis/3.28/search.html> > is working (with me)? > > Others can confirm? > > Regards, > > Richard Duivenvoorde > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> ___ 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-developer ___ 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-developer
Re: [QGIS-Developer] Pyqgis master api search broken?
Hi Denis, Is this related to this? https://github.com/qgis/pyqgis/commit/465d91a265e4f1828f0da623d32f8ac7a1de <https://github.com/qgis/pyqgis/commit/465d91a265e4f1828f0da623d32f8ac7a1de> Matteo, shall we try to revert? not sure about that. I was searching in the docs till yesterday and it was working. Has something changed in the last weeks? Cheers Matteo Cheers, Denis Le mer. 8 févr. 2023 à 08:58, matteo via QGIS-Developer mailto:qgis-developer@lists.osgeo.org>> a écrit : Hi Richard, I can confirm: searching in master will stay there forever without finding anything. Cheers Matteo On 2/8/23 08:52, Richard Duivenvoorde via QGIS-Developer wrote: > Hi, > > Am I right to conclude something is wrong with PyQGIS api (DOCS build) > for master? > > https://qgis.org/pyqgis/master/search.html <https://qgis.org/pyqgis/master/search.html> > isn't working (missing jQuery?) > while > https://qgis.org/pyqgis/3.28/search.html <https://qgis.org/pyqgis/3.28/search.html> > is working (with me)? > > Others can confirm? > > Regards, > > Richard Duivenvoorde > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> ___ 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-developer
Re: [QGIS-Developer] Pyqgis master api search broken?
Hi Richard, I can confirm: searching in master will stay there forever without finding anything. Cheers Matteo On 2/8/23 08:52, Richard Duivenvoorde via QGIS-Developer wrote: Hi, Am I right to conclude something is wrong with PyQGIS api (DOCS build) for master? https://qgis.org/pyqgis/master/search.html isn't working (missing jQuery?) while https://qgis.org/pyqgis/3.28/search.html is working (with me)? Others can confirm? Regards, Richard Duivenvoorde ___ 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-developer ___ 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-developer
Re: [QGIS-Developer] Autocomplete python code in QGIS compiled
great! On 1/30/23 00:40, Nyall Dawson wrote: On Tue, 10 Jan 2023 at 02:13, matteo via QGIS-Developer wrote: Hi all, maybe that's a silly question, but with all the self compiled QGIS versions that I have (3.22, 3.28, master, ecc) QGIS is not autocompleting the code, not in the console, editor, Processing script, macros, etc etc. With the QGIS 3.22, but again the version seems not be the problem, installed from packages, the autocompletion works as expected. Is there a parameter in the cmake that I have to adjust or is this behavior expected? It was broken -- but has been fixed by Jürgen and is all working now. What we need now is someone with some insight into how the 3rd party .api files in https://github.com/qgis/QGIS/tree/master/python/qsci_apis were generated and how we can update these to recent library versions... Nyall p.s. working on a Debian Sid OS Cheers and thanks! 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-developer ___ 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-developer
Re: [QGIS-Developer] [solved] weird RuntimeError: qgis._gui cannot import type '����' from PytQT5.QtCore"
Hi Evan, thanks, it works! Cheers Matteo On 1/30/23 15:45, Even Rouault via QGIS-Developer wrote: Hi, just to avoid other people losing a couple hours like me... If you update to latest master on Debian/Ubuntu, and after rebuild, you get a cryptic error like the following when importing qgis_gui: # PYTHONPATH=output/python QGIS_PREFIX_PATH=output python3 -c "from qgis._gui import *" Traceback (most recent call last): File "", line 1, in RuntimeError: qgis._gui cannot import type '' from PyQt5.QtCore Then the fix is to install python3-pyqt5.qtmultimedia. Cf https://github.com/qgis/QGIS/commit/324dac16696bff43d637920733eb5ee4cb7b3ddf Thanks to Alessandro for hinting me on the right direction. I'd wish PyQt would output a better error message... Even ___ 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-developer
Re: [QGIS-Developer] PyQt db_manager(?) compile error
Hi Richard, same here. On Debian with a new folder and a fresh compilation. Did you solved? make[2]: *** [python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:90: python/plugins/db_manager/ui_DlgCancelTaskQuery.py] Error 1 make[2]: *** Deleting file 'python/plugins/db_manager/ui_DlgCancelTaskQuery.py' make[2]: *** [python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:98: python/plugins/db_manager/ui_DlgCreateIndex.py] Error 1 make[2]: *** Deleting file 'python/plugins/db_manager/ui_DlgCreateIndex.py' make[2]: *** [python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:102: python/plugins/db_manager/ui_DlgCreateTable.py] Error 1 make[2]: *** Deleting file 'python/plugins/db_manager/ui_DlgCreateTable.py' An unexpected error occurred. Check that you are using the latest version of PyQt5 and send an error report to supp...@riverbankcomputing.com, including the following information: * your version of PyQt (5.15.8) * the UI file that caused this error * the debug output of pyuic5 (use the -d flag when calling pyuic5) make[2]: *** [python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:94: python/plugins/db_manager/ui_DlgCreateConstraint.py] Error 1 make[2]: *** Deleting file 'python/plugins/db_manager/ui_DlgCreateConstraint.py' make[1]: *** [CMakeFiles/Makefile2:6344: python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/all] Error 2 Cheers Matteo On 1/27/23 13:23, Richard Duivenvoorde via QGIS-Developer wrote: Hi, Compiling master on Debian Testing today, I first was presented with a new dependency Qt5Multimedia (hopefully we can soon use QGIS as a Spotify client ;-) ), which was installable. But then my (fresh) build stalls at: [9773/9812] Generating ui_DlgAddGeometryColumn.py FAILED: python/plugins/db_manager/ui_DlgAddGeometryColumn.py /home/richard/git/qgis/build/python/plugins/db_manager/ui_DlgAddGeometryColumn.py cd /home/richard/git/qgis/build/python/plugins/db_manager && /home/richard/git/qgis/scripts/pyuic_wrapper.sh /usr/bin/pyuic5 /home/richard/git/qgis/build/output/lib /home/richard/git/qgis/build/output/python /usr/bin/python3 /home/richard/git/qgis/python/plugins/db_manager/ui/DlgAddGeometryColumn.ui -o /home/richard/git/qgis/build/python/plugins/db_manager/ui_DlgAddGeometryColumn.py An unexpected error occurred. Check that you are using the latest version of PyQt5 and send an error report to supp...@riverbankcomputing.com, including the following information: * your version of PyQt (5.15.7) * the UI file that caused this error * the debug output of pyuic5 (use the -d flag when calling pyuic5) Others have that issue? Running pyuic -d on one of the errors seems fine (see below). Regards, Richard Duivenvoorde /usr/bin/pyuic5 -d /home/richard/git/qgis/python/plugins/db_manager/ui/DlgExportVector.ui PyQt5.uic.uiparser: uiname is DbManagerDlgExportVector PyQt5.uic.uiparser: toplevel widget is QDialog PyQt5.uic.properties: setting property geometry PyQt5.uic.properties: setting property windowTitle PyQt5.uic.uiparser: push QDialog DbManagerDlgExportVector PyQt5.uic.uiparser: push QGridLayout gridLayout_2 PyQt5.uic.properties: setting property text PyQt5.uic.uiparser: push QLineEdit editOutputFile PyQt5.uic.uiparser: pop widget QLineEdit editOutputFile PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector PyQt5.uic.properties: setting property orientation PyQt5.uic.properties: setting property standardButtons PyQt5.uic.uiparser: push QDialogButtonBox buttonBox PyQt5.uic.uiparser: pop widget QDialogButtonBox buttonBox PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector PyQt5.uic.uiparser: push QComboBox cboFileFormat PyQt5.uic.uiparser: pop widget QComboBox cboFileFormat PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector PyQt5.uic.properties: setting property sizePolicy PyQt5.uic.properties: setting property text PyQt5.uic.uiparser: push QLabel label_5 PyQt5.uic.uiparser: pop widget QLabel label_5 PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector PyQt5.uic.properties: setting property title PyQt5.uic.uiparser: push QGroupBox groupBox_2 PyQt5.uic.uiparser: push QGridLayout gridLayout PyQt5.uic.properties: setting property text PyQt5.uic.uiparser: push QCheckBox chkDropTable PyQt5.uic.uiparser: pop widget QCheckBox chkDropTable PyQt5.uic.uiparser: new topwidget self.groupBox_2 PyQt5.uic.uiparser: push QHBoxLayout horizontalLayout PyQt5.uic.properties: setting property text PyQt5.uic.uiparser: push QCheckBox chkSourceSrid PyQt5.uic.uiparser: pop widget QCheckBox chkSourceSrid PyQt5.uic.uiparser: new topwidget self.groupBox_2 PyQt5.uic.properties: setting property enabled PyQt5.uic.properties: setting property text PyQt5.uic.uiparser: push QLineEdit editSourceSrid PyQt5.uic.uiparser: pop widget QLineEdit editSourceSrid PyQt5.uic.uiparser: new topwidget self.groupBox_2 PyQt5.uic.properties: setting prope
Re: [QGIS-Developer] Statistics of QGIS downloads
Hi Andreas, thanks, I couldn't find the link anymore Cheers Matteo On 1/24/23 16:08, Andreas Neumann wrote: Hi Matteo, See https://analytics.qgis.org/ <https://analytics.qgis.org/> and https://blog.qgis.org/2022/06/16/qgis-userbase-analytics/ <https://blog.qgis.org/2022/06/16/qgis-userbase-analytics/> Greetings, Andreas On Tue, 24 Jan 2023 at 16:05, matteo via QGIS-Developer mailto:qgis-developer@lists.osgeo.org>> wrote: Hi all, if I'm not wrong (Tim?) there was kind of dashboard to see the download statistics of QGIS, but I cannot find it anymore. Is there a link available? Cheers and thanks Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> -- -- Andreas Neumann QGIS.ORG <http://QGIS.ORG> board member (treasurer) ___ 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-developer
[QGIS-Developer] Statistics of QGIS downloads
Hi all, if I'm not wrong (Tim?) there was kind of dashboard to see the download statistics of QGIS, but I cannot find it anymore. Is there a link available? Cheers and thanks 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-developer
[QGIS-Developer] Autocomplete python code in QGIS compiled
Hi all, maybe that's a silly question, but with all the self compiled QGIS versions that I have (3.22, 3.28, master, ecc) QGIS is not autocompleting the code, not in the console, editor, Processing script, macros, etc etc. With the QGIS 3.22, but again the version seems not be the problem, installed from packages, the autocompletion works as expected. Is there a parameter in the cmake that I have to adjust or is this behavior expected? p.s. working on a Debian Sid OS Cheers and thanks! 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-developer
Re: [QGIS-Developer] Skip loading plugin if errors
Hi Germàn, I successfully used also your code and it really works perfectly. Thanks for sharing it! Cheers Matteo On 12/28/22 10:40, Germán Carrillo wrote: Hi Matteo, I've added a few validations for this plugin to gently inform users of missing dependencies: https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/__init__.py <https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/__init__.py> Hope that helps. Regards, Germán El mié, 28 dic 2022 a las 9:58, matteo via QGIS-Developer (<mailto:qgis-developer@lists.osgeo.org>>) escribió: Hi devs, I'm developing a Processing provider plugin that needs some external python packages. If these are not installed on the system, when starting QGIS and loading the plugin the error message pops up (of course). Is there a way to have a "more friendly" message without opening the Stacktrace? For example creating a messagebox/bar with the message "Install the package.. else you cannot use the plugin" I've added a simple try/except in the plugin classFactory method but I'm still stuck in the loop somewhere. Thanks for any suggestion Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> -- --- |\__ (:>__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/ <http://geotux.tuxfamily.org/> https://twitter.com/GeoTux2 <http://twitter.com/GeoTux2> <http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo> ___ 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-developer
Re: [QGIS-Developer] Skip loading plugin if errors
Another solution, not the best one and working just because the plugin is a Processing provider would be to put try: import external_library except ImportError: raise QgsProcessingException(self.tr('This algorithm requires the Python .. library. Please install this library and try again.')) within the processAlgorithm method. I know that if there are many algorithms you have to repeat the code for each one, and that if the algorithm has many parameters, the user fills all of them and it's not nice to inform after, but :) Cheers Matteo On 12/28/22 10:40, Germán Carrillo wrote: Hi Matteo, I've added a few validations for this plugin to gently inform users of missing dependencies: https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/__init__.py <https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/__init__.py> Hope that helps. Regards, Germán El mié, 28 dic 2022 a las 9:58, matteo via QGIS-Developer (<mailto:qgis-developer@lists.osgeo.org>>) escribió: Hi devs, I'm developing a Processing provider plugin that needs some external python packages. If these are not installed on the system, when starting QGIS and loading the plugin the error message pops up (of course). Is there a way to have a "more friendly" message without opening the Stacktrace? For example creating a messagebox/bar with the message "Install the package.. else you cannot use the plugin" I've added a simple try/except in the plugin classFactory method but I'm still stuck in the loop somewhere. Thanks for any suggestion Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> -- --- |\__ (:>__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/ <http://geotux.tuxfamily.org/> https://twitter.com/GeoTux2 <http://twitter.com/GeoTux2> <http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo> ___ 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-developer
Re: [QGIS-Developer] Skip loading plugin if errors
Hola Germàn, thanks for the suggestion! I'll try and let you know Cheers Matteo On 12/28/22 10:40, Germán Carrillo wrote: Hi Matteo, I've added a few validations for this plugin to gently inform users of missing dependencies: https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/__init__.py <https://github.com/SwissTierrasColombia/Asistente-LADM-COL/blob/master/asistente_ladm_col/__init__.py> Hope that helps. Regards, Germán El mié, 28 dic 2022 a las 9:58, matteo via QGIS-Developer (<mailto:qgis-developer@lists.osgeo.org>>) escribió: Hi devs, I'm developing a Processing provider plugin that needs some external python packages. If these are not installed on the system, when starting QGIS and loading the plugin the error message pops up (of course). Is there a way to have a "more friendly" message without opening the Stacktrace? For example creating a messagebox/bar with the message "Install the package.. else you cannot use the plugin" I've added a simple try/except in the plugin classFactory method but I'm still stuck in the loop somewhere. Thanks for any suggestion Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> -- --- |\__ (:>__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/ <http://geotux.tuxfamily.org/> https://twitter.com/GeoTux2 <http://twitter.com/GeoTux2> <http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo> ___ 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-developer
[QGIS-Developer] Skip loading plugin if errors
Hi devs, I'm developing a Processing provider plugin that needs some external python packages. If these are not installed on the system, when starting QGIS and loading the plugin the error message pops up (of course). Is there a way to have a "more friendly" message without opening the Stacktrace? For example creating a messagebox/bar with the message "Install the package.. else you cannot use the plugin" I've added a simple try/except in the plugin classFactory method but I'm still stuck in the loop somewhere. Thanks for any suggestion 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-developer
Re: [QGIS-Developer] Building pyqgis doc locally
you might need to copy the folder, same than for _templates: see https://github.com/qgis/pyqgis/search?q=_templates <https://github.com/qgis/pyqgis/search?q=_templates> this approach seems working (at least locally). I've made a PR: https://github.com/qgis/pyqgis/pull/101 Cheers and thanks for the help Matteo> otherwise, look at https://github.com/qgis/pyqgis/pull/89/files?w=1 <https://github.com/qgis/pyqgis/pull/89/files?w=1> Le mar. 13 déc. 2022 à 09:12, matteo <mailto:matteo.ghe...@gmail.com>> a écrit : Hi Denis, > yes you can limit what you build > see https://github.com/qgis/pyqgis/blob/master/scripts/build-docs.sh <https://github.com/qgis/pyqgis/blob/master/scripts/build-docs.sh> > <https://github.com/qgis/pyqgis/blob/master/scripts/build-docs.sh <https://github.com/qgis/pyqgis/blob/master/scripts/build-docs.sh>> > > either use --package core/gui/… or --class QgsVector (which will work as > QgsVector*) thanks, it works as expected! Last (hopefully :) ) question: I'm adding some custom css in the _static/css/custom.css file. I've also added: html_static_path = ['_static'] html_css_files = [ 'css/custom.css', ] in the conf.py.in <http://conf.py.in> file, but when compiling sphinx is complaining: WARNING: html_static_path entry '_static' does not exist Do you have any idea why this is happening? Cheers and thanks again Matteo > > > > > Another approach is to do a PR on the repo, you will have a built > > example at https://qgis.org/pyqgis/master_PRXX <https://qgis.org/pyqgis/master_PRXX> > <https://qgis.org/pyqgis/master_PRXX <https://qgis.org/pyqgis/master_PRXX>> > > <https://qgis.org/pyqgis/master_PRXX <https://qgis.org/pyqgis/master_PRXX> > <https://qgis.org/pyqgis/master_PRXX <https://qgis.org/pyqgis/master_PRXX>>> (replace XX) when it's finished. > > and this can be done also to the forked repository right? > > > you would need to enable the pages on your repo, I am not sure this will > work out-of-the-box. > > > > I believe it would require a bit of love to improve this workflow > and > > drop the gh-pages branch. > > > > I hope this helps a bit. > > Thanks Denis > > Matteo > > > > Cheers, > > Denis > > > > > > > > Le mar. 13 déc. 2022 à 08:14, matteo via QGIS-Developer > > mailto:qgis-developer@lists.osgeo.org> > <mailto:qgis-developer@lists.osgeo.org <mailto:qgis-developer@lists.osgeo.org>> > <mailto:qgis-developer@lists.osgeo.org <mailto:qgis-developer@lists.osgeo.org> > <mailto:qgis-developer@lists.osgeo.org <mailto:qgis-developer@lists.osgeo.org>>>> > > a écrit : > > > > Hi devs, > > > > I've some small ideas to enhance the readthedocs theme of the > pyqgis > > documentation and I want make some local test before making a > pull > > request. > > > > I've cloned this repository (around 7GB?!): > > > > https://github.com/qgis/pyqgis <https://github.com/qgis/pyqgis> <https://github.com/qgis/pyqgis <https://github.com/qgis/pyqgis>> > <https://github.com/qgis/pyqgis <https://github.com/qgis/pyqgis> <https://github.com/qgis/pyqgis <https://github.com/qgis/pyqgis>>> > > > > and then I followed the instruction of the Readme file. It seems > > building but it is literally taking ages (./build-docs.sh > > -qgis-build-dir /home/matteo/dev/qgis-master/). > > > > Am I doing something wrong or can I use some shortcut to > build it? I'm > > just playing with some css and eventually the config.py.in <http://config.py.in> > <http://config.py.in <http://config.py.in>> > > <http://config.py.in <http://config.py.in> <http://config.py.in <http://config.py.in>>> file. > > > > Cheers and thanks for any advice > > > > Matteo > > > > ___
Re: [QGIS-Developer] Building pyqgis doc locally
Hi Denis, yes you can limit what you build see https://github.com/qgis/pyqgis/blob/master/scripts/build-docs.sh <https://github.com/qgis/pyqgis/blob/master/scripts/build-docs.sh> either use --package core/gui/… or --class QgsVector (which will work as QgsVector*) thanks, it works as expected! Last (hopefully :) ) question: I'm adding some custom css in the _static/css/custom.css file. I've also added: html_static_path = ['_static'] html_css_files = [ 'css/custom.css', ] in the conf.py.in file, but when compiling sphinx is complaining: WARNING: html_static_path entry '_static' does not exist Do you have any idea why this is happening? Cheers and thanks again Matteo > Another approach is to do a PR on the repo, you will have a built > example at https://qgis.org/pyqgis/master_PRXX <https://qgis.org/pyqgis/master_PRXX> > <https://qgis.org/pyqgis/master_PRXX <https://qgis.org/pyqgis/master_PRXX>> (replace XX) when it's finished. and this can be done also to the forked repository right? you would need to enable the pages on your repo, I am not sure this will work out-of-the-box. > I believe it would require a bit of love to improve this workflow and > drop the gh-pages branch. > > I hope this helps a bit. Thanks Denis Matteo > Cheers, > Denis > > > > Le mar. 13 déc. 2022 à 08:14, matteo via QGIS-Developer > mailto:qgis-developer@lists.osgeo.org> <mailto:qgis-developer@lists.osgeo.org <mailto:qgis-developer@lists.osgeo.org>>> > a écrit : > > Hi devs, > > I've some small ideas to enhance the readthedocs theme of the pyqgis > documentation and I want make some local test before making a pull > request. > > I've cloned this repository (around 7GB?!): > > https://github.com/qgis/pyqgis <https://github.com/qgis/pyqgis> <https://github.com/qgis/pyqgis <https://github.com/qgis/pyqgis>> > > and then I followed the instruction of the Readme file. It seems > building but it is literally taking ages (./build-docs.sh > -qgis-build-dir /home/matteo/dev/qgis-master/). > > Am I doing something wrong or can I use some shortcut to build it? I'm > just playing with some css and eventually the config.py.in <http://config.py.in> > <http://config.py.in <http://config.py.in>> file. > > Cheers and thanks for any advice > > Matteo > > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> <mailto:QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> > <https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> > <https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer>> > ___ 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-developer
Re: [QGIS-Developer] Building pyqgis doc locally
Hi Denis, The main issue is that the website is added to a branch (gh-pages) and is versioned. From time to time, I squash the commits and force push to avoid such a large size (obviously, it's been a while since I didn't do it). I am a bit reluctant at squashing / force pushing directly from the workflow as any error would mean losing the pages (potentially losing the older versions). By fetching only the master branch you should be better. got it, thanks Then, building docs shouldn't take too long. What duration are you experiencing? just reading sources it's more than 10 minutes while building the documentation is still running (so more or less 30 minutes). I don't understand if/where I can skip sources and compile just a small small part of the documentation since what I want to to is only theme related. Another approach is to do a PR on the repo, you will have a built example at https://qgis.org/pyqgis/master_PRXX <https://qgis.org/pyqgis/master_PRXX> (replace XX) when it's finished. and this can be done also to the forked repository right? I believe it would require a bit of love to improve this workflow and drop the gh-pages branch. I hope this helps a bit. Thanks Denis Matteo Cheers, Denis Le mar. 13 déc. 2022 à 08:14, matteo via QGIS-Developer mailto:qgis-developer@lists.osgeo.org>> a écrit : Hi devs, I've some small ideas to enhance the readthedocs theme of the pyqgis documentation and I want make some local test before making a pull request. I've cloned this repository (around 7GB?!): https://github.com/qgis/pyqgis <https://github.com/qgis/pyqgis> and then I followed the instruction of the Readme file. It seems building but it is literally taking ages (./build-docs.sh -qgis-build-dir /home/matteo/dev/qgis-master/). Am I doing something wrong or can I use some shortcut to build it? I'm just playing with some css and eventually the config.py.in <http://config.py.in> file. Cheers and thanks for any advice Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> ___ 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-developer
[QGIS-Developer] Building pyqgis doc locally
Hi devs, I've some small ideas to enhance the readthedocs theme of the pyqgis documentation and I want make some local test before making a pull request. I've cloned this repository (around 7GB?!): https://github.com/qgis/pyqgis and then I followed the instruction of the Readme file. It seems building but it is literally taking ages (./build-docs.sh -qgis-build-dir /home/matteo/dev/qgis-master/). Am I doing something wrong or can I use some shortcut to build it? I'm just playing with some css and eventually the config.py.in file. Cheers and thanks for any advice 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-developer
Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)
Hi Germàn, If you want and if you have the time, we could have a look at this issue at the QGIS Contributors Meeting in Firenze :) that's great, see you very soon! Cheers! Matteo Regards! Germán El lun, 1 ago 2022 a las 17:07, matteo (<mailto:matteo.ghe...@gmail.com>>) escribió: Hi German, yes in your way it is working. But what if you try not with the algorithm/model id, but with an instance of the algorithm? In the docs I read "Either an instance of an algorithm, or an algorithm's ID", therefore I'm trying to set up an instance of my algorithm and then passing it to the method Cheers and thanks Matteo On 8/1/22 16:17, Germán Carrillo wrote: > Hi Matteo, > > I've been successfully using /execAlgorithmDialog()/ instead [0]: > > /processing.execAlgorithmDialog("my_provider:my_algorithm", params)/ > > where, /params/ is a dict with the pre-filled values you have. You can > see an example at [1]. > > Regards, > > Germán > --- > [0] > https://github.com/qgis/QGIS/blob/2d1aa68f0d044f2aced7ebeca8d2fa6b754ac970/python/plugins/processing/tools/general.py#L185 <https://github.com/qgis/QGIS/blob/2d1aa68f0d044f2aced7ebeca8d2fa6b754ac970/python/plugins/processing/tools/general.py#L185> <https://github.com/qgis/QGIS/blob/2d1aa68f0d044f2aced7ebeca8d2fa6b754ac970/python/plugins/processing/tools/general.py#L185 <https://github.com/qgis/QGIS/blob/2d1aa68f0d044f2aced7ebeca8d2fa6b754ac970/python/plugins/processing/tools/general.py#L185>> > [1] > https://github.com/SwissTierrasColombia/LADM-COL-Add-on-Ambiente/blob/master/ladm_col_environment_add_on.py#L140 <https://github.com/SwissTierrasColombia/LADM-COL-Add-on-Ambiente/blob/master/ladm_col_environment_add_on.py#L140> <https://github.com/SwissTierrasColombia/LADM-COL-Add-on-Ambiente/blob/master/ladm_col_environment_add_on.py#L140 <https://github.com/SwissTierrasColombia/LADM-COL-Add-on-Ambiente/blob/master/ladm_col_environment_add_on.py#L140>> > > > El lun, 1 ago 2022 a las 15:23, matteo via QGIS-Developer > (mailto:qgis-developer@lists.osgeo.org> > <mailto:qgis-developer@lists.osgeo.org <mailto:qgis-developer@lists.osgeo.org>>>) escribió: > > Hi all, > > I've a set of custom processing scripts within a plugin (that is both > "normal" and processing provider plugin). > > I'm trying to executing the dialog of these algorithm from one of the > main plugin file. I found the processing.createAlgorithmDialog [0], but > it is constantly crashing when I'm passing the instance of the > algorithm: > > my_alg = MyCustomAlg() > my_dialog = my_alg.createAlgorithmDialog(custom_dict) > > ## crash here > > Thinking it was a problem of the threads I also tried to overwrite the > `flag` method in the algorithm by setting also > QgsProcessingAlgorithm.FlagNoThreading but with the same results. > > I know I can run the processing algorithm with processing.run() but > I need to open the dialog pre-filled with custom parameters and to get > also some other outputs besides the standard ones (like the > QgsFeatureSink path) > > Thanks for any suggestion > > Cheers > > Matteo > > > [0] > https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155 <https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155> <https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155 <https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155>> > > ___ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> <mailto:QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> > <https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> > <https://lists
Re: [QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)
Hi German, yes in your way it is working. But what if you try not with the algorithm/model id, but with an instance of the algorithm? In the docs I read "Either an instance of an algorithm, or an algorithm's ID", therefore I'm trying to set up an instance of my algorithm and then passing it to the method Cheers and thanks Matteo On 8/1/22 16:17, Germán Carrillo wrote: Hi Matteo, I've been successfully using /execAlgorithmDialog()/ instead [0]: /processing.execAlgorithmDialog("my_provider:my_algorithm", params)/ where, /params/ is a dict with the pre-filled values you have. You can see an example at [1]. Regards, Germán --- [0] https://github.com/qgis/QGIS/blob/2d1aa68f0d044f2aced7ebeca8d2fa6b754ac970/python/plugins/processing/tools/general.py#L185 <https://github.com/qgis/QGIS/blob/2d1aa68f0d044f2aced7ebeca8d2fa6b754ac970/python/plugins/processing/tools/general.py#L185> [1] https://github.com/SwissTierrasColombia/LADM-COL-Add-on-Ambiente/blob/master/ladm_col_environment_add_on.py#L140 <https://github.com/SwissTierrasColombia/LADM-COL-Add-on-Ambiente/blob/master/ladm_col_environment_add_on.py#L140> El lun, 1 ago 2022 a las 15:23, matteo via QGIS-Developer (<mailto:qgis-developer@lists.osgeo.org>>) escribió: Hi all, I've a set of custom processing scripts within a plugin (that is both "normal" and processing provider plugin). I'm trying to executing the dialog of these algorithm from one of the main plugin file. I found the processing.createAlgorithmDialog [0], but it is constantly crashing when I'm passing the instance of the algorithm: my_alg = MyCustomAlg() my_dialog = my_alg.createAlgorithmDialog(custom_dict) ## crash here Thinking it was a problem of the threads I also tried to overwrite the `flag` method in the algorithm by setting also QgsProcessingAlgorithm.FlagNoThreading but with the same results. I know I can run the processing algorithm with processing.run() but I need to open the dialog pre-filled with custom parameters and to get also some other outputs besides the standard ones (like the QgsFeatureSink path) Thanks for any suggestion Cheers Matteo [0] https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155 <https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155> ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer <https://lists.osgeo.org/mailman/listinfo/qgis-developer> -- --- |\__ (:>__)( |/ Soluciones Geoinformáticas Libres http://geotux.tuxfamily.org/ <http://geotux.tuxfamily.org/> https://twitter.com/GeoTux2 <http://twitter.com/GeoTux2> <http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo> ___ 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-developer
[QGIS-Developer] createAlgorithmDialog in Processing script (within plugin)
Hi all, I've a set of custom processing scripts within a plugin (that is both "normal" and processing provider plugin). I'm trying to executing the dialog of these algorithm from one of the main plugin file. I found the processing.createAlgorithmDialog [0], but it is constantly crashing when I'm passing the instance of the algorithm: my_alg = MyCustomAlg() my_dialog = my_alg.createAlgorithmDialog(custom_dict) ## crash here Thinking it was a problem of the threads I also tried to overwrite the `flag` method in the algorithm by setting also QgsProcessingAlgorithm.FlagNoThreading but with the same results. I know I can run the processing algorithm with processing.run() but I need to open the dialog pre-filled with custom parameters and to get also some other outputs besides the standard ones (like the QgsFeatureSink path) Thanks for any suggestion Cheers Matteo [0] https://github.com/qgis/QGIS/blob/master/python/plugins/processing/tools/general.py#L155 ___ 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-developer
Re: [QGIS-Developer] QgsVectorLayerSaveAsDialog in python plugin
Hi Andrea, thanks for the information, I missed that. So no way to reuse some existing pyqgis API right? Cheers Matteo On 7/27/22 11:39, Andrea Giudiceandrea via QGIS-Developer wrote: Hi Matteo, there's also a one years old Feature Request [1]. Best regards. Andrea Giudiceandrea [1] https://github.com/qgis/QGIS/issues/45538 Il 27/07/2022 11:20, matteo via QGIS-Developer ha scritto: I discovered that the QgsVectorLayerSaveAsDialog is not available in python bindings [0]. ___ 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-developer ___ 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-developer
[QGIS-Developer] QgsVectorLayerSaveAsDialog in python plugin
Hi all, I discovered that the QgsVectorLayerSaveAsDialog is not available in python bindings [0]. I have the need to export vector layers from a plugin with a similar dialog (with few options compared to the QGIS one). Should I create a custom UI and python class or is another way to have the similar functionalities with other python classes (with UI of course :) )? Cheers and thanks for any suggestion! Matteo [0] https://api.qgis.org/api/classQgsVectorLayerSaveAsDialog.html#details ___ 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-developer
[QGIS-Developer] Selection opacity raster image fill QGIS
Hi all, it seems that the opacity of the selection color chosen in the project properties is ignored with a vector layer in raster fill symbology mode. Is this a bug or the expected behavior? Cheers and thanks 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-developer
[QGIS-Developer] QgsCheckableComboBox setEditable makes QGIS crash
Hi all, I'm using a QgsCheckableComboBox in an UI of a plugin. If I use the flag setEditable = False, bot from UI or from code, QGIS simply explodes (3.16 from package, 3.23 compiled on a Debian sid OS). What is strange, at least for me, is that even by using in a python console the following code, QGIS explodes: c = QgsCheckableComboBox() c.setEditable(False) c.show() while without the c.setEditable(False) no problem and also the following code is working nice: c = QComboBox() c.setEditable(False) c.show() Not sure if it is something related to my system. Should I file a ticket? Thanks! 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-developer
Re: [QGIS-Developer] Offline layer
Hi Harrissou, that's a good question. From what I understood the icon/flag is added "manually" when needed (by QFieldSync, Offline editing plugin, etc). Not sure how/when it should removed: maybe changing the data source is still pointing to an offline layer. At the beginning I was thinking that if a layer was "converted" to offline and for example put into a geopackage, then some additional metadata were added in some additional table within the geopackage itself. But now I understand that the flag is manually added by the developer 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-developer
Re: [QGIS-Developer] Offline layer
Hi Patrick, mmm where? https://qgis.org/pyqgis/master/search.html?q=isOfflineEditable_keywords=yes=default I was wondering if there is a list of all the custom properties available for the layer, but I cannot find it. Also the QgsMapLayer.setCustomProperty does not explicitly list the keys available: https://qgis.org/pyqgis/master/core/QgsMapLayer.html#qgis.core.QgsMapLayer.setCustomProperty Cheers and thanks 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-developer
Re: [QGIS-Developer] Offline layer
Hi David, got it, and issue solved thanks! I cannot find a list of all custom property keys in the documentation, is there any available? 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-developer
[QGIS-Developer] Offline layer
Hi all, loading a project with many offline layers next to each layer an offline icon appears 8and that's correct :) ). I've changed the data source of all the layers but the offline icon is still there. I'm struggling to understand where can I turn it off but I cannot find it in the layer properties and/or via pyqgis. Does someone have suggestions? Cheers and thanks! 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-developer
Re: [QGIS-Developer] Algorithms in python
Hi, +1 for a standard python plugin. If it's something you feel should definitely be available in qgis installs, then I'd say making the python version as a prototype and then opening a feature request for a c++ port is a good approach. Both Alex Bruy and myself have a history of adopting tickets like this and porting useful tools on a voluntary basis! yes I think this algorithm can be very useful to have in core :) OK so should I reopen the PR? I didn't quite get the workflow: PR opened with a python algorithm, it is accepted, merged and tagged as "to be ported to C++"? Cheers and thanks 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-developer
[QGIS-Developer] Algorithms in python
Hi devs, recently I've made a PR to add an algorithm to the core, written in python: https://github.com/qgis/QGIS/pull/44680 from the comments I get that from now on additional algorithms are accepted only in C++ and not in python anymore. Is this an official statement? My super personal opinion: while I perfectly understand devs position on C++, I think we might miss some useful contributions from python only devs (like me :) ) and we lack of a "straight" way to add useful algorithms to QGIS. I see 2 options: * development of Processing plugins with algorithms that can lead to many plugins and difficulties to find them * have a "straight" way to add additional algorithms to QGIS, like the "Download scripts from collections" of QGIS 2 What is a general opinion about this topic? Cheers and thanks 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-developer
Re: [QGIS-Developer] process bar in processing algs
Hi Pierluigi, can you please explain me better? I have self plugin that in particular part use this code result_grid = processing.run("native:creategrid", params_creategrid) as explained by Prem, if you want to add the progress when you call a "native" algorithm of QGIS within your algorithm, then you can pass to the algorithm parameters: result_grid = processing.run("native:creategrid", params_creategrid, context=context, feedback=feedback) be aware also at the `is_child` parameter. Have a look at the example: https://docs.qgis.org/3.4/en/docs/user_manual/processing/scripts.html#extending-qgsprocessingalgorithm if you want to add steps to the progressBar with your logic then you can use feedback.setProgress(number) to fill the progress bar. Have a look at the template script and you will find a fine usage Hope this helps 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-developer
Re: [QGIS-Developer] process bar in processing algs
Hi Pierluigi, you can fill the progressBar of the Processing algorithm with feedback.setProgress(integer). Hope this helps 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-developer
Re: [QGIS-Developer] QgsProcessingFeedback setProgressText method
Hi Nyall, I can't answer if it's expected behavior or not.. it's very old code which has been ported and moved around a lot over the years. But I would suggest that setProgressText isn't that widely used and isn't really necessary. If it's a useful message write it direct to the log instead. thanks for the explanation. I also think that using setProgressText within a loop is time consuming if printing a lot of stuff in the Log Panel. 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-developer
[QGIS-Developer] QgsProcessingFeedback setProgressText method
Hi all, while developing a Processing plugin, within a loop I'm using the 2 "standard" methods to set the % of progress bar (feedback.setProgress()) and to update accordingly the progress text (feedback.setProgressText()). In the latter case I noticed that the text is also written in the Log panel. Is this the standard behavior? Cheers and thanks! 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-developer
Re: [QGIS-Developer] QgsSpatialIndex nearestNeighbor returns more than 1 feature
Thanks for the answer. I've some border cases (like perfect angles that determines a weird equal distance). Sorry for the noise and thanks for the hint 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-developer
[QGIS-Developer] QgsSpatialIndex nearestNeighbor returns more than 1 feature
Hi all, Using nearestNeighbor of QgsSpatialIndex, even with the flag FlagStoreFeatureGeometries, sometimes I got more than 1 feature related (distance between the features is not the same, I've manually checked). Is there a way to return only the nearest feature? Cheers and thanks 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-developer
[QGIS-Developer] plugin metatada from zip
Hi all, it seems to me that the qgisMinimumVersion in the metadata.txt file is NOT taken into account when the plugin is delivered with a zip file. I've developed a Processing Plugin and set the minimum version to 3.16 but I'm able to install it (through the zip file installation) in a 3.10 QGIS. Is the qgisMinimumVersion taken into account only when installing a plugin with the "standard" installer? 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-developer
Re: [QGIS-Developer] QGIS and privacy
Hi Nyall, that sounds like the best user friendly solution, even if not the quickest to develop. Should I open a ticket as a feature request to keep track of this discussion? Cheers and thanks to all! 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-developer
[QGIS-Developer] QGIS and privacy
Hi devs, in the Italian QGIS Group we had a discussion on privacy "issues" related to the exposure of some Global Variables, like "user_full_name", that is automatically taken from the client. Maybe some variable should be opt-in rather then opt-out: sharing a project between different computers/users can expose the user name without an explicit agreement of the final user. What is your opinion on this? 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-developer
Re: [QGIS-Developer] Loading multiple raster images from processing algorithm
Hi Calvin, I normally use addLayerToLoadOnCompletion to load some additional layer into QGIS from Processing script: context.addLayerToLoadOnCompletion( yourlayer.source(), context.LayerDetails( name='mylayername', project=context.project() ) ) but maybe there are better methods :) 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-developer
Re: [QGIS-Developer] Filter by expression in Report(s)
Thanks Bernd for pointing this out, let's see if there are some takers :) 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-developer
[QGIS-Developer] Filter by expression in Report(s)
Hi devs, I think this is a feature request, but I'm unsure. In the Report Layout when adding a layer in a "Field Group Sections" within another "Field Group Sections", the layers must have a field in common that is used to filter the features. If not, one can use the "join attributes by location" or create a virtual field with an aggregate expression. Is there any interest to add a Expression Combobox instead of a Field Combobox in the Report Layout to filter the features "live"? Or is there a simpler way I'm missing? :) Cheers and thanks 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-developer
Re: [QGIS-Developer] QGIS Blog website down
weird... on firefox I get a timeout while on chromium not thanks for checking Anita 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-developer
[QGIS-Developer] QGIS Blog website down
Hi all, just to report that https://blog.qgis.org/ gives a timeout 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-developer
[QGIS-Developer] change appearance of pushDebugInfo of Processing algorithm
Hi devs, I'm looking for a way to softly customize the Processing Log info of a Processing script. Like having some messages in red or bold (or both :) ). I tried to build a string like: feedback.pushDebugInfo('My important message') but the html like string is not parsed. In the algorithmShortHelp pythonic-html like strings are parsed and showed. Am I missing something? Cheers and thanks 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-developer
Re: [QGIS-Developer] [Qgis-community-team] Call For Community Voting members ballot
Hi all, I just want to introduce Enrico Ferreguti as one of the candidates. Very briefly, Enrico is the most active Italian plugin developer with 14 plugin published [0] (go2mapillary, go2streetview and refFunctions now in core) and with a very active participation in the Italian QGIS Community. Cheers! Matteo [0] https://plugins.qgis.org/plugins/author/Enrico%2520Ferreguti/ ___ 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-developer
[QGIS-Developer] QgsProcessingParameterDateTime with default value
Hi all, I noticed that even with defaultValue=NULL or defaultValue=None or other attempts, QgsProcessingParameterDateTime fills the parameter with the current date (or datetime). Is it possible to have the calendar view empty? Cheers and thanks 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-developer
Re: [QGIS-Developer] GdalUtils in recent QGIS versions
issue aside, you really shouldn't be relying on this class in any 3rd party code. It's private Processing api, and could be removed or changed at any time. yep that's exactly where I'm using it. I'm developing some Processing scripts (as a plugin) and I discovered this bug when using the Processing plugin in 3.10 and master Thanks for the clarification 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-developer
[QGIS-Developer] GdalUtils in recent QGIS versions
Hi all, recently I opened an issue because of a strange behavior of GdalUtils in QGIS 3.17 vs QGIS 3.10 [0] I really think GdalUtils is an extremely useful module we have in QGIS and that we can call in python. Someone else has experienced some recent strange behavior? Cheers and thanks Matteo [0] https://github.com/qgis/QGIS/issues/40662 ___ 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-developer
Re: [QGIS-Developer] Unable to build QGIS master due to multiple definitions of sipQgs3DAlgorithms
Hi Jürgen, Why? sid has the 3D extra headers. yep I know but something eventually went wrong. So I confirm that my cmake configuration is just: cmake ../QGIS \ -DWITH_3D=TRUE Cheers and thanks 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-developer
Re: [QGIS-Developer] Unable to build QGIS master due to multiple definitions of sipQgs3DAlgorithms
Hi all, similar issue here on Debian Sid. With Saber suggestions, the compilation fails: /usr/bin/ld: CMakeFiles/qgis_3d.dir/qgswindow3dengine.cpp.o: in function `QgsWindow3DEngine::QgsWindow3DEngine(QObject*)': qgswindow3dengine.cpp:(.text+0x9e): undefined reference to `Qt3DExtras::Qt3DWindow::Qt3DWindow(QScreen*)' collect2: error: ld returned 1 exit status make[2]: *** [src/3d/CMakeFiles/qgis_3d.dir/build.make:1321: output/lib/libqgis_3d.so.3.17.0] Error 1 make[1]: *** [CMakeFiles/Makefile2:6787: src/3d/CMakeFiles/qgis_3d.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs I removed completely the build folder and stared from scratch. This is the cmake configuration: cmake ../QGIS -DCMAKE_PREFIX_PATH=$(realpath ../QGIS/external/qt3dextra-headers/cmake/Qt53DExtras/) -DQT5_3DEXTRA_INCLUDE_DIR=$(realpath ../QGIS/external/qt3dextra-headers) -DQT5_3DEXTRA_LIBRARY=/usr/lib/x86_64-linux-gnu/libQt53DExtras.so -DWITH_3D=True -DQt53DExtras_DIR=$(realpath ../QGIS/external/qt3dextra-headers/cmake/Qt53DExtras/) some other suggestions? Cheers and thanks 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-developer
[QGIS-Developer] Safely interact with loaded layers in Processing algorithms
Hi devs, I noticed that using in a Processing script something like: project = context.project() mylist = [] for layer in project.mapLayers().values(): mylist.append(layer) # do whatever you like to do might be NOT safe, or at least QGIS (3.10, 3.14) sometime crashes: [Inferior 1 (process 24944) detached] gdb returned 0 Aborted Is this the correct way to do it or is there some more Processing oriented ways? Cheers and thanks 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-developer
Re: [QGIS-Developer] Offline Editing plugin
Hi Nyall, > Possibly -- I've personally never used the plugin and am not sure on > its use cases. But it's on the "death watch list" anyway, being a core > c++ plugin which isn't integrated into the rest of QGIS in any way (no > processing algorithm, etc) the functionalities, especially if already used by other tools, are great and should be maintained, and possibly enhanced. A good syncing tool is essential to have 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-developer
Re: [QGIS-Developer] Travis failing in QGIS-Documentation
Hi Harrissou, I don't have any answer for that, but it is the SAME error I have on my local machine with a compiled version (or even the installation from package) of QGIS. The only way for me to run the tests locally if using docker. I'm taking advantages of your mail to raise this problem (again) :) Cheers and thanks 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-developer
Re: [QGIS-Developer] Offline Editing plugin
Hi Nyall, > Matthias knows this situation better than me and will be able to > confirm, but QFieldSync calls the SAME code as the offline editing > plugin...! waiting for Matthias answer then :) But: if QFieldSync is already using the code of OfflineEditing then we can let the API usage and remove the plugin GUI? Cheers and thanks 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-developer
Re: [QGIS-Developer] Offline Editing plugin
Hi Tim, thanks for the feedback. > Yes I have experienced similar issues - often getting corrupted projects > when I try to round trip data. IMHO we should remove that plugin and > point people to QFieldSync or Mergin as better options for syncing to a > device. I'm also +1 to remove the plugin. I'm also curious: how many people are actually using the OfflineEditing plugin? Cheers and thanks 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-developer
[QGIS-Developer] Offline Editing plugin
Hi all, I had the chance to use a little bit the Offline Editing with a "complex" project and data coming from a postgis DB. * when syncing back the layers are not in the same groups as the original project * a lot of problems with the widgets (e.g. you loose a relation reference layer - key map) * enum data type are not maintained (knowing this data type is not part of gpkg nor spatialite I was hoping for an automatic conversion to value map or similar) IMHO (but of course this is a personal opinion), QFieldSync makes the same things, but better, even if you don't load the project into QField. Other people experienced the same situation? Cheers and thanks 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-developer
Re: [QGIS-Developer] DB Manager makes QGSI crashing
thanks Richard, exact same issue Cheers and sorry for the noise 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-developer
[QGIS-Developer] DB Manager makes QGSI crashing
dgets.so.5 #42 0x7f6d46cd0ec3 in () at /usr/lib/python3/dist-packages/PyQt5/QtWidgets.cpython-38-x86_64-linux-gnu.so #43 0x7f6e1650d87b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5 #44 0x7f6e16fa802e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #45 0x7f6e16fad781 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #46 0x7f6e14ce67fb in QgsApplication::notify(QObject*, QEvent*) () at /home/matteo/dev/qgis-master/output/lib/libqgis_core.so.3.15.0 #47 0x7f6e1650db62 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5 #48 0x7f6e16fac696 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #49 0x7f6e1700095e in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #50 0x7f6e170037ae in () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #51 0x7f6e16fa803f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5 #52 0x7f6e14ce67fb in QgsApplication::notify(QObject*, QEvent*) () at /home/matteo/dev/qgis-master/output/lib/libqgis_core.so.3.15.0 #53 0x7f6e1650db62 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5 #54 0x7f6e168d545b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5 #55 0x7f6e168abc0b in QWindowSystemInterface::sendWindowSystemEvents(QFlags) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5 #56 0x7f6e04b50b6a in () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #57 0x7f6e0c3855fd in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #58 0x7f6e0c385880 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #59 0x7f6e0c38590f in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0 #60 0x7f6e165632ff in QEventDispatcherGlib::processEvents(QFlags) () at /lib/x86_64-linux-gnu/libQt5Core.so.5 #61 0x7f6e1650c4db in QEventLoop::exec(QFlags) () at /lib/x86_64-linux-gnu/libQt5Core.so.5 #62 0x7f6e16514782 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5 #63 0x55f309261555 in main () [Inferior 1 (process 48501) detached] gdb returned 0 Aborted Any suggestion? Cheers and thanks 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-developer
Re: [QGIS-Developer] Travis failing in QGIS-Documentation
Hi Richard, > in is in the conf.py: > > https://github.com/qgis/QGIS-Documentation/blob/master/conf.py#L343 > oh right my fault.. but tests are still failing with a compiled version of QGIS. Can I ask you how you user.mk file looks like? Cheers and thanks 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-developer
Re: [QGIS-Developer] Travis failing in QGIS-Documentation
> where is start_qgis defined? I don't find it in QGIS sources. I thought it is in the output folder (QGIS_PREFIX_PATH = /home/matteo/dev/qgis-master/output) do you have any hint where it is or should be? > No. Looking on docker hub, the image is around 1.8gb (still a lot though) > https://hub.docker.com/repository/docker/qgis/qgis/tags?page=1 well this is what I have on my disk: REPOSITORY TAG IMAGE IDCREATED SIZE qgis/documentation latest 71ede4e335e94 minutes ago 5.4GB qgis/qgislatest 0b3f9be7572e5 hours ago 5.32GB p.s. testing with docker is also not working docker run --rm \ --env=QGIS_PREFIX_PATH=/usr \ --user=0 \ --volume=:/documentation \ qgis/documentation:latest make: *** No rule to make target 'doctest'. Stop. make: *** [docker.mk:5: doctest] Error 2 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-developer
Re: [QGIS-Developer] Travis failing in QGIS-Documentation
Hi Denis, > The Docker has indeed been fixed for about 2 days (and PyQGIS API docs > are being built again since this morning). > > Regarding the segmentation you mention, I don't see this is related to > the Docker image. > It's a bit hard to know from this what is happening from the log. > > Can you run it locally? I get some problems running tests locally, see https://lists.osgeo.org/pipermail/qgis-developer/2020-August/062037.html I also noticed that the docker is almost 10GB, is this size normal? If you have some suggestion to solve this problem I'll update also the documentation (that is right now outdated except for the docker part). Cheers and thanks 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-developer
Re: [QGIS-Developer] Travis restart build button missing
Hi Jorge, > Alternatively, you can close and reopen your PR, if using the GH interface. yep I knew that but I was wondering why the button was not there anymore > On the command line, on the client side, you can force a CI rebuild with > an empty commit: > git commit --amend --no-edit > git push -f I didn't know this :) Cheers and thanks 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-developer
Re: [QGIS-Developer] Travis failing in QGIS-Documentation
Hi Denis, I restarted a build but it is still failing do due a segmentation fault: https://travis-ci.org/github/qgis/QGIS-Documentation/builds/720594748#L1128 Is it sill work in progress? Cheers and thanks 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-developer
[QGIS-Developer] Travis restart build button missing
Hi all, I noticed that (for me) the "Restart Build" button was missing in Travis and I discovered that you just have to log out and log in to make it appear again. So just a small trick if someone is missing the button too 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-developer
Re: [QGIS-Developer] Travis failing in QGIS-Documentation
Hi Denis, thanks for the update and for the fix. Will restart the checks during the afternoon when the fix is pushed 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-developer
[QGIS-Developer] Travis failing in QGIS-Documentation
Hi all, sorry for cross posting and sorry if I missed some existing discussion on this topic. I don't think anybody introduced some strange commit but it seems that the Travis check is always failing even with PR that don't code snippet at all. The error seems related directly with the environment: https://travis-ci.org/github/qgis/QGIS-Documentation/builds/720902932#L694 Exception raised: Traceback (most recent call last): File "/usr/lib/python3.8/doctest.py", line 1329, in __run exec(compile(example.source, filename, "single", File "", line 22, in from qgis.testing import start_app ModuleNotFoundError: No module named 'qgis' Any Travis guru out here? :) Cheers and thanks 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-developer
Re: [QGIS-Developer] Documentation tests failing on local machine
Hi Richard, thanks for the answer! > So not sure what to do with this: > - tell everybody to use docker for this (easiest) > - create better documentation for everybody to setup it's environment > (hard)... IMHO if we want to keep all the chances to run the tests (standard installation, custom installation and docker) than we should document all methods, even if the custom installation is more difficult. I'm -1 to keep only the docker solution, I think that being able to run on the local installation is super important. I would be happy to update the doc guidelines in order to share the solution. @Arnaud do you have some suggestions and/or guidelines I can add to the documentation? Cheers and thanks! 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-developer
[QGIS-Developer] Documentation tests failing on local machine
Hi all, I don't know what I'm doing wrong but when I run documentation tests on my local machine I always get messages like: ** Line 6, in geometry (setup code) Failed example: iface = start_qgis() from qgis.core import ( QgsProject, QgsVectorLayer, ) # Load the countries layer if not QgsProject.instance().mapLayersByName("countries"): vlayer = QgsVectorLayer("/usr/share/qgis/resources/data/world_map.gpkg|layerName=countries", "countries", "ogr") assert vlayer.isValid() QgsProject.instance().addMapLayers([vlayer]) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.8/doctest.py", line 1336, in __run exec(compile(example.source, filename, "single", File "", line 1, in iface = start_qgis() NameError: name 'start_qgis' is not defined ** 1 items had failures: 2 of 2 in geometry (setup code) ***Test Failed*** 2 failures. I've QGIS compiled and I've added this lines in the user.mk file (in order to run test with a compiled version of QGIS instead of the default installation): # Root installation folder QGIS_PREFIX_PATH = /home/matteo/dev/qgis-master/output include venv.mk and run the following code make -f user.mk doctest I followed exactly the documentation (https://docs.qgis.org/testing/en/docs/documentation_guidelines/cookbook_guidelines.html#how-to-test-snippets-on-your-local-machine). I get the same exact errors also with the local installation of QGIS when running: make -f venv.mk doctest Some suggestions? Cheers and thanks! 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-developer
Re: [QGIS-Developer] Implementarion version in Function help JSON Files
HI Alexandre, that's a great improvement, thanks! Having a key to catch the QGIS release related to the expression would be also super useful. Anybody willingly to help on this? Cheers and thanks again 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-developer
Re: [QGIS-Developer] Compiling QGIS with 3D failing
Thanks Etienne. Seems working now. I was 100% sure that I took Richard's suggestions in this build :) Cheers and thanks for the hint 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-developer
Re: [QGIS-Developer] Compiling QGIS with 3D failing
nope. I get this error now: /usr/bin/ld: CMakeFiles/qgis_3d.dir/qgswindow3dengine.cpp.o: in function `QgsWindow3DEngine::QgsWindow3DEngine()': qgswindow3dengine.cpp:(.text+0x5b): undefined reference to `Qt3DExtras::Qt3DWindow::Qt3DWindow(QScreen*)' collect2: error: ld returned 1 exit status make[2]: *** [src/3d/CMakeFiles/qgis_3d.dir/build.make:1052: output/lib/libqgis_3d.so.3.15.0] Error 1 make[2]: Leaving directory '/home/matteo/dev/qgis-master-3d' make[1]: *** [CMakeFiles/Makefile2:7388: src/3d/CMakeFiles/qgis_3d.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs 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-developer
[QGIS-Developer] Input raster resolution in a Processing Model
Hi devs, I cannot find a way to get raster pixel size as a variable within a Processing Model. We have the chance to get the extent by not the resolution information. Is that right? Should I open a feature request (if somebody else is interested)? Cheers and thanks 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-developer
Re: [QGIS-Developer] Compiling QGIS with 3D failing
Hi Saber, thanks for the suggestion, compiling right now, will 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-developer
[QGIS-Developer] Compiling QGIS with 3D failing
Hi all, I got an error when compiling QGIS with 3D support on Debian SID: ..a bunch of similar lines.. /usr/bin/ld: CMakeFiles/python_module_qgis__3d.dir/3d/sip_3dpart5.cpp.o: in function `sipQgs3DAlgorithms::sipProtectVirt_loadAlgorithms(bool)': sip_3dpart5.cpp:(.text+0x8a98): multiple definition of `sipQgs3DAlgorithms::sipProtectVirt_loadAlgorithms(bool)'; CMakeFiles/python_module_qgis__3d.dir/3d/sip_3dpart4.cpp.o:sip_3dpart4.cpp:(.text+0x8ea0): first defined here /usr/bin/ld: CMakeFiles/python_module_qgis__3d.dir/3d/sip_3dpart5.cpp.o:(.data.rel.local+0x420): multiple definition of `sipTypeDef__3d_Qgs3DAlgorithms'; CMakeFiles/python_module_qgis__3d.dir/3d/sip_3dpart4.cpp.o:(.data.rel.local+0x580): first defined here collect2: error: ld returned 1 exit status make[2]: *** [python/CMakeFiles/python_module_qgis__3d.dir/build.make:817: output/python/qgis/_3d.so] Error 1 make[2]: Leaving directory '/home/matteo/dev/qgis-master' make[1]: *** [CMakeFiles/Makefile2:5772: python/CMakeFiles/python_module_qgis__3d.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.. if the 3D support is deactivated then all is working fine. not sure which commit introduced this problem. Cheers and thanks 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-developer
[QGIS-Developer] Processing Raster Calculator in Processing Modeler
Hi devs, I made a search around issues, old PR and emails, but I didn't find any discussion about that, if the topic has already been discussed, please address me to the source :) Very very simple issue: the expression parameter of the Processing Raster Calculator cannot be set to a Model Input Parameter, so the expression within a model is always "hardcoded". E.g. the GDAL Raster Caculator Formula Parameter is a String and can be set to a Model Input Parameter. The syntax of the native Processing Calculator cannot be easy to embed in a string ("dtm@1"..), but if I'm not wrong, the Processing Raster Calculator can be used in "just" a simple way within a model even if it is super powerful! 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-developer
Re: [QGIS-Developer] $currentfeature VS @current_feature
> Also, > > Don't forget that high hierarchy/context @variables can be overwritten > variables defined by the user or lower contexts. > > You can't do that with a function. yep, I'm a big fan of overwriting variables in different contexts :) ___ 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-developer
Re: [QGIS-Developer] $currentfeature VS @current_feature
Thanks Andreas and Harrissou for the clarification. Actually what is confusing me is that the variable @current_feature is suggested in bold directly in the Expression Builder within the Attribute Forms. I know that variable depends on the scope (e.g. @symbol_color) but I thought that IF a variable is suggested then it should be available in that context. I prepared a super small project faunalia.eu/~matteo/bug.zip if you try to add a feature to the point layer you will see that one filed is working and the other not. Cheers and thanks 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-developer
[QGIS-Developer] $currentfeature VS @current_feature
Hi all, before to file a ticker I'd like to have a small feedback. Maybe I'm missing something but what is actually the difference between $currentfeature and @current_feature? Because I was expecting to use @current_feature together with attribute like: attribute(@current_feature, 'my_field') within the Default Value of a Field in the Attributes Form, but it didn't work while attribute($currentfeature, 'my_field') works nice If someone has a small explanation I will gladly add it to the documentation Cheers and thanks for any hint 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-developer
Re: [QGIS-Developer] Custom Options in "Save vector as"
Hi Richard, > That is not 1 link because those options depend on the driver used... > (so I think the link should stay the same, but maybe the docs should state > that these custom options are very driver specific?) > > For example for geojson that would be > > https://gdal.org/drivers/vector/geojson.html#vector-geojson make perfectly sense. I can add a specific link for a specific provider as an example so users have a "where to start" Does this addition make sense? 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-developer
[QGIS-Developer] Custom Options in "Save vector as"
Hi all, I cannot find related GDAL documentation for the "Custom Options" in the "Save Vector As.." dialog. Our documentation points to the main page of gdal.org, if somebody (Even? :) ) has some hints I'll update the upstream doc with a more specific link. Cheers and thanks 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-developer
[QGIS-Developer] QgsProcessingParameterMultipleLayers in Processing Modeler
Hi devs, maybe a silly question but it seems to me that the QgsProcessingParameterMultipleLayers is not correctly exposed in the Processing Modeler Input, but maybe I'm missing something. If you create a new model and try to add a "Multiple Input" input in a model that you want to use with the "Merge Vector Layers" algorithm, the way to feed the algorithm is by using the "Value" mode while I was expecting to use the "Model Input". The model is running just fine, but not sure if this is the expected behavior. Before to open a ticket I just wanted to have some feedback :) 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-developer
Re: [QGIS-Developer] EditInPlace Processing script
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.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] EditInPlace Processing script
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/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Server manual
Hi, for me +1 to remove it from the training manual and move it only to the user manual. If the content is duplicated and the information in the training manual fits in the user one, let's keep doc clean Objections? 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-developer
[QGIS-Developer] Next user survey proposal
Hi all, giving some recent threads (and/or github comments [0]) I think that it could be useful for QGIS to know from users which algorithms of thirdly part algorithms they use and because: * are not available in QGIS * are available in QGIS but don't have that specific(s) parameter(s) * are faster * ... recently I collaborated with an Italian student that tested and ran a few algorithms (intersection, difference, etc) on the same machine with the different providers. I will share a link soon with the results Ideas or feedback? Cheers Matteo [0] https://github.com/qgis/QGIS/pull/35734 ___ 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-developer
Re: [QGIS-Developer] EditInPlace Processing script
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 ___ 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-developer
Re: [QGIS-Developer] EditInPlace Processing script
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 to "change" the geometry of the input layer (union and dissolve). Cheers and thanks for the input anyway! 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-developer
Re: [QGIS-Developer] EditInPlace Processing script
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-developer
[QGIS-Developer] EditInPlace Processing script
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 functionality. There are a few python core algorithms with Thanks for any hint! Cheers Matteo [0] https://qgis.org/pyqgis/3.10/core/QgsProcessingAlgorithm.html#qgis.core.QgsProcessingAlgorithm.supportInPlaceEdit ___ 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-developer
Re: [QGIS-Developer] Geopackage FID columns: i HATE them!!!!
Hi, > I personally HATE HATE HATE these columns, and would rather I never > saw them ever again. Does anyone else feel the same? If so, could we > potentially just permanently hide these columns from QGIS and avoid > all these dangerous issues for users? +1000 from an user perspective the fid is really confusing. The user seems to be able to delete/edit the column but (of course) touching it will throw an error when saving. Moreover, it happens that during format conversion in the attribute table there are fid/pk/id columns, with same numbers. Thanks for raining this 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-developer