Re: [Qgis-developer] Spatialite in QGIS master

2017-01-30 Thread David Marteau
PySpatialite is a totally obsoleted python package: you must explicitely load the mod_spatialite extension using the spatialite load_extension(..). Qgis use its own version of pyspatialite, but you must enable it in the build configuration as stated by Matthias. > Le 30 janv. 2017 à 13:10,

[Qgis-developer] Replacing Q_FOREACH in Qgis code

2017-01-19 Thread David Marteau
Hi, I would like to know if there is plans for replacing Q_FOREACH (use discouraged from QT 5.7) with C++11 range based loop in QGIS code and if it is appropriate to start the move in new PR ? Some références: http://doc.qt.io/qt-5/qtglobal.html#Q_FOREACH

Re: [Qgis-developer] QGIS Server in Python?

2017-01-19 Thread David Marteau
Hi, The server is actually under heavy refactoring: the new version - planned with Qgis 3 - enables you to embed the server in any framework (python or C++) by using abstract request/response objects that links all I/O between server and your embedding frameworks. Examples will follow soon.

Re: [Qgis-developer] [QGIS Server] Maintain it and create a team

2016-09-26 Thread David Marteau
Hi Are you telling that the server codebase could rely on these features (multiproject management and layer cache) with the actual refactoring ? This would be really a good thing - (and also a better handling of the layer registry that introduces weird things with the ownership of layers).

[Qgis-developer] Test crashes on if providers not found.

2016-09-27 Thread David Marteau
Hi, I'm trying to run tests on OSX 10.9.5 (Maverick), by running the following > sudo make install > make test I have the following warning "!!! prefix path was requested, but it is not valid - we do not run from installed path !!!" then all tests involving loading a provider are crashing. I

Re: [Qgis-developer] Tests: QGIS loadPythonSupport: cannot import future

2016-09-27 Thread David Marteau
Thx, I have missed that doc David > Le 27 sept. 2016 à 17:29, Matthias Kuhn <matth...@opengis.ch> a écrit : > > Hi, > > use pip to install it: > > https://github.com/qgis/QGIS/blob/master/ci/travis/osx/before_install.sh#L41 > > Best > Matthias >

Re: [Qgis-developer] WIP: QGIS Server refactoring

2016-10-21 Thread David Marteau
> start the QGIS server refactoring. However, it would be good to collaborate > with Martin to make sure his refactoring is useful for the QGIS server > refactoring. > > Greetings, > > Andreas > > On 2016-10-21 17:40, René-Luc Dhont wrote: > >>

Re: [Qgis-developer] WIP: QGIS Server refactoring

2016-10-21 Thread David Marteau
The idea is to have an 'aviary' branch that can mess with the server while keeping it in sync with the master, then at some point that branch can 'land' to the master. > Le 21 oct. 2016 à 18:14, Paolo Cavallini <cavall...@faunalia.it> a écrit : > > Il 21/10/2016 18:10, D

Re: [Qgis-developer] QGIS setup with Qt 5 on mac

2016-10-31 Thread David Marteau
Hi I will speak with my own experience using and compiling Qgis on Mac (El capitan and Maverick): First I use Macport: MacPort use clang/libc++ by default (at least with XCode 5.3 on Maverick, 7.3 on El capitan) so this should solve one of your problems. I have installed qt5 from MacPort

Re: [Qgis-developer] QGIS server improvements

2016-10-12 Thread David Marteau
Naturally, I volonteer for help. > Le 12 oct. 2016 à 10:07, Paolo Cavallini <cavall...@faunalia.it> a écrit : > > Il 12/10/2016 09:56, David Marteau ha scritto: >> Hi, >> >> There a QEP about the refactoring of the server that already addresses some >&g

Re: [Qgis-developer] QGIS server improvements

2016-10-12 Thread David Marteau
Hi, There a QEP about the refactoring of the server that already addresses some issues: https://github.com/qgis/QGIS-Enhancement-Proposals/issues/74, could it fit as a starting point ? > Le 12 oct. 2016 à 09:42, Paolo Cavallini a écrit : > > Il 12/10/2016 09:26,

Re: [Qgis-developer] QGIS server improvements

2016-10-12 Thread David Marteau
or QGIS 3.0" - or something similar. And the original proposal about the > "Server Services as plugins" could be included? > > Thanks and greetings, > Andreas > > On 2016-10-12 09:56, David Marteau wrote: > >> Hi, >> >> There a QEP about the refac

[Qgis-developer] Spatialite KyngChaos packaging on OSX not loading spatialite extension

2017-04-03 Thread David Marteau
Hi, For some times some people are reporting that plugins using pyspatialite are not working anymore with the KyngChaos packaging for OSX (2.14 or 2.18) The error is usually: OperationalError('no such module: VirtualSpatialIndex',) when trying to référence SpatialIndex in spatial requests.

[QGIS-Developer] Cannot build qgis with sip 2.19

2017-05-29 Thread David Marteau
Hi all, There is no way to build qgis 2.18 (latest on branch) on osx with qt4 and sip 2.19: Traceback (most recent call last): File "../../../../../scripts/pyuic-wrapper.py", line 26, in import qgis.PyQt.uic.pyuic File

[QGIS-Developer] Fwd: Cannot build qgis with sip 4.19

2017-05-29 Thread David Marteau
Please read sip 4.19 > Début du message réexpédié : > > De: David Marteau <dmart...@3liz.com> > Objet: Cannot build qgis with sip 2.19 > Date: 29 mai 2017 17:17:13 UTC+2 > À: qgis-developer <qgis-developer@lists.osgeo.org> > > Hi all, > > There is n

Re: [QGIS-Developer] Building QGIS 2.18 on OSX

2017-06-01 Thread David Marteau
Hi, You will find some information for building QGIS 2.18 and QGIS master on OSX here: https://www.3liz.com/blog/rldhont/index.php?post/2017/06/01/How-to-build-qgis-on-OSX-with-MacPort > Le 31 mai 2017 à 16:49, William Kyngesburye a écrit : > > Well, I build the OS X

Re: [QGIS-Developer] FeatureIterator Python question

2017-09-15 Thread David Marteau
Sorry, it has already been aswered, did not see the threads. > Le 15 sept. 2017 à 16:46, David Marteau <dmart...@3liz.com> a écrit : > > Hi > > If FeatureIterator is a true iterator then use: > > feature = next(FeatureIterator) > > >> Le 15 sept

Re: [QGIS-Developer] FeatureIterator Python question

2017-09-15 Thread David Marteau
Hi If FeatureIterator is a true iterator then use: feature = next(FeatureIterator) > Le 15 sept. 2017 à 14:43, Andreas Neumann a écrit : > > Hi, > > While porting a project from QGIS 2x to 3x I came across a Python issue: > > In QGIS 2.x I had a code like below

Re: [QGIS-Developer] QGIS Server 3 status

2017-10-05 Thread David Marteau
Hi, Thanks for the overview. We need more examples of embedding the server in python and I plan to publish some concrete examples from our use cases asap. David M. > Le 5 oct. 2017 à 09:34, Alessandro Pasotti a écrit : > > Hi Règis, > > thanks for the nice summary! >

Re: [QGIS-Developer] QGIS Server 3 status

2017-10-04 Thread David Marteau
Hi, Do we have metrics on this ? Does it mean that QGIS_SERVER_PARALLEL_RENDERING=False is also slower than previous version ? David M. > Le 4 oct. 2017 à 14:15, Matthias Kuhn a écrit : > > Hi, > > I had some questions from people interested in performance. > > I

Re: [QGIS-Developer] QGIS master branch fails make install on macOS 10.12.6

2017-10-06 Thread David Marteau
Hi Try to define the environment variable QT_QPA_PLATFORM_PLUGIN_PATH=/opt/local/libexec/qt5/plugins/platforms (it may depends on how is your qt5 installation - this path is ok for Macport installation) According to my experience (see

Re: [QGIS-Developer] QGIS master branch fails make install on macOS 10.12.6

2017-10-09 Thread David Marteau
create a standalone binary? I'm trying to make some changes and > distribute to a few others for them to try. > > Thanks again for the QT_QPA_PLATFORM_PLUGIN_PATH tip. > > Regards, > > -- > Joel Buckley > > On Fri, Oct 06, 2017 at 01:59:30PM +0200, Dav

Re: [QGIS-Developer] QGIS Server 3 status

2017-10-09 Thread David Marteau
Hi According to the source https://github.com/qgis/QGIS/blob/master/src/server/qgsserversettings.cpp#L47: setting QGIS_SERVER_PARALLEL_RENDERING to False or not setting QGIS_SERVER_PARALLEL_RENDERING is the same thing as the default value is 'false'. Using the appropriate log level you can

Re: [QGIS-Developer] QGIS Server plugins and thread safety

2017-11-19 Thread David Marteau
Hi, IMHO, The multi process approach has to be preferred over multi-threading Some thought about it: Forking sever instance for each request is imho a bad idea as it is not scalable and defeat resource control. I think that it is not a problem by itself to consider the server engine as

Re: [QGIS-Developer] Web based admin interface for processing models

2018-05-31 Thread David Marteau
Hi, The project is actually on github: https://github.com/3liz/py-qgis-wps It is fully functional (while still in beta) and we use it actually in our infrastructure. The project has been presented at the Foss4G.fr and we expect to talk about it at Foss4G is Dar es Salaam. > Le 31 mai 2018

Re: [QGIS-Developer] Adding Map layer to current project destroy custom layer variables in Qgis3

2018-06-20 Thread David Marteau
in the python console: >>> QgsExpressionContextUtils.setLayerVariable(layer,'FOO','BAR') >>> layer.customProperty('variableNames') ['FOO'] >>> layer.loadNamedStyle('mystyle.qml') ('', True) >>> layer.customProperty('variableNames') [] > Le 20 juin 2018 à

[QGIS-Developer] Adding Map layer to current project destroy custom layer variables in Qgis3

2018-06-20 Thread David Marteau
Hi I'm trying to set custom layers variables from processing using QgsExpressionContextUtils.setLayerVariables to destination layers , I have found that those variables does not appear in Qgis. I have found that when the layer is inserted in the current project

Re: [QGIS-Developer] Cannot load WMS capabilities from WMS provider in QGIS3 from python

2018-01-15 Thread David Marteau
ning status, but the request is not processed at the first invocation. David > Le 15 janv. 2018 à 15:05, David Marteau <dmart...@3liz.com> a écrit : > >> >> >> >> Hi David, >> >> You need an event loop to use a Q(qg)NetworkAcc

Re: [QGIS-Developer] Cannot load WMS capabilities from WMS provider in QGIS3 from python

2018-01-16 Thread David Marteau
Hi Alessandro This is a weird bug, I have also found that once the first request failed, others requests succeed wathever the url or the provider is (tried with wcs and wms). When failing, looking on what append wms server side when we found that no request is sent. I fill a ticket on this.

Re: [QGIS-Developer] Cannot load WMS capabilities from WMS provider in QGIS3 from python

2018-01-16 Thread David Marteau
Ticket filled https://issues.qgis.org/issues/17866 > Le 16 janv. 2018 à 09:18, David Marteau <dmart...@3liz.com> a écrit : > > Hi Alessandro > > This is a weird bug, I have also found that once the first request failed, > others requests succeed wathever the url o

Re: [QGIS-Developer] Cannot load WMS capabilities from WMS provider in QGIS3 from python

2018-01-15 Thread David Marteau
> > > > Hi David, > > You need an event loop to use a Q(qg)NetworkAccessManager, it's asynchronous. > Hi Alessandro, Yes, we know that (see the second code in previous mail ): the QgsNetworkAccessManager works perfeclty in python, this is not the point. The point is: trying to

[QGIS-Developer] Cannot load WMS capabilities from WMS provider in QGIS3 from python

2018-01-15 Thread David Marteau
Hi, We hit a very nasty problem when trying to load projects with wms layer defined from python: loading capabilities fail with timeout error, thus preventing creating any project or layer from python. The problem has been verified in Debian, Ubuntu and fresh OSX build from master branch. We

Re: [QGIS-Developer] qgis server time support

2018-02-02 Thread David Marteau
Hi, For implementing this feature, one assume that such a time information is available from the target layer ? Is that the case ? It is done in a normalized way ? David > Le 2 févr. 2018 à 11:57, Martin Landa a écrit : > > Hi all, > > to my knowledge there is no

[QGIS-Developer] Native algorithms not loaded in qgis 2.99

2018-02-05 Thread David Marteau
Hi All Using processing from python using latest master branch (from commit 325af48680) have noticed that native (C++) algorithms are not loaded anymore ! The native provider does not appears in the list of provider Native algorithms are not usable anymore (ex 'qgis:joinattributestable')

Re: [QGIS-Developer] QGIS's python as a virtualenv

2017-12-22 Thread David Marteau
An easy way to do so is to add the path to the QGIS python packages in a PYTHONPATH env variable and the packages will be reachable from your virtual env. Another (better) to do so would be having QGIS package packaged as pip/setuptools package so that they can be installed in any virtualenv -

Re: [QGIS-Developer] Adding Map layer to current project destroy custom layer variables in Qgis3

2018-06-21 Thread David Marteau
Would be great if you could add a comment to the QEP. > > Thanks > Matthias > > On 06/20/2018 10:06 PM, David Marteau wrote: >> >> Just found out that this is not addMapLayer that remove the variables >> but 'layer.loadNamedStyle' >> >> Print l

Re: [QGIS-Developer] MAC QGIS 3.x build

2018-09-04 Thread David Marteau
> Le 4 sept. 2018 à 15:12, William Kyngesburye a écrit : > > >> On Sep 4, 2018, at 4:24 AM, Nyall Dawson > <mailto:nyall.daw...@gmail.com>> wrote: >> >> On Tue, 4 Sep 2018 at 19:19, David Marteau > <mailto:dmart...@3liz.com>> wrote: &g

Re: [QGIS-Developer] Struggling with QGIS Server 3 on a Ubuntu machine, installed from repositories

2018-04-20 Thread David Marteau
Hi, Try to activate log at info level. When the server start, you should have the following lines: Checking /usr/lib/qgis/server for native services modules" "Loading native module /usr/lib/qgis/server/libdummy.so" Adding service SampleService 1.0 "Loading native module

Re: [QGIS-Developer] Web based admin interface for processing models

2018-03-20 Thread David Marteau
Hi Allessandro, I have made a submission to talk about this at the FOSS4G-FR and FOSS4G in Dar-Es-Salam This is a work based on a fork of PyWPS 4 - many thanks to them - (with a lot of changes and many additions!) and act as a standalone server - nothing to do with

[QGIS-Developer] Qgis3: installing new processing provider via plugins

2018-03-04 Thread David Marteau
Hi I can't figure where the the "enable additional providers" option is located in Qgis 3 ? Or there is another way to enable providers from plugins ? Thx, David ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

Re: [QGIS-Developer] Qgis 3.0 plugin dependencies status

2018-03-02 Thread David Marteau
+1 for a QEP on this matter > Le 2 mars 2018 à 13:28, Richard Duivenvoorde <rdmaili...@duif.net> a écrit : > > On 02-03-18 13:08, David Marteau wrote: >> Hi >> >> I stumbled on this post: >> http://osgeo-org.1560.x6.nabble.com/A-pipinstall-plugin-

[QGIS-Developer] Qgis 3.0 plugin dependencies status

2018-03-02 Thread David Marteau
Hi I stumbled on this post: http://osgeo-org.1560.x6.nabble.com/A-pipinstall-plugin-is-possible-First-What-s-the-difference-between-the-Osgeo4w-Shell-td5107633.html What it the status of the problem of plugin dependency for Qgis3 ? Is there anything done so far ? Thx David

Re: [QGIS-Developer] QGIS Server WFS 2.18 unreliable?

2018-11-13 Thread David Marteau
Hi, Looking at the response, I would say that the response output is streamed and there is an exception raised during the streaming of the response. What the logs says ? > Le 13 nov. 2018 à 14:32, Andreas Neumann a écrit : > > Hi, > > I am trying to publish a WFS Service through QGIS

Re: [QGIS-Developer] MAC QGIS 3.x build

2018-09-04 Thread David Marteau
Hi Peter, Warning, if you are using macport: qt5.11 is installed by default and you may (or may not) experience some display problems, instead you may choose to stick to qt5.9 by installing the 'qt59' port David > Le 4 sept. 2018 à 11:14, Denis Rouzaud a écrit : > > Hi Peter, > > You can

Re: [QGIS-Developer] Use QGIS API in Qt5

2018-09-14 Thread David Marteau
Hi, Qgis 3 use Qt5 and Python 3.5+ , if you use Qgis 2 api then you have to use Qt4. You have the Qgis API documentation here: https://qgis.org/api/ How do you install qgis ? homebrew, macport, custom build or from https://www.qgis.org/fr/site/forusers/download.html ? the exact version of

Re: [QGIS-Developer] Can I automatically style a layer generated with a Processing Sink?

2018-09-11 Thread David Marteau
Hi, In python you may check the `processing.core.Processing.RenderingStyles` that enable you to associate a style (as a qml file) to a pair (alg, output). It is also possible to do that from the Qgis GUI ( but I do not remember the details ). > Le 11 sept. 2018 à 20:00, C Hamilton a écrit

Re: [QGIS-Developer] Qgis 3.6.0 fail to read shapefile with python on buster

2019-03-26 Thread David Marteau
that something has been broken on the buster distro. Note that I'm able to load shapefile in python with ogr (gdal-python). > Le 26 mars 2019 à 17:47, Alessandro Pasotti a écrit : > > > On Tue, Mar 26, 2019 at 5:45 PM David Marteau <mailto:dmart...@3liz.com>> wrote: >

[QGIS-Developer] Qgis 3.6.0 fail to read shapefile with python on buster

2019-03-26 Thread David Marteau
Hi devs, We use to build docker images of the latest qgis releases and we have a regression affecting version 3.6.0 official release on buster Qgis: 3.6.0 on Debian If we read a layer with python: > layer = QgsVectorLayer('./mydata.shp') Then the layer is invalid (no warning, no errors)

Re: [QGIS-Developer] Qgis 3.6.0 fail to read shapefile with python on buster

2019-03-26 Thread David Marteau
The situation seems to be worst: it seems that no layers can be read from python whatever the format. > Le 26 mars 2019 à 17:38, David Marteau a écrit : > > Hi devs, > > We use to build docker images of the latest qgis releases and we have a > regression affecting vers

Re: [QGIS-Developer] Qgis 3.6.0 fail to read shapefile with python on buster

2019-03-28 Thread David Marteau
I Forgot to mention that they are the packages from the https://qgis.org/debian/ <https://qgis.org/debian/> repository and not the the packages from the debian distro. > Le 28 mars 2019 à 19:25, David Marteau a écrit : > > Hi Alessandro > > I have found the problem, qgi

Re: [QGIS-Developer] Qgis 3.6.0 fail to read shapefile with python on buster

2019-03-28 Thread David Marteau
! This lead to very unpredictible behavior when using qgis in python (simply not working or crashing randomly) David, > Le 26 mars 2019 à 18:38, David Marteau a écrit : > > > Hi Alessandro > > No there is nothing at all in the logs. > > I have used the same reduced sn

Re: [QGIS-Developer] Qgis 3.6.0 fail to read shapefile with python on buster

2019-03-29 Thread David Marteau
) Is that a transitional scheme ? Thanks, > Le 29 mars 2019 à 09:13, David Marteau a écrit : > > Hi Jürgen, > > Thanks. Installing only python3-qgis leads to a better situation: > > ii libqgis-3d3.6.1 1:3.6.1+15busteramd64 >QGIS

Re: [QGIS-Developer] Qgis 3.6.0 fail to read shapefile with python on buster

2019-03-29 Thread David Marteau
On Thu, 28. Mar 2019 at 19:25:15 +0100, David Marteau wrote: >> I have found the problem, qgis packaging on buster is totally broken: it >> mixes 3.6.0 and 3.6.1 dependencies > >> If you try to install python-qgis you get the following packages installed: > > You s

Re: [QGIS-Developer] QEP 140: QGIS Processing standalone executable

2019-02-27 Thread David Marteau
Hi Nyall You may be interested in some work already done for running qgis processing algorithms at server side with no gui and direct calls to "createAlgorithms": https://github.com/3liz/py-qgis-wps Development of embedding the processing machinery has

[QGIS-Developer] Question about debian packages version policy on https://qgis.org/

2019-03-01 Thread David Marteau
Hi all, On https://www.qgis.org it is said that the version available on https://qgis.org/debian is the 3.6.x but actually only the 3.4.4 is the latest available on debian stretch. The 3.6.x is available only on 'buster' which is the next

Re: [QGIS-Developer] Inconsistency in QgsServerRequest parameter handling ?

2019-04-10 Thread David Marteau
ware only of the base QgsServerParameters owned by the QgsServerRequest instance, so they should be able to set/get parameters in a transparent way. Regards David. > Regards, > > Paul > > > On 4/10/19 10:37 PM, David Marteau wrote: >> To add some precision: >> >>

Re: [QGIS-Developer] FOSS4G CFP proposals around QGIS

2019-04-15 Thread David Marteau
Hi Andreas, We have submitted (at least) 2 Talks: - WPS with Qgis Processing - From desktop to server. - QGIS: No more plugins only processings. David > Le 15 avr. 2019 à 12:17, Andreas Neumann a écrit : > > Hi, > > Today is the last day submitting workshop and presentation proposals. > >

Re: [QGIS-Developer] Globally setting FI_POINT_TOLERANCE on QGIS server

2019-04-16 Thread David Marteau
Updated for qgis3: https://github.com/3liz/qgis-wmsGetFeatureInfoPrecision/blob/master/wmsGetFeatureInfoPrecision.py Warning, because of https://github.com/qgis/QGIS/pull/9773 configuration located at the project path is not fully supported yet. David

Re: [QGIS-Developer] Which Docker do you use?

2019-04-18 Thread David Marteau
Hi, We (at 3liz) publish a qgis docker platform to be used as base image for running qgis server or other qgis based application: The docker file is on github: https://github.com/3liz/docker-qgis-platform and you can pull images from dockerhub:

[QGIS-Developer] Bug in QgsPathResolver ?

2019-04-19 Thread David Marteau
Hi devs, I have a strange behavior with QgsPathResolver that prevent layer to be loaded if a QgsProject read config file from relative path: The problem has been reduced to the following behavior (pyQgis): ``` # Init a QgsPathResolver as with a relative path pr =

[QGIS-Developer] Inconsistency in QgsServerRequest parameter handling ?

2019-04-10 Thread David Marteau
Hi devs, I found a strange and seemingly inconsistent behavior when accessing QgsServerRequest parameters: If you try: request.setParameter('FOOBAR','foobar') then request.parameter('FOOBAR') then you get an empty string, If you call request.parameters() Then your get a dictionary with

Re: [QGIS-Developer] Inconsistency in QgsServerRequest parameter handling ?

2019-04-10 Thread David Marteau
To add some precision: Even if I add an 'allowed' parameter by hand: > request.setParameter('FI_POINT_TOLERANCE','25') then > request.parameter('FI_POINT_TOLERANCE') return an empty string > Le 10 avr. 2019 à 19:46, David Marteau a écrit : > > > Hi devs, >

Re: [QGIS-Developer] Bug in QgsPathResolver ?

2019-04-23 Thread David Marteau
> Le 23 avr. 2019 à 23:35, Nyall Dawson a écrit : > > On Fri, 19 Apr 2019 at 23:24, David Marteau <mailto:dmart...@3liz.com>> wrote: >> >> Hi devs, >> >> I have a strange behavior with QgsPathResolver that prevent layer to be >> loaded if

[QGIS-Developer] nightly-release not available

2019-08-01 Thread David Marteau
Hi, It seems that nightly-release is broken for Debian buster: packages files https://qgis.org/debian-nightly-release/dists/buster/main/binary-i386/Packages is empty and installation from this repo gives 'E:

Re: [QGIS-Developer] QGIS Server and native Processing algorithms

2019-07-10 Thread David Marteau
> Le 10 juil. 2019 à 08:44, Alessandro Pasotti a écrit : > > > did you call > QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms()) ? You may need to call the above, before calling 'Processing.initialize()' > > On Wed, Jul 10, 2019 at 8:42 AM Alexander Bruy

Re: [QGIS-Developer] QGIS Server Dev on osgeo4w

2019-12-12 Thread David Marteau
Hi Matthias, Is this only Windows related or do you have the same issue on Linux ? -- David Marteau Responsable Infrastructure www.3liz.com <http://www.3liz.com/> Tel. 06 63 02 89 83 Bureau 31, rue de l'Argenterie 34000 Montpellier Siège social 73, allée Kleber Boulevard de Stra

Re: [QGIS-Developer] QgsLogger in standalone app

2019-10-16 Thread David Marteau
Yes, you have to connect a hook to the messageReceived slot: see https://github.com/3liz/py-qgis-server/blob/master/pyqgisserver/utils/qgis.py#L106 for an example. > Le 16 oct. 2019 à 09:38, VOLPES-EXT,

[QGIS-Developer] Why packaging python-gdal with Qgis3 ?

2019-11-18 Thread David Marteau
Hi, Just a question: why python-gdal is still required for installing Qgis3 debian packages ? It adds a lot of unnecessary packages. From 'apt show python3-qgis-common': === Package: python3-qgis-common Version: 1:3.4.13+14stretch Priority: optional Section: python Source: qgis Maintainer: QGIS

Re: [QGIS-Developer] Reporting security related issues ?

2020-02-12 Thread David Marteau
/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer -- David Marteau Responsable Infrastructure www.3liz.com <http://www.3liz.com> *Tel*. 06 63 02 89 83 *Bureau* 31, rue de l'Argenterie 34000 Montpellier *Siège social* 73, allée Kleber Boulev

Re: [QGIS-Developer] QGIS Server: warnings vs info

2020-02-04 Thread David Marteau
. (services/wms/qgswmsserviceexception.h) Am I missing something? Thank you -- David Marteau Responsable Infrastructure www.3liz.com <http://www.3liz.com> *Tel*. 06 63 02 89 83 *Bureau* 31, rue de l'Argenterie 34000 Montpellier *Siège social* 73, allée Kleber Boulevard de Stra

Re: [QGIS-Developer] Server manual

2020-04-17 Thread David Marteau
. Is there an agreement on that? Anyone interested in cooperating? Thanks in advance. All the best. -- David Marteau Responsable Infrastructure www.3liz.com <http://www.3liz.com> *Tel*. 06 63 02 89 83 *Bureau* 31, rue de l'Argenterie 34000 Montpellier *Siège social* 73, allée Kleber Boulevard de Stra

Re: [QGIS-Developer] Server manual

2020-04-17 Thread David Marteau
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 écrit : Hi

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

2020-04-23 Thread David Marteau
in a dedicated server. Le 23/04/2020 à 14:02, Jorge Gustavo Rocha a écrit : Hi Patrick, David Marteau did a presentation in FOSS4G related with QGIS Server and server side processing. Please check https://www.youtube.com/watch?v=YL1tdcJwimA Regards, Jorge Gustavo On 23/04/20 06:26, PALMIER

Re: [QGIS-Developer] QGIS Server now install a full DE?

2020-05-20 Thread David Marteau
___ 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 -- David Marteau Responsable Infrastructure www.3liz.com <http://www.3liz.com> *Tel*. 06 63 02 8

[QGIS-Developer] Latest qgis release version not available on Debian

2021-06-01 Thread David Marteau
Hi, It seems that debian packages   for the latest release Qgis version (3.18.3 atm) are stucks to 3.18.1: Result of `apt-cache policy qgis-server-common` On Debian buster from from 'https://qgis.org/debian' ``` qgis-server-common:   Installed: 1:3.18.1+15buster   Candidate:

Re: [QGIS-Developer] REST API for QGIS processing tool

2021-03-23 Thread David Marteau
r: not found* * * Please suggest. Thanks. -Prem On Mon, Mar 22, 2021 at 11:19 PM David Marteau <mailto:dmart...@3liz.com>> wrote: Le 22/03/2021 à 18:26, Prem Kumar a écrit : Hi Team, Im afraid to make a comment but the installation instructions in the github are n

Re: [QGIS-Developer] asyncio in plugins?

2021-03-23 Thread David Marteau
-eventloop.html#executing-code-in-thread-or-process-pools Am 23.03.21 um 20:47 schrieb David Marteau: Hi, Asynchronous python code with asyncio assume that you have an ioloop running in a blocking way in your python code: that means that no other code (in the same thread) cannot run concurrently

Re: [QGIS-Developer] asyncio in plugins?

2021-03-23 Thread David Marteau
Hi, Asynchronous python code with asyncio assume that you have an ioloop running in a blocking way in your python code: that means that no other code (in the same thread) cannot run concurrently with your async tasks while your loop is running. David Le 23/03/2021 à 20:28, Sebastian M.

Re: [QGIS-Developer] Multiprocessing QGIS

2021-03-26 Thread David Marteau
I am not entirely sure what QGIS' (intended) behavior is in a case like this. From the top of my head, having read the relevant portion of its source code, I'd expect at least a second application window likely followed by non-deterministic behavior (again, depending on the use-case, likely

Re: [QGIS-Developer] REST API for QGIS processing tool

2021-03-22 Thread David Marteau
Le 22/03/2021 à 18:26, Prem Kumar a écrit : Hi Team, Im afraid to make a comment but the installation instructions in the github are not specifically referring the integration of service and the qgis installation and its modules. I have tried installing py-qgs-wps on linux machine using

Re: [QGIS-Developer] Minimal docker image for qgis_process/processing

2021-11-24 Thread David Marteau
Hi Nyall I don't know if this is what you are seeking for but you will find at https://hub.docker.com/r/3liz/qgis-platform a simple image that embed the official version (release/ltr) of Qgis library (no desktop support). That image do nothing except having a Qgis install. We use it as a

Re: [QGIS-Developer] Minimal docker image for qgis_process/processing

2021-11-24 Thread David Marteau
, it appears that qgis_process is only available under the qgis package. It would make sense to make it available under it own package, no? Le mer. 24 nov. 2021 à 09:58, David Marteau a écrit : Hi Nyall I don't know if this is what you are seeking for but you will find at https

Re: [QGIS-Developer] Qgis server: terrible performance with Qgis 3.26

2022-06-28 Thread David Marteau via QGIS-Developer
Hi, From bisect-like analysis, I have found the commit that introduces the loss of loading performance: https://github.com/qgis/QGIS/commit/c6beb62216fcfbfe3ca64283c09117da53800a98 We need more investigation to understand exactly what is causing that regression. David Marteau www.3liz.com

[QGIS-Developer] Qgis server: terrible performance with Qgis 3.26

2022-06-20 Thread David Marteau via QGIS-Developer
7 runs, 1 loop each) There is a factor x10 between Qgis 3.24 et Qgis 3.26 for the exact same project. This has serious impact on requests: landing page catalog request time increased from approximatevely 110ms to more than 3.0s with our test data set. David Marteau www.3liz.com

Re: [QGIS-Developer] Qgis server: terrible performance with Qgis 3.26

2022-06-20 Thread David Marteau via QGIS-Developer
022 à 15:10, Nyall Dawson a écrit : On Mon, 20 June 2022, 9:37 pm David Marteau via QGIS-Developer, wrote: Hi, I have noticed a huge drop of performance while testing Qgis server with Qgis 3.26, from 10x to 30x slower as usual. Trying to reduce the problem I have found a h

Re: [QGIS-Developer] Qgis server: terrible performance with Qgis 3.26

2022-06-20 Thread David Marteau via QGIS-Developer
) 105 ms ± 18.5 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) This improve the result  but we are still much higher that the loading time of 3.24: 15ms compared to 105ms Le 20/06/2022 à 18:38, Nyall Dawson a écrit : On Mon, 20 June 2022, 11:42 pm David Marteau, wrote: Hi,

Re: [QGIS-Developer] Qgis server: terrible performance with Qgis 3.26

2022-06-21 Thread David Marteau via QGIS-Developer
May be I could use QgsRuntimeProfiler output in first place ? Le 20/06/2022 à 18:55, Even Rouault a écrit : Use sysprof or just run under a debugger and interrupt regularly should help you spot in which method(s) most time is spent Le 20/06/2022 à 18:48, David Marteau via QGIS-Developer

Re: [QGIS-Developer] Qgis server: terrible performance with Qgis 3.26

2022-06-21 Thread David Marteau via QGIS-Developer
ctload, Creating auxiliary storage: 0.0 ms I do not understand the difference because it appears that it looks like the same code in 3.24 and 3.26. Does compile/optimize options could have changed between release 3.24 and 3.26 ? Le 21/06/2022 à 14:45, David Marteau a écrit : Hi, Here is a

Re: [QGIS-Developer] Qgis server: terrible performance with Qgis 3.26

2022-06-21 Thread David Marteau via QGIS-Developer
ile`, `Reading properties` and `Reading map layers` sections are almost 3 to 4 times slower in Qgis 3.26. The loading of layers ares also slower in Qgis 3.26 compared to Qgis 3.24. Le 21/06/2022 à 12:27, David Marteau a écrit : May be I could use QgsRuntimeProfiler output in first place ? Le

Re: [QGIS-Developer] Compile QGIS in docker

2022-10-22 Thread David Marteau via QGIS-Developer
Hi, I use and compile Qgis desktop and server on Docker on a daily basis. Docker on Windows or Osx relies on linux vm, so basically, you should do - almost - anything that you can do on Linux but  my expérience has taught me that the processe is much smoother on Linux. However, as Richard

Re: [QGIS-Developer] QGIS Server WMS Advertised extent and layers / groups bounding box in GetCapabilities

2022-10-04 Thread David Marteau via QGIS-Developer
Hi, Does that mean that is not playing any authoritative rôle  ? David Le 04/10/2022 à 13:43, Jürgen E. Fischer via QGIS-Developer a écrit : Hi René-Luc, On Tue, 04. Oct 2022 at 13:37:54 +0200, René-Luc Dhont via QGIS-Developer wrote: So I wonder what the role of the WMS Advertised extent

Re: [QGIS-Developer] QGIS Server and OGC API - Processes

2023-05-12 Thread David Marteau via QGIS-Developer
Hi, There is an implementation of OGC API processes on top of Qgis Processing here: https://github.com/3liz/py-qgis-wps that supports Qgis algorithms as processes out of the box. Le 12/05/2023 à 11:44, Alessandro Pasotti via QGIS-Developer a écrit : Hi, Is anybody working or planning to