Re: [QGIS-Developer] Official PSC call on pull request policies

2024-03-05 Thread Etienne Trimaille via QGIS-Developer
Hi, Le mer. 28 févr. 2024 à 08:32, Julien Cabieces via QGIS-Developer < qgis-developer@lists.osgeo.org> a écrit : > - create a branch > - add your branch name here [0] in a special commit that you will remove > once your work is ready to create a PR > - Push, the CI result appear in

Re: [QGIS-Developer] Python version in 3.28.x CVEs

2024-02-26 Thread Etienne Trimaille via QGIS-Developer
Hi, Le lun. 26 févr. 2024 à 14:47, Samer Kaluf via QGIS-Developer < qgis-developer@lists.osgeo.org> a écrit : > > > We run Qgis 3.28.5 LTR on some computers and Microsoft Security Center > seems to be complaining > > about the presence of Python.exe version 3.8.5.0 included with 3.28.x LTR >

Re: [QGIS-Developer] LAStools QGIS plugin, transfer of ownership

2023-10-27 Thread Etienne Trimaille via QGIS-Developer
Hi, Done, it should be alright now ? Regards, Le jeu. 26 oct. 2023 à 23:42, Silke Kämmerer via QGIS-Developer < qgis-developer@lists.osgeo.org> a écrit : > Hi there, > > > > I hope this email finds you well. I'm contacting you because we need help > with our LAStools QGIS plugin: > > > >

[QGIS-Developer] Python minimum version on QGIS 3.33

2023-08-02 Thread Etienne Trimaille via QGIS-Developer
Hi devs, The current Python minimum version for QGIS 3.33 is currently Python 3.7 (2018) Do you think it's possible to update it for QGIS 3.34 (the next LTR) or would it be possible only later ? Debian Bullseye is providing Python 3.9 (2020). ___

Re: [QGIS-Developer] It is possible to protect qgisserver's wms service using authentication?

2023-07-10 Thread Etienne Trimaille via QGIS-Developer
Hi, It's something you can do in front of QGIS server. QGIS server is not connected to any ACL system by default. Or you can write a QGIS server plugin to add the authentication : https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/server.html#access-control-filters Or some open source

Re: [QGIS-Developer] QGIS Python scripts in a Docker container

2023-07-05 Thread Etienne Trimaille via QGIS-Developer
Hi, I'm not answering straight the question, but you can have a look to the Dockerfile on our working base image : https://github.com/3liz/docker-qgis-platform/ As an example : ➜ cat script.py import qgis.core print(qgis.core.Qgis.QGIS_VERSION) ➜ docker run -it -v $PWD:/scripts

Re: [QGIS-Developer] Profiler times in Python

2023-05-05 Thread Etienne Trimaille via QGIS-Developer
One line I know, maybe this is enough : >>> from qgis.utils import plugin_times >>> plugin_times It's not using the profiler. Values are different from the Profiler, after a quick look... Le ven. 5 mai 2023 à 10:21, Michel Stuyts via QGIS-Developer < qgis-developer@lists.osgeo.org> a écrit : >

Re: [QGIS-Developer] Multiple python scripts in python console?

2023-05-04 Thread Etienne Trimaille via QGIS-Developer
way. > > Thanks and kind regards, > > Raymond > > > On 04-05-2023 11:29, Etienne Trimaille wrote: > > If you are talking about the simple Python console panel, and loading > > Python files from there, then you can skip the " from .script_2 import > >

Re: [QGIS-Developer] Multiple python scripts in python console?

2023-05-04 Thread Etienne Trimaille via QGIS-Developer
If you are talking about the simple Python console panel, and loading Python files from there, then you can skip the " from .script_2 import TestClass". If you notice, when you launch the script_2.py, you have a generated line similar to : exec(Path('/tmp/tmp5g244g4w.py').read_text()) So it's

Re: [QGIS-Developer] Backward compatibility for style in project files between QGIS versions

2023-05-03 Thread Etienne Trimaille via QGIS-Developer
This PR was about the symbology, but we noticed there are many other parts of the QGS file which are not backward compatible. If I'm not wrong : - a WMS shortname on a group made with QGIS 3.20 can not be read with QGIS 3.18. - field server configuration made with QGIS 3.16 can not be read with

Re: [QGIS-Developer] Customizing Layer Panel

2023-04-27 Thread Etienne Trimaille via QGIS-Developer
You should have a look at the QAction documentation : https://doc.qt.io/qt-5/qaction.html The first parameter, you can give a QIcon. For some predefined icon in QGIS, you can look to https://pyqgis-icons-cheatsheet.geotribu.fr/ Le jeu. 27 avr. 2023 à 13:15, Giulio Fattori via QGIS-Developer <

Re: [QGIS-Developer] Approval and Maintainer-Change of ORSTools-Plugin

2023-04-04 Thread Etienne Trimaille via QGIS-Developer
Hi, Are you able to connect on the website ? https://plugins.qgis.org Go in your plugin page, "Manage" tab, then "Edit", at the bottom, you can edit the list of owners. Le mar. 4 avr. 2023 à 15:27, Jakob Schnell via QGIS-Developer < qgis-developer@lists.osgeo.org> a écrit : > Dear QGIS-devs, >

Re: [QGIS-Developer] Issue with qgis Docker images starting from qgis:final-3_22_10

2022-11-09 Thread Etienne Trimaille via QGIS-Developer
ed > in /usr/share/qgis/python/plugins but now in /qgis/python/plugins , this > may have caused the issue. > > Regards, > > > Sergio > > El mié, 9 nov 2022 a la(s) 08:19, Etienne Trimaille via QGIS-Developer ( > qgis-developer@lists.osgeo.org) escribió: > >>

Re: [QGIS-Developer] Issue with qgis Docker images starting from qgis:final-3_22_10

2022-11-09 Thread Etienne Trimaille via QGIS-Developer
Thanks for raising this issue. I can also confirm the regression in unit testing plugins with QGIS 3.22 with QGIS docker images. With the tag qgis/qgis:final-3_22_9 and different branches such as 3.16, 3.28, master, everything works fine. Starting with qgis/qgis:final-3_22_10, tests are not

Re: [QGIS-Developer] Tests & Merge Request

2022-09-12 Thread Etienne Trimaille via QGIS-Developer
To run a specific test, have a look to the README.md https://github.com/qgis/QGIS/blob/master/tests/README.md#running-the-tests "-R" For quite a few files, you will find the helper https://github.com/qgis/QGIS/blob/master/tests/src/python/test_qgspallabeling_server.py#L4 Same, quite a few tests

Re: [QGIS-Developer] deleteShapefile in pyqgis

2022-02-22 Thread Etienne Trimaille
Hi, Are you on Windows ? It's long-standing issue on Windows IIRC : https://gis.stackexchange.com/questions/365713/deleting-shapefile-python-lock-qgis-3-10 or other links. Maybe lyr = QgsProject.instance().mapLayersByName(diff_layer)[0] QgsProject.instance().removeMapLayer(lyr.id()) lyr = None

Re: [QGIS-Developer] Issue with future 3.22 LTR ? (a.k.a missing backports to 3.22)

2021-12-10 Thread Etienne Trimaille
As Harissou said, the PR was created before the 3.22 branch, so the label "backport release-3_32" was not created at that time. Le jeu. 9 déc. 2021 à 15:54, DelazJ a écrit : > Hi Olivier, > > Yes, backporting to 3.16 implies backport to 3.22. And I think the PR you > point here is more about

Re: [QGIS-Developer] Access QgsVectorLayer from child algorithm

2021-11-24 Thread Etienne Trimaille
This might help you ? QgsProcessingUtils::mapLayerFromString() https://qgis.org/api/classQgsProcessingUtils.html#aa1c2360e52d2ed8100faf02a35125b17 Le mer. 24 nov. 2021 à 11:19, Simon Gröchenig < simon.groeche...@salzburgresearch.at> a écrit : > Hi developers, > > I am developing a Python

Re: [QGIS-Developer] projected CRS

2021-10-13 Thread Etienne Trimaille
Hi On the CRS object, isGeographic() and mapUnits() might help you. Le mer. 13 oct. 2021 à 11:50, pierluigi de rosa a écrit : > Dear all, > > mayble a very simple question. > Is it possible to check quickly if a layer has a projected CRS or not? > in QgsCoordinateReferenceSystem I have not

Re: [QGIS-Developer] [Qgis-user] processAlgorithm vs processFeature?

2021-08-25 Thread Etienne Trimaille
Indeed, if you can, you should use a QgsProcessingFeatureBasedAlgorithm algorithm. It will make some shortcuts for you and the code is shorter because you will only have a single feature to process. Have a look to existing source code :

Re: [QGIS-Developer] Access DB manager connection details in a python plugins

2021-07-23 Thread Etienne Trimaille
Can you clarify what you need from DBManager? Widgets ? Features ? Or do you mean to be able to list DB connections and launch SQL queries ? You should avoid importing code from the DbManager plugin as it is removed step by step. Use the database API :

Re: [QGIS-Developer] Using environment variables in QGIS.ini

2021-07-13 Thread Etienne Trimaille
You might find something useful in this new repository : https://github.com/haubourg/custom-osgeo4w-qgis/ ? Le lun. 12 juil. 2021 à 10:54, Alexandre Neto a écrit : > Hi Bo, > > This is some old stuff we wrote at Boundless, I believe it still applies > for QGIS today. > > >

Re: [QGIS-Developer] How to transfer data between QGIS Python plugins?

2021-04-22 Thread Etienne Trimaille
It also depends what you mean by "transferring data". It seems that you mean Python code ? Not geospatial data ? If you mean Python code, you can also have a look at the Processing framework. https://docs.qgis.org/3.16/en/docs/user_manual/processing/index.html You can call Processing algorithm

Re: [QGIS-Developer] [Qgis-community-team] Automatic creation of issue reports in doc repo for new features

2021-03-21 Thread Etienne Trimaille
Thanks for the reminder. I'm just adding some notes as well on PR descriptions. https://changelog.qgis.org/ and https://www.qgis.org/en/site/forusers/visualchangelogs.html are created by "harvesting" the list of PR on GitHub. So the description is important. For information, it want your

Re: [QGIS-Developer] How to read content from the metadata.txt file

2021-03-08 Thread Etienne Trimaille
Hi, configparser is designed to read INI file : https://docs.python.org/3/library/configparser.html There are some helpers if needed in QGIS : https://github.com/qgis/QGIS/blob/master/python/utils.py#L291 to have the configparser from a plugin name if needed. Le lun. 8 mars 2021 à 16:46, Bo

Re: [QGIS-Developer] Visual Changelog 3.18, add some love to some items?

2021-02-18 Thread Etienne Trimaille
The changelog is, before to be transformed in RST, hosted online : https://changelog.qgis.org/en/qgis/version/3.18/ Le ven. 19 févr. 2021 à 10:37, TurboGraphxBeige a écrit : > I would gladly give some love to my potentially dull feature description > but I don't see anything > about the 3.18

Re: [QGIS-Developer] Add a WFS/WMS (or possibly any data source) from API

2021-02-16 Thread Etienne Trimaille
Richard and I mentioned QgsSettings, this a link which can help : https://github.com/qcooperative/qgis-core-tests/blob/master/coretests/tests/testerplugin.py#L95 Le mar. 16 févr. 2021 à 18:13, Richard Duivenvoorde a écrit : > On 2/16/21 9:13 AM, Janvier Thomas wrote: > > Hi all, > > > > I’m

Re: [QGIS-Developer] Add a WFS/WMS (or possibly any data source) from API

2021-02-16 Thread Etienne Trimaille
You can have a look to the "Menu from project" plugin. Especially if you use the project stored in database, it can be easy to maintain for you to edit layers available in the menu. If you really want to add entries in WMS WFS, you can use a custom QGIS INI file within your organisation or add

Re: [QGIS-Developer] new plugin not showing up

2021-02-03 Thread Etienne Trimaille
Yes, this issue has been confirmed by a few people already. Please follow https://github.com/qgis/QGIS-Django/issues/157 Le mer. 3 févr. 2021 à 17:12, Fredrik Lindberg a écrit : > Hi all, > I uploaded a new plugin yesterday ([2289] Potential Slope Failure for > processing) which quickly got

Re: [QGIS-Developer] Transfer published plugin to other user account

2021-02-02 Thread Etienne Trimaille
Hi, On plugins.qgis.org, in your plugins settings, you can already give rights to one or many existing logins. Le mer. 3 févr. 2021 à 01:23, Christoph Franke a écrit : > Hi Devs, > > is it possible to transfer a plugin that is already uploaded into the > QGIS repository to another user

Re: [QGIS-Developer] [Qgis-psc] New community voting members

2021-01-25 Thread Etienne Trimaille
te >> our new community voting members for their election. >> >> David signer >> Enrico Ferreguti >> Etienne Trimaille >> Pedro Venâncio >> Peter Petrik >> Richard Duivenvoorde >> >> I would also like to extend them a heartfelt thank you for all th

Re: [QGIS-Developer] Proxy configuration in plugin

2021-01-21 Thread Etienne Trimaille
The proxy settings are only set up for core class in QGIS, which you should look at to make your requests. CF https://gis.stackexchange.com/questions/343126/how-to-perform-sync-or-async-network-request-in-pyqgis If you really want to use "requests", you should read the QgsSettings about proxy and

Re: [QGIS-Developer] Function to generate uri from settings in QGIS

2021-01-09 Thread Etienne Trimaille
The connection API is indeed convenient for that : metadata = QgsProviderRegistry.instance().providerMetadata('postgres') connection = metadata.findConnection("the postgis connection name") uri = QgsDataSourceUri(connection.uri()) Le sam. 9 janv. 2021 à 22:36, Alessandro Pasotti a écrit : > Hi

Re: [QGIS-Developer] How to clear Log messages in the panel?

2020-12-22 Thread Etienne Trimaille
Just close the tabs. They will reappear as soon as needed. Le mar. 22 déc. 2020 à 10:21, Luca Manganelli < luca.mangane...@comune.trento.it> a écrit : > Hello, > > Is there any way to clear the log messages in the panel? > > Thank you > ___ >

Re: [QGIS-Developer] Problem with plugin upload

2020-12-07 Thread Etienne Trimaille
Indeed, this check has been added last week about the `.git` *directory*. The `.gitignore` mustn't have raised this error. I will report this information. Le lun. 7 déc. 2020 à 14:03, Joona Laine a écrit : > Hi! > > Thank you! I checked and I forgot to remove one of the .gitignore files >

Re: [QGIS-Developer] How to call a custom algorithm provider in stand alone application with pyqgis

2020-11-02 Thread Etienne Trimaille
As you are using QGIS 3.14, I would suggest you to use qgis_process if you can. Do you really want to use PyQGIS? But if you really need PyQGIS, maybe the path where your script is located is not known to your standalone script ? Le lun. 2 nov. 2020 à 17:33, PALMIER Patrick (Responsable de

Re: [QGIS-Developer] Plugin approval question

2020-09-25 Thread Etienne Trimaille
I have just checked quickly. https://plugins.qgis.org/plugins/qgis3redistricter-master/ in the "Details" tabs. Clicking on : * on the issue tracker link, it leads to your website, so we can't create issues. It must be an issue tracker. * on the code repository, it leads to a 404 So it makes the

Re: [QGIS-Developer] Publishing new plugin gives 'you cannot modify'

2020-09-19 Thread Etienne Trimaille
perature', packaged in > 'LandSurfaceTemperature.zip'. > Last I checked, I don't think there was another plugin with the exact same > name. There > is a 'Land Surface Temperature' with the same purpose, but incompatible > with > QGIS 3+. Do you think this might be the issue? > > On S

Re: [QGIS-Developer] Publishing new plugin gives 'you cannot modify'

2020-09-19 Thread Etienne Trimaille
What is the name of the plugin? Maybe there is already a plugin with the same package/folder name? (So you don't own this plugin) Le sam. 19 sept. 2020 à 07:54, Chirag Dasannacharya a écrit : > Hi all, > > I'm a new developer, I'm trying to publish a plugin for the first time. > Apologies if

Re: [QGIS-Developer] Latest sources jump from 3.14.1 to 3.14.15

2020-08-14 Thread Etienne Trimaille
You should follow the roadmap ;-) https://www.qgis.org/en/site/getinvolved/development/roadmap.html#release-schedule Le ven. 14 août 2020 à 14:46, Sebastiaan Couwenberg a écrit : > It seems that something is wrong with the new point release, it jumps > from 3.14.1 to 3.14.15. > > Shouldn't

Re: [QGIS-Developer] "atlasprint" plugin, version 3.1.0, is listed as available - download throws HTTP 404

2020-07-29 Thread Etienne Trimaille
Indeed, the plugin is visible on the list page: https://plugins.qgis.org/plugins/author/3Liz/?page=1&; But we click on the "AtlasPrint", it's a 404: https://plugins.qgis.org/plugins/atlasprint/ Le mer. 29 juil. 2020 à 13:10, Sebastian M. Ernst a écrit : > Just a small find: "atlasprint"

Re: [QGIS-Developer] Compiling QGIS with 3D failing

2020-07-20 Thread Etienne Trimaille
Same as Richard a few days ago: https://lists.osgeo.org/pipermail/qgis-developer/2020-July/061703.html He put the solution after Le lun. 20 juil. 2020 à 12:09, matteo a écrit : > nope. I get this error now: > > /usr/bin/ld: CMakeFiles/qgis_3d.dir/qgswindow3dengine.cpp.o: in function >

Re: [QGIS-Developer] Removal of PostGISExecuteSQL.py in 3.14

2020-07-13 Thread Etienne Trimaille
Le lun. 13 juil. 2020 à 15:59, Nils Nolde a écrit : > Hi, > > I just realized that the processing algo PostGISExecuteSQL.py was > removed for the 3.14 release. The algorithm has been ported to C++, so yes the python version has been removed.

Re: [QGIS-Developer] pyQGIS for pycharm

2020-05-27 Thread Etienne Trimaille
Hi, Did you see https://docs.qgis.org/3.10/en/docs/pyqgis_developer_cookbook/plugins/ide_debugging.html#debugging-with-pycharm-on-ubuntu-with-a-compiled-qgis ? I think only the path must be adapted. You can follow

Re: [QGIS-Developer] annoying frequent github action mail about milestone

2020-05-15 Thread Etienne Trimaille
Emails are coming your fork Jorge. So either disable github action on your fork or I think you might need to have this commit in your fork (so in your branch) Le ven. 15 mai 2020 à 09:45, Jorge Gustavo Rocha a écrit : > Hi Denis, > > I'm still receiving these messages. > > This workflow applies

Re: [QGIS-Developer] Processing algorithms in Qgis serveur

2020-04-23 Thread Etienne Trimaille
Hi, Can you elaborate what do you mean with "how to run processing algorithms in Qqis server?" ? Do you mean providing an WPS service on your server? Or do you mean to run Processing algorithms with a standalone application? Look what has been done in QGIS 3.13

Re: [QGIS-Developer] Server manual

2020-04-21 Thread Etienne Trimaille
Le lun. 20 avr. 2020 à 21:43, Régis Haubourg a écrit : > From the benchmark E have been doing in production, NGINX seems to be > better in most situations. > FYI, his video from the FOSS4G about QGIS Server in production: https://www.youtube.com/watch?v=TchkYqJam3Y

Re: [QGIS-Developer] Server manual

2020-04-17 Thread Etienne Trimaille
Hi, Yes it's not easy, between what is the minimum to do, what is highly recommended, between Apache/NGinx etc. So I think you can go ahead, we will follow your PR. I'm also keeping some notes, I will try to make a PR next week to incorporate them. Le ven. 17 avr. 2020 à 13:17, David Marteau a

Re: [QGIS-Developer] WIP bot

2020-04-14 Thread Etienne Trimaille
Hi, Le mar. 21 janv. 2020 à 20:42, Etienne Trimaille < etienne.trimai...@gmail.com> a écrit : > - I think I cannot make a pull request a draft once its opened (and I >> realize only 10 minutes after opening that I needed to verify X or add some >> tests) >> > I j

Re: [QGIS-Developer] Understanding plugin management in QGIS: Meta data fields

2020-03-31 Thread Etienne Trimaille
Hi, You will find some answers in the QGIS Documentation about "deprecated", "hasProcessingProvider" ... https://docs.qgis.org/3.10/en/docs/pyqgis_developer_cookbook/plugins/plugins.html#plugin-metadata I'm going to add the "server" one. > So `experimental` is actually a property of a plugin

Re: [QGIS-Developer] Testing QGIS Plugin

2020-03-23 Thread Etienne Trimaille
called how many times and in which way on a headless > testing server / CI. Also on QGIS 3. > > Best regards > > Matthias > > > On 3/23/20 12:11 PM, Etienne Trimaille wrote: > > The dummy interface was mainly with QGIS 2. You don't need it anymore. > > You can read :

Re: [QGIS-Developer] Testing QGIS Plugin

2020-03-23 Thread Etienne Trimaille
I forgot this link : https://github.com/3liz/QuickOSM#development-and-tests I put the different ways to launch tests (in Docker, PyCharm, in QGIS Desktop, in CLI) Le lun. 23 mars 2020 à 12:11, Etienne Trimaille a écrit : > The dummy interface was mainly with QGIS 2. You don't need it anym

Re: [QGIS-Developer] Testing QGIS Plugin

2020-03-23 Thread Etienne Trimaille
The dummy interface was mainly with QGIS 2. You don't need it anymore. You can read : https://github.com/qgis/QGIS/tree/master/.docker I will try to make a PR on qgis about Docker this week about some notes I have. Le lun. 23 mars 2020 à 11:48, Jo a écrit : > What I found on the internet

[QGIS-Developer] Size of docker images

2020-03-19 Thread Etienne Trimaille
Hi, Just for your information, I have noticed that the size of official QGIS docker images are increasing: qgis/qgis release-3_4 4.83GB qgis/qgis release-3_106.67GB qgis/qgis latest6.95GB Is-it an issue? A known issue? Thanks

[QGIS-Developer] QgsProject.instance() in QGIS docker 3.10 crash

2020-03-17 Thread Etienne Trimaille
Hi, I have setup some plugins with unittests using Docker. I have followed the documentation : https://github.com/qgis/QGIS/tree/master/.docker to run them locally or/and on Travis. This tests is working well using the QGIS 3.4 docker image : class TestEditionDialog(unittest.TestCase): def

Re: [QGIS-Developer] repo for old-ltr?

2020-03-09 Thread Etienne Trimaille
Hi, We have the same issue as last year for us. Is-there a repository for QGIS 3.4? Similar to: http://qgis.org/debian-ltr-2.18/ http://qgis.org/ubuntugis-ltr-2.18/ for QGIS 2.18. Thanks Le lun. 25 févr. 2019 à 16:50, Paolo Cavallini a écrit : > Thanks a lot Jürgen. > > On 25/02/19 16:39,

Re: [QGIS-Developer] changes in QGIS development with git

2020-03-03 Thread Etienne Trimaille
You should rename your fork. You are still using the old name "Quantum-GIS" and not QGIS ? Le mar. 3 mars 2020 à 15:10, William Kyngesburye a écrit : > OK, now a backporting problem. The backport run appears to be failing > because it can't find my repository. But the merge had no problem

Re: [QGIS-Developer] Q-without-GIS

2020-02-20 Thread Etienne Trimaille
In my previous jobs, I got the use case where I wanted to use QGIS without maps ... It was a Postgresql database and I needed a application to do some CRUD on the database, in an easy way. QGIS does plenty of things like: - forms - attribute table - conditional formatting in the attribute table -

Re: [QGIS-Developer] How to test a processing plugin ?

2020-02-20 Thread Etienne Trimaille
We are writing unit test for our processing algorithms. Jean-Charles, can you explain your questions? Is-it about how to initialize the Processing provider ? on travis, in unittest? I started a simple one last week on this plugin :

Re: [QGIS-Developer] How to notify an error from QgsProcessingAlgorithm.processAlgorithm ?

2020-02-04 Thread Etienne Trimaille
Le mar. 4 févr. 2020 à 16:04, Jean-Charles Quillet < jeancharles.quil...@gmail.com> a écrit : > I've tried to raise QgsProcessingException. But from the output window, > the exception does not seem to be well handled. > This is, I think, the way to go. What do you mean by not well handled? You

Re: [QGIS-Developer] WIP bot

2020-01-21 Thread Etienne Trimaille
No worries, just wondering ;-) Le mar. 21 janv. 2020 à 19:58, Matthias Kuhn a écrit : > - IIRC tests are not executed for draft PRs > Not anymore. Tests are running on a draft PR now. I think it was only at the beginning. - I think I cannot make a pull request a draft once its opened (and I >

Re: [QGIS-Developer] WIP bot

2020-01-21 Thread Etienne Trimaille
Just for curiosity, do you use draft PR? https://github.blog/2019-02-14-introducing-draft-pull-requests/ Le mar. 21 janv. 2020 à 15:39, Matthias Kuhn a écrit : > Hi > > Do you know the WIP bot? > > It blocks merging pull requests with WIP in the title. It's very helpful > to tag pull requests

Re: [QGIS-Developer] Improve build times with ccache

2019-12-18 Thread Etienne Trimaille
Thanks Matthias for these tips. Samweli, do you think you can add some notes in https://github.com/qgis/QGIS/blob/master/doc/linux.t2t (which will land in the INSTALL file) so we won't loose these notes in the mailing list? PS : Welcome in the Kartoza team ;-) Le lun. 16 déc. 2019 à 22:20, Tim

Re: [QGIS-Developer] How to retrieve enum-input value in processing

2019-12-13 Thread Etienne Trimaille
On which QGIS version are you? I made this ticket a few weeks ago. You will see that the enum will give its index and not the string as you can think. https://github.com/qgis/QGIS/issues/32452 Nyall did some PR in 3.11. You need to use a CASE WHEN in your expression. You can open Nyall's model

Re: [QGIS-Developer] delayed PR of 3.10.1

2019-11-29 Thread Etienne Trimaille
Do you mean the 3.10 branch? https://github.com/qgis/QGIS/tree/release-3_10 Le ven. 29 nov. 2019 à 09:49, a écrit : > Hello , > > to compile my plugin I waited for the PR of 3.10.1 but now I have red its > been delayed for a week :-) > > So I decided to compile it with last version for

Re: [QGIS-Developer] Detailed error information from processing.run

2019-10-18 Thread Etienne Trimaille
You need to create your own QgsProcessingFeedback object instead of using the default feedback. Check this answer: https://gis.stackexchange.com/a/310947/24505 Le ven. 18 oct. 2019 à 12:26, Tejas L a écrit : > Hello Devs, > > I would like to get a detailed error messages when processing.run

Re: [QGIS-Developer] 3.10.0 in hard freeze, should we branch master as unfreeze for 3.12?

2019-10-17 Thread Etienne Trimaille
René-Luc, the only exempt label for the bot is "Merge after thaw": https://github.com/qgis/QGIS/blob/master/.github/stale.yml#L7 It should be applied when a PR is approved and waiting for the branch to be unfrozen. Le lun. 14 oct. 2019 à 15:12, René-Luc Dhont a écrit : > Hi devs, > > I remove

Re: [QGIS-Developer] pyqgis - canUninstallPlugin

2019-10-14 Thread Etienne Trimaille
Hi, I'm adding back the QGIS dev mailing list. Le lun. 14 oct. 2019 à 08:29, VOLPES-EXT, Jacky < jacky.volpes-...@canal-de-provence.com> a écrit : > I didn’t share any code because I don’t know how to be more clear… :/ > You said your code is not working and/or not called. So without seing it,

Re: [QGIS-Developer] [FEATURE] Selective masking #30747

2019-10-10 Thread Etienne Trimaille
The PR can stay open with the label "Merge after thaw". Stalebot won't close these PR. Le mer. 9 oct. 2019 à 15:28, Hugo Mercier a écrit : > Hi Kaplan, > > Thanks for your feedback. > > This Pull Request has been frozen due to the dedicated current feature > freeze period. It will be merged

Re: [QGIS-Developer] New plugin: Review / Procedure

2019-10-07 Thread Etienne Trimaille
Hi, Le dim. 6 oct. 2019 à 03:43, Richard Marsden a écrit : > I was aware of QuickOSM. It didn't work for me when I tried a few > weeks ago. Please fill tickets in the GitHub repository, I will help you there. > From files, it has the same issues as > OSM Downloader / OGR2OGR. Same as

Re: [QGIS-Developer] Processing - Default Output raster extensions enumerator?

2019-09-20 Thread Etienne Trimaille
No, I think you can't. People are changing the extension by editing the source code: https://gis.stackexchange.com/a/317169/24505 Related ticket: https://github.com/qgis/QGIS/issues/28377 Alexandre, where did you find these options? I think they have been removed a few months ago now. Le ven.

Re: [QGIS-Developer] Upgrading to V3

2019-09-16 Thread Etienne Trimaille
Hi, I can't really answer your question but you should use https://qgis.org/api/classQgsMapLayerComboBox.html instead of creating your own combobox. (if possible). Etienne Le dim. 15 sept. 2019 à 10:11, Maaza Mekuria a écrit : > QGIS Layer List upgrade to V3 C++ plugin - Geographic

Re: [QGIS-Developer] PyQt and QGIS

2019-09-04 Thread Etienne Trimaille
Hi, You should try: from qgis.gui import QgsFileWidget It's in the GUI library: https://qgis.org/api/classQgsFileWidget.html For PyCharm on Ubuntu, I used the normal launcher. Then I have setup a venv called "QGIS3" that I can use in all my plugins and project related to QGIS. In the venv, I

Re: [QGIS-Developer] DBManager save querys only saves selected code - Bug or Feature?

2019-07-21 Thread Etienne Trimaille
There is already a ticket: https://github.com/qgis/QGIS/issues/30616 Le dim. 21 juil. 2019 à 11:11, Paolo Cavallini a écrit : > Hi all. > I agree, the default should be save all. Having the option of savings only > selected could be handy. > Cheers. > > On 21 July 2019 10:29:21 CEST, Matthias

Re: [QGIS-Developer] Share upload rights for plugin authors

2019-07-10 Thread Etienne Trimaille
You can add "owners" in your plugin webpage settings. Le mer. 10 juil. 2019 à 11:56, Henrik Spångmyr a écrit : > Hi. > We are currently two main authors for the Midvatten plugin. Currently only > one of us has the possibility to upload new versions. We would like me to > also be able to upload

Re: [QGIS-Developer] New version notifications

2019-06-03 Thread Etienne Trimaille
In QGIS Settings -> "General", you can disable "Check QGIS version". If you are deploying QGIS with an INI file, you can do it programmatically. You can hide this checkbox because QGIS version is managed by the system administrator.

Re: [QGIS-Developer] Embedded py libs in plugis

2019-04-30 Thread Etienne Trimaille
Nothing is written in the documentation about not embedding python libraries: https://plugins.qgis.org/publish/ Le mar. 30 avr. 2019 à 18:17, Matthias Kuhn a écrit : > Hi, > > I also was under the impression that this it's ok to ship dependencies > within plugins. > > One of the major blockers

Re: [QGIS-Developer] QGIS Server layer metadata

2019-04-11 Thread Etienne Trimaille
Le jeu. 11 avr. 2019 à 07:46, Alessandro Pasotti a écrit : > If I'm not wrong, in getcapabilities you will get metadata from OWS tab, > in expressions you get metadata from Metadata tab and there is no fallback. > Correct, but there is a fallback. The expression will use the QGIS Server

Re: [QGIS-Developer] QGIS Server layer metadata

2019-04-11 Thread Etienne Trimaille
Nyall has already made a PR for this: https://github.com/qgis/QGIS/pull/9197 To use layer metadata instead of QGIS Server metadata when using an expression. I think we can replace a few of them already. Le jeu. 11 avr. 2019 à 05:23, Alessandro Pasotti a écrit : > > On Thu, Apr 11, 2019 at

Re: [QGIS-Developer] 3.6 changelog

2019-02-26 Thread Etienne Trimaille
Le mar. 26 févr. 2019 à 14:52, Richard Duivenvoorde a écrit : > > It is a django app, if you create a login (and sent me your username), > we can give you enough rights to edit yourself: > Did the rule change recently? Before, anyone with a login could add an entry.

Re: [QGIS-Developer] [FEATURE EXCEPTION] Export SLD 1.0 for Rasters. Merge exception request for QGIS 3.6

2019-01-31 Thread Etienne Trimaille
Le jeu. 31 janv. 2019 à 12:56, Luigi Pirelli a écrit : > in the next 3.6 LTR. > 3.6 will not be LTR. It's 3.4 which was released October 2018. > > these are the technical reasons: > 1) do not affect any existing feature. The only critical point could be > the change of some SLD export method

Re: [QGIS-Developer] Advanced digitising coordinate entry for a single point

2019-01-16 Thread Etienne Trimaille
With the vertex tool enabled, right click on a vertex and then you can enter X and Y. Le mer. 16 janv. 2019 à 14:25, Tim Sutton a écrit : > Hi > > In QGIS 3.x we have the nice integration with the advanced digitising > panel for lines and polygons. Do we have any capability to capture a point

Re: [QGIS-Developer] Plugin [1546] imajnet-qgis-plugin approval notification.

2018-10-11 Thread Etienne Trimaille
Hi, Both the code repository link and the bug tracker link are good. They redirect to the main compagny website. Is the code available somewhere? Where is the bug tracker? Le mer. 10 oct. 2018 à 04:13, a écrit : > > Plugin imajnet-qgis-plugin approval by pcav. > The plugin version "[1546]

Re: [QGIS-Developer] Travis for plugin: "Processing(2): Error: Algorithm gdal:warpreproject not found"

2018-09-19 Thread Etienne Trimaille
I can't help you too much. But maybe have a look to what has been done by Nyall in InaSAFE: https://github.com/inasafe/inasafe/blob/develop/safe/gis/processing_tools.py#L21 There is one GDAL algorithm, running on travis. Le mer. 19 sept. 2018 à 10:06, Tom Chadwin a écrit : > Hello all > > I've

Re: [QGIS-Developer] Can't install QGIS after compile because of contributors.json

2018-08-27 Thread Etienne Trimaille
There is a PR to fix it from Mathieu: https://github.com/qgis/QGIS/pull/7722 Le lun. 27 août 2018 à 13:05, Andreas Neumann a écrit : > Hi, > > After compiling QGIS I can't install QGIS. When i run "ninja install" I > get the following error message: > > --- > > CMake Error at

Re: [QGIS-Developer] QGIS3: Can two different plugins have a common processing provider?

2018-08-09 Thread Etienne Trimaille
I would say: At plugin load time, check if your other plugins are already loaded. If yes, don't load the processing provider, it's already loaded by the first loaded plugin. You need to use the same provider name (id). So your models won't be broken. Don't forget to update each processing

Re: [QGIS-Developer] Reading OSM data from .osm file

2018-07-24 Thread Etienne Trimaille
I could replicate your issue too on QGIS 3.2 Matteo. Not always, maybe depending on the geometry or how many layer you load at the same time: Maybe linked to https://issues.qgis.org/issues/19477 (I got some different behaviors according to the number of layer loaded) and

Re: [QGIS-Developer] Reading OSM data from .osm file

2018-07-24 Thread Etienne Trimaille
For me, I have it in /usr/share/gdal/2.2/osmconf.ini It's by default with gdal. Only a few columns should be created by default: https://github.com/OSGeo/gdal/blob/master/gdal/data/osmconf.ini http://www.gdal.org/drv_osm.html

Re: [QGIS-Developer] Reading OSM data from .osm file

2018-07-24 Thread Etienne Trimaille
When you have your .osm file on your computer (eg downloaded from outside QGIS), you can open it with: * QuickOSM with the default parser, each keys will have their own fields. * QuickOSM with your custom osmconf.ini file. The attribute table is defined according to your osmconf file. * OSM core

Re: [QGIS-Developer] Reading OSM data from .osm file

2018-07-24 Thread Etienne Trimaille
It's the purpose of the QuickOSM default parser. It will not lose any key/value, so you will have one column for each keys. But if you load your file without plugins and not with the OSM core provider in QGIS 2, I'm surprise that you got the "highway" key on the "other_tags" field. I suspect you

Re: [QGIS-Developer] The future of the F5 shortcut...

2018-07-13 Thread Etienne Trimaille
It has been fixed in 3.0 if I'm correct Michaël Le jeu. 12 juil. 2018 à 22:05, kimaidou a écrit : > There is another issue relative to F5 button. In database manager, it is > supposed to run the Query, but I have never seen it work, neither on Ubuntu > or Windows. Has anyone been confonted to

Re: [QGIS-Developer] Changelog for 3.2 now active

2018-06-04 Thread Etienne Trimaille
These commits are added to the QGIS-Documentation issue tracker, but not in the QGIS changelog. Developers should do it themselves with the form. We don't create always one changelog entry per feature, for instance with new expressions, we create only one entry in the changelog referencing all new

Re: [QGIS-Developer] Adding help text for processing plugin

2018-05-08 Thread Etienne Trimaille
You can check this example: https://github.com/qgis/QGIS/blob/master/python/plugins/processing/script/ScriptTemplate.py#L77 2018-05-08 17:12 GMT-04:00 Nyall Dawson : > On 9 May 2018 at 06:52, Phil Ribbens wrote: > > Hi, > > > > I’m wondering if

Re: [QGIS-Developer] Compiling QGIS3 on Ubuntu problems

2018-05-04 Thread Etienne Trimaille
Have a look on https://github.com/qgis/QGIS/blob/master/INSTALL and search "error while loading shared libraries". Does it help? 2018-05-04 15:11 GMT-04:00 Paulo van Breugel : > > Dear devs, > > > I am trying to compile QGIS3 (release_3-0) on a freshly install Ubuntu >

Re: [QGIS-Developer] pyqgis - layer.saveDefaultStyle() for PostGIS layers

2018-05-04 Thread Etienne Trimaille
For your information, with the big hint from Matthias in the last email, it's now fixed in 2.18.20. I checked in QGIS 3, it was working fine already. 2017-09-26 9:07 GMT-04:00 Matthias Kuhn : > For 2.18 it should be ok to make it /InOut/ (there was no return value > before,

Re: [QGIS-Developer] Sentry support for QGIS crashes / minidumps

2018-05-03 Thread Etienne Trimaille
Having Sentry on a few Python projects, I agree it's a very nice tool to have for debugging. It shows you new bug, bugs which should be fixed but occurs again, etc. It would be nice to have it in QGIS I think. 2018-05-03 7:31 GMT-04:00 Patrick Valsecchi < patrick.valsec...@camptocamp.com>: > Hi,

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-04-03 Thread Etienne Trimaille
Hi Matteo, I'm finally trying to use custom widgets from QT Creator instead of using promoted widgets. I'm facing the same issue with the generated path. It's not using "qgis.gui" so it's failing during the import in QGIS. Did you fix this issue? I can manually fix these imports, but I'm asking

Re: [QGIS-Developer] Custom widgets and Qt Designer 4 and 5

2018-03-20 Thread Etienne Trimaille
I can't answer your problem, but I'm using QGIS custom widgets by using the "promoted widget" feature in QtDesigner. Less convenient I agree. I never saw these widgets too and I think I'm lazy to check why because it works with these promoted widgets. My 2 cents ;-) 2018-03-20 8:59 GMT+01:00

Re: [QGIS-Developer] Visual Changelog: ready? Move to Website? Or Not?

2018-03-16 Thread Etienne Trimaille
2018-03-16 13:39 GMT+01:00 Régis Haubourg : > I would suggest that the validation workflow submits the new version to > moderators, and that a copy of the old version stays published. A message > to inform the author he needs some validation would be necessary too. >

Re: [QGIS-Developer] Future of OSM integration

2018-03-16 Thread Etienne Trimaille
2018-03-16 12:21 GMT+01:00 Alexander Bruy : > I think it should be QuickOSM plugin. > I got a few requests this week when the port to QGIS 3 will be done about QuickOSM. I'm planning to do that next week. > 2018-03-16 11:36 GMT+02:00 DelazJ : > >

  1   2   >