[Qgis-user] Qgis plugin Data Plotly / box Plot : How to Add another field/box ?

2023-11-07 Thread celati Laurent via QGIS-User
Good morning,
I am a newbie with this Data Plotly plugin.
I manage to represent (input layer: point shp layer) a box plot with the
thematic id_classes in X axe (4=bare soils, 5=vegetation, 6=water) and in Y
axe the NDVI vegetation index values. These values are those for the dry
season. I would like now to be able to add to the right of each existing
box the representation for each class_ID of the NDVI values this time for
the wet season.
So each class_id would have a "pair" of boxes: 1 for the dry season and 1
for the wet season.
How can I do this? It's seems to be possible (an exemple seems to be given
on the documentation) .

Below my existing box plot :
[image: ss_Plotly_my_test.png]

Below a box plot from the documentation :

[image: ss_Plotly_documentation.png]
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Plugin spectral library tools : AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'Filters'

2023-11-05 Thread celati Laurent via QGIS-User
Good afternoon,

I work with unbuntu 22.04.03 LTS. And Qgis 3.34.0-Prizren. I installed the
last version of the plugin spectral library tools.

But when i try to enable it via the plugin manager interface, i get a error
message saying :

```
Impossible de charger l'extension 'spectral_libraries' provoque une erreur
lors de l'appel à sa méthode classFactory()AttributeError: type object
'QgsMapLayerProxyModel' has no attribute 'Filters'

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in
_startPlugin
plugins[packageName] = package.classFactory(iface)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/__init__.py",
line 14, in classFactory
from spectral_libraries.spectral_libraries_plugin import
SpectralLibrariesPlugin
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/spectral_libraries_plugin.py",
line 29, in
from spectral_libraries.interfaces.spectral_library_gui import
SpectralLibraryWidget
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/interfaces/spectral_library_gui.py",
line 28, in
from spectral_libraries.qps.layerproperties import VectorLayerTools
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/layerproperties.py",
line 85, in
from .classification.classificationscheme import ClassificationScheme
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/classification/classificationscheme.py",
line 44, in
from ..utils import gdalDataset, nextColor, findMapLayer,
registeredMapLayers, loadUi
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/utils.py",
line 2402, in
class SelectMapLayersDialog(QgsDialog):
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/utils.py",
line 2403, in SelectMapLayersDialog
class LayerDescription(object):
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/utils.py",
line 2405, in LayerDescription
def __init__(self, info: str, filters: QgsMapLayerProxyModel.Filters,
allowEmptyLayer=False):
AttributeError: type object 'QgsMapLayerProxyModel' has no attribute
'Filters'

Version de Python : 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
Version de QGIS : 3.34.0-Prizren Prizren, ffbdd678812

Chemin Python :

/usr/share/qgis/python

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins

/usr/share/qgis/python/plugins

/usr/lib/python310.zip

/usr/lib/python3.10

/usr/lib/python3.10/lib-dynload

/usr/local/lib/python3.10/dist-packages

/usr/lib/python3/dist-packages

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/HCMGIS/forms

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/SentinelHub/external/requests_oauthlib-1.3.1-py2.py3-none-any.whl

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview

/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/res
```
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] DataPlotly plugin (ubuntu) : ModuleNotFoundError: No module named 'pandas

2023-11-03 Thread celati Laurent via QGIS-User
Good afternoon,
I work with Qgis 3.34.0-Prizren on Ubuntu.
I would like test and use the DataPlotly plugin.
I succeed in installing this plugin via the qgis plugin manager. But when i
try to enable it still into the plugin manager, i have an error message
saying :
In advance, thanks so much for your help.
Below i paste the whole message

```
Impossible de charger l'extension 'DataPlotly' provoque une erreur lors de
l'appel à sa méthode classFactory()

**ModuleNotFoundError: No module named 'pandas'**
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in
_startPlugin
plugins[packageName] = package.classFactory(iface)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/__init__.py",
line 33, in classFactory
from .data_plotly import DataPlotly
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/data_plotly.py",
line 36, in
from DataPlotly.processing.dataplotly_provider import DataPlotlyProvider
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/processing/dataplotly_provider.py",
line 24, in
from DataPlotly.processing.dataplotly_scatterplot import
DataPlotlyProcessingScatterPlot
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DataPlotly/processing/dataplotly_scatterplot.py",
line 43, in
import pandas as pd
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
**ModuleNotFoundError: No module named 'pandas'**


Version de Python : 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
Version de QGIS : 3.34.0-Prizren Prizren, ffbdd678812

Chemin Python :
/usr/share/qgis/python
/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python
/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python310.zip
/usr/lib/python3.10
/usr/lib/python3.10/lib-dynload
/usr/local/lib/python3.10/dist-packages
/usr/lib/python3/dist-packages
/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python
/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/HCMGIS/forms
/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/SentinelHub/external/requests_oauthlib-1.3.1-py2.py3-none-any.whl
/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview
/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/res
```
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Ubuntu 22.03.3 LTS // error while loading shared libraries: libpdal_base.so.13: cannot open shared object file

2023-11-03 Thread celati Laurent via QGIS-User
gt; sudo apt-get purge qgis
>>>>>>> sudo apt update
>>>>>>> sudo apt install qgis qgis-plugin-grass
>>>>>>>
>>>>>>> Below the messag ewhen i tape sudo apt install qgis :
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> *(base)~$ sudo apt install qgis Lecture des listes de
>>>>>>> paquets... Fait Construction de l'arbre des dépendances... Fait Lecture 
>>>>>>> des
>>>>>>> informations d'état... Fait   Paquets suggérés :  gpsbabel Paquets
>>>>>>> recommandés :  qgis-plugin-grass Les NOUVEAUX paquets suivants seront
>>>>>>> installés :  qgis 0 mis à jour, 1 nouvellement installés, 0 à enlever 
>>>>>>> et 1
>>>>>>> non mis à jour. 2 partiellement installés ou enlevés. Il est nécessaire 
>>>>>>> de
>>>>>>> prendre 0 o/8 117 ko dans les archives. Après cette opération, 11,1 Mo
>>>>>>> d'espace disque supplémentaires seront utilisés. Sélection du paquet 
>>>>>>> qgis
>>>>>>> précédemment désélectionné. (Lecture de la base de données... 273453
>>>>>>> fichiers et répertoires déjà installés.) Préparation du dépaquetage de
>>>>>>> .../qgis_1%3a3.34.0+36jammy_amd64.deb ... Dépaquetage de qgis
>>>>>>> (1:3.34.0+36jammy) ... Paramétrage de qgis-providers (1:3.34.0+36jammy) 
>>>>>>> ...
>>>>>>> /usr/lib/qgis/crssync: error while loading shared libraries:
>>>>>>> libpdal_base.so.13: cannot open shared object file: No such file or
>>>>>>> directory dpkg: erreur de traitement du paquet qgis-providers
>>>>>>> (--configure) : installed qgis-providers package post-installation 
>>>>>>> script
>>>>>>> subprocess returned error exit status 127 dpkg: des problèmes de
>>>>>>> dépendances empêchent la configuration de qgis : qgis dépend de
>>>>>>> qgis-providers (= 1:3.34.0+36jammy) ; cependant : Le paquet 
>>>>>>> qgis-providers
>>>>>>> n'est pas encore configuré. dpkg: erreur de traitement du paquet qgis
>>>>>>> (--configure) : problèmes de dépendances - laissé non configuré dpkg: 
>>>>>>> des
>>>>>>> problèmes de dépendances empêchent la configuration de python3-qgis :
>>>>>>> python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant 
>>>>>>> : Le
>>>>>>> paquet qgis-providers n'est pas encore configuré. dpkg: erreur de
>>>>>>> traitement du paquet python3-qgis (--configure) : problèmes de 
>>>>>>> dépendances
>>>>>>> - laissé non configuré Aucun rapport « apport » n'a été créé car le 
>>>>>>> message
>>>>>>> d'erreur indique une erreur consécutive à un échec précédent.
>>>>>>> 
>>>>>>>  Aucun
>>>>>>> rapport « apport » n'a été créé car le message d'erreur indique une 
>>>>>>> erreur
>>>>>>> consécutive à un échec précédent.
>>>>>>>  

Re: [Qgis-user] Ubuntu 22.03.3 LTS // error while loading shared libraries: libpdal_base.so.13: cannot open shared object file

2023-11-03 Thread celati Laurent via QGIS-User
alled qgis-providers package post-installation script
>>>>> subprocess returned error exit status 127 dpkg: des problèmes de
>>>>> dépendances empêchent la configuration de qgis : qgis dépend de
>>>>> qgis-providers (= 1:3.34.0+36jammy) ; cependant : Le paquet qgis-providers
>>>>> n'est pas encore configuré. dpkg: erreur de traitement du paquet qgis
>>>>> (--configure) : problèmes de dépendances - laissé non configuré dpkg: des
>>>>> problèmes de dépendances empêchent la configuration de python3-qgis :
>>>>> python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant : 
>>>>> Le
>>>>> paquet qgis-providers n'est pas encore configuré. dpkg: erreur de
>>>>> traitement du paquet python3-qgis (--configure) : problèmes de dépendances
>>>>> - laissé non configuré Aucun rapport « apport » n'a été créé car le 
>>>>> message
>>>>> d'erreur indique une erreur consécutive à un échec précédent.
>>>>>   
>>>>>            Aucun
>>>>> rapport « apport » n'a été créé car le message d'erreur indique une erreur
>>>>> consécutive à un échec précédent.
>>>>>
>>>>> Traitement
>>>>> des actions différées (« triggers ») pour shared-mime-info (2.1-2) ...
>>>>> Traitement des actions différées (« triggers ») pour mailcap
>>>>> (3.70+nmu1ubuntu1) ... Traitement des actions différées (« triggers ») 
>>>>> pour
>>>>> desktop-file-utils (0.26-1ubuntu3) ... Traitement des actions différées
>>>>> (« triggers ») pour hicolor-icon-theme (0.17-2) ... Traitement des actions
>>>>> différées (« triggers ») pour man-db (2.10.2-1) ... Des erreurs ont été
>>>>> rencontrées pendant l'exécution : qgis-providers qgis python3-qgis E:
>>>>> Sub-process /usr/bin/dpkg returned an error code (1)*
>>>>>
>>>>> Le ven. 3 nov. 2023 à 07:50, Antonio Viscomi 
>>>>> a écrit :
>>>>>
>>>>>> Ok, @celati Laurent  have you to simply
>>>>>> type from terminal the command
>>>>>> sudo ldconfig
>>>>>> ?
>>>>>>
>>>>>> Il ven 3 nov 2023, 00:09 celati Laurent 
>>>>>> ha scritto:
>>>>>>
>>>>>>> If I well inderstood your message, you advice to install gdal from
>>>>>>> source? In order to reply to your question, No, I have never built gdal
>>>>>>> from source.
>>>>>>>  For my previous qgis install, I installed it from linux binaries.
>>>>>>>
>>>>>>> Le jeu. 2 nov. 2023 à 23:40, Antonio Viscomi 
>>>>>>> a écrit :
>>>>>>>
>>>>>>>> Have you a local build of gdal? If so you need to rebuild it, I did
>>>>>>>> a rebuild and all went well
>>>>>>>>
>>>>>>>> Il gio 2 nov 2023, 14:41 celati Laurent via QGIS-User <
>>>>>>>> qgis-user@lists.osgeo.org> ha scritto:
>>>>>>>>
>>>>>>>>> Good afternoon,
>>>>>>>>>
>>>>>>>>> Seems to be similar to : #52433
>>>>>>>>> <https://github.com/qgis/QGIS/issues/52433>
>>>>>>>>>
>>>>>>>>> I work on *unbuntu* 22.04.03 LTS.
>>>>>>>>> I succeed many weeks ago to install/use qgis Lima 3.32.2 on this
>>>>>>>>> station.
>>>>>>>>> But i was facing to several error message when i tried to
>>>>>>>>> install/use some plugins (dataPlotly, spectral library tools).
>>>>>>>>> Those error messages dealed with error ModuleNotFoundError: No
>>>>>>>>> module named 'mock' or no module named panda...
>>>>>>>>>
>>>>>>>>> So i decided to uninstall/reinstall qgis.
>>>>>>>>> i would like to install the last release for ubuntu.
>>>>>>>>>
>>>>>>>>> I make :
>>>>>>>>> sudo apt-get purge qgis
>>>>>>>>> sudo apt update
>>>>>>>>> sudo apt install qgis qgis-plugin-grass
>>>>>>>>>
>>>>>>>>> But i have this error message when i lauch qgis :
>>>>>>>>> /usr/bin/qgis.bin: error while loading shared libraries:
>>>>>>>>> libpdal_base.so.13: cannot open shared object file: No such file or
>>>>>>>>> directory
>>>>>>>>>
>>>>>>>>> For information, i share below the content of file located under
>>>>>>>>> /etc/apt/sources.list.d/qgis.sources:
>>>>>>>>>
>>>>>>>>> Types: deb deb-src
>>>>>>>>> URIs: https://qgis.org/debian
>>>>>>>>> Suites: jammy
>>>>>>>>> Architectures: amd64
>>>>>>>>> Components: main
>>>>>>>>> Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg
>>>>>>>>>
>>>>>>>>> ___
>>>>>>>>> QGIS-User mailing list
>>>>>>>>> QGIS-User@lists.osgeo.org
>>>>>>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>>>>>
>>>>>>>>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Ubuntu 22.03.3 LTS // error while loading shared libraries: libpdal_base.so.13: cannot open shared object file

2023-11-03 Thread celati Laurent via QGIS-User
I'm taking the liberty to share a new comment on github regarding my error
message :
https://github.com/qgis/QGIS/issues/52433#issuecomment-1792239516
So Please read below the result when i type :locate libpdal_base.so
/usr/lib/libpdal_base.so.15 /usr/lib/libpdal_base.so.15.0.0


Le ven. 3 nov. 2023 à 11:24, celati Laurent  a
écrit :

> Hello,
> After type sudo ldconfig, i have still the same error message when i tru
> to launch qgis :
> /usr/bin/qgis.bin: error while loading shared libraries:
> libpdal_base.so.13: cannot open shared object file: No such file or
> directory
>
> I make :
> sudo apt-get purge qgis
> sudo apt update
> sudo apt install qgis qgis-plugin-grass
>
> Below the messag ewhen i tape sudo apt install qgis :
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *(base)~$ sudo apt install qgis Lecture des listes de
> paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des
> informations d'état... Fait   Paquets suggérés :  gpsbabel Paquets
> recommandés :  qgis-plugin-grass Les NOUVEAUX paquets suivants seront
> installés :  qgis 0 mis à jour, 1 nouvellement installés, 0 à enlever et 1
> non mis à jour. 2 partiellement installés ou enlevés. Il est nécessaire de
> prendre 0 o/8 117 ko dans les archives. Après cette opération, 11,1 Mo
> d'espace disque supplémentaires seront utilisés. Sélection du paquet qgis
> précédemment désélectionné. (Lecture de la base de données... 273453
> fichiers et répertoires déjà installés.) Préparation du dépaquetage de
> .../qgis_1%3a3.34.0+36jammy_amd64.deb ... Dépaquetage de qgis
> (1:3.34.0+36jammy) ... Paramétrage de qgis-providers (1:3.34.0+36jammy) ...
> /usr/lib/qgis/crssync: error while loading shared libraries:
> libpdal_base.so.13: cannot open shared object file: No such file or
> directory dpkg: erreur de traitement du paquet qgis-providers
> (--configure) : installed qgis-providers package post-installation script
> subprocess returned error exit status 127 dpkg: des problèmes de
> dépendances empêchent la configuration de qgis : qgis dépend de
> qgis-providers (= 1:3.34.0+36jammy) ; cependant : Le paquet qgis-providers
> n'est pas encore configuré. dpkg: erreur de traitement du paquet qgis
> (--configure) : problèmes de dépendances - laissé non configuré dpkg: des
> problèmes de dépendances empêchent la configuration de python3-qgis :
> python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant : Le
> paquet qgis-providers n'est pas encore configuré. dpkg: erreur de
> traitement du paquet python3-qgis (--configure) : problèmes de dépendances
> - laissé non configuré Aucun rapport « apport » n'a été créé car le message
> d'erreur indique une erreur consécutive à un échec précédent.
>   
>Aucun
> rapport « apport » n'a été créé car le message d'erreur indique une erreur
> consécutive à un échec précédent.
>
> Traitement
> des actions différées (« triggers ») pour shared-mime-info (2.1-2) ...
> Traitement des actions différées (« triggers ») pour mailcap
> (3.70+nmu1ubuntu1) ... Traitement des actions différées (« triggers ») pour
> desktop-file-utils (0.26-1ubuntu3) ... Traitement des actions différées
> (« triggers ») pour hicolor-icon-theme (0.17-2) ... Traitement des actions
> différées (« triggers ») pour man-db (2.10.2-1) ... Des erreurs ont été
> rencontrées pendant l'exécution : qgis-providers qgis python3-qgis E:
> Sub-process /usr/bin/dpkg returned an error code (1)*
>
> Le ven. 3 nov. 2023 à 07:50, Antonio Viscomi  a
> écrit :
>
>> Ok, @celati Laurent  have you to simply type
>> from terminal the command
>> sudo ldconfig
>> ?
>>
>> Il ven 3 nov 2023, 00:09 celati Laurent  ha
>> scritto:
>>
>>> If I well inderstood your message, you advice to install gdal from
>>> source? In order to reply to your question, No, I have never built gdal
>>> from source.
>>>  For my previous qgis install, I installed it from linux binaries.
>>>
>>> Le jeu. 2 nov. 2023 à 23:40, Antonio Viscomi  a
>>> écrit :
>>>
>>>> Have you a local build of gdal? If so you need to rebuild it, I did a
>>>> rebuild and all went well
>>>>
>>>> Il gio 2 nov 2023, 14:41 celati Laurent via QGIS-User <
>>>> qgis-user@lists.osgeo.org> ha scritto:
>>>>
>>>>> Good afternoon,
>>>>>
>

Re: [Qgis-user] Ubuntu 22.03.3 LTS // error while loading shared libraries: libpdal_base.so.13: cannot open shared object file

2023-11-03 Thread celati Laurent via QGIS-User
Hello,
After type sudo ldconfig, i have still the same error message when i tru to
launch qgis :
/usr/bin/qgis.bin: error while loading shared libraries:
libpdal_base.so.13: cannot open shared object file: No such file or
directory

I make :
sudo apt-get purge qgis
sudo apt update
sudo apt install qgis qgis-plugin-grass

Below the messag ewhen i tape sudo apt install qgis :














































*(base)~$ sudo apt install qgis Lecture des listes de
paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des
informations d'état... Fait   Paquets suggérés :  gpsbabel Paquets
recommandés :  qgis-plugin-grass Les NOUVEAUX paquets suivants seront
installés :  qgis 0 mis à jour, 1 nouvellement installés, 0 à enlever et 1
non mis à jour. 2 partiellement installés ou enlevés. Il est nécessaire de
prendre 0 o/8 117 ko dans les archives. Après cette opération, 11,1 Mo
d'espace disque supplémentaires seront utilisés. Sélection du paquet qgis
précédemment désélectionné. (Lecture de la base de données... 273453
fichiers et répertoires déjà installés.) Préparation du dépaquetage de
.../qgis_1%3a3.34.0+36jammy_amd64.deb ... Dépaquetage de qgis
(1:3.34.0+36jammy) ... Paramétrage de qgis-providers (1:3.34.0+36jammy) ...
/usr/lib/qgis/crssync: error while loading shared libraries:
libpdal_base.so.13: cannot open shared object file: No such file or
directory dpkg: erreur de traitement du paquet qgis-providers
(--configure) : installed qgis-providers package post-installation script
subprocess returned error exit status 127 dpkg: des problèmes de
dépendances empêchent la configuration de qgis : qgis dépend de
qgis-providers (= 1:3.34.0+36jammy) ; cependant : Le paquet qgis-providers
n'est pas encore configuré. dpkg: erreur de traitement du paquet qgis
(--configure) : problèmes de dépendances - laissé non configuré dpkg: des
problèmes de dépendances empêchent la configuration de python3-qgis :
python3-qgis dépend de qgis-providers (= 1:3.34.0+36jammy) ; cependant : Le
paquet qgis-providers n'est pas encore configuré. dpkg: erreur de
traitement du paquet python3-qgis (--configure) : problèmes de dépendances
- laissé non configuré Aucun rapport « apport » n'a été créé car le message
d'erreur indique une erreur consécutive à un échec précédent.

  Aucun
rapport « apport » n'a été créé car le message d'erreur indique une erreur
consécutive à un échec précédent.

Traitement
des actions différées (« triggers ») pour shared-mime-info (2.1-2) ...
Traitement des actions différées (« triggers ») pour mailcap
(3.70+nmu1ubuntu1) ... Traitement des actions différées (« triggers ») pour
desktop-file-utils (0.26-1ubuntu3) ... Traitement des actions différées
(« triggers ») pour hicolor-icon-theme (0.17-2) ... Traitement des actions
différées (« triggers ») pour man-db (2.10.2-1) ... Des erreurs ont été
rencontrées pendant l'exécution : qgis-providers qgis python3-qgis E:
Sub-process /usr/bin/dpkg returned an error code (1)*

Le ven. 3 nov. 2023 à 07:50, Antonio Viscomi  a
écrit :

> Ok, @celati Laurent  have you to simply type
> from terminal the command
> sudo ldconfig
> ?
>
> Il ven 3 nov 2023, 00:09 celati Laurent  ha
> scritto:
>
>> If I well inderstood your message, you advice to install gdal from
>> source? In order to reply to your question, No, I have never built gdal
>> from source.
>>  For my previous qgis install, I installed it from linux binaries.
>>
>> Le jeu. 2 nov. 2023 à 23:40, Antonio Viscomi  a
>> écrit :
>>
>>> Have you a local build of gdal? If so you need to rebuild it, I did a
>>> rebuild and all went well
>>>
>>> Il gio 2 nov 2023, 14:41 celati Laurent via QGIS-User <
>>> qgis-user@lists.osgeo.org> ha scritto:
>>>
>>>> Good afternoon,
>>>>
>>>> Seems to be similar to : #52433
>>>> <https://github.com/qgis/QGIS/issues/52433>
>>>>
>>>> I work on *unbuntu* 22.04.03 LTS.
>>>> I succeed many weeks ago to install/use qgis Lima 3.32.2 on this
>>>> station.
>>>> But i was facing to several error message when i tried to install/use
>>>> some plugins (dataPlotly, spectral library tools).
>>>> Those error messages dealed with error ModuleNotFoundError: No module
>>>> named 'mock' or no module named panda...
>>>>
>>>> So i decided to uninstall/reinstall qgis.
>>>> i would like to install the last release for ubuntu.
>>>>
>>>> I make :
>>>> sudo apt-get purge qgis
>>>> sudo apt update
>>>> sudo apt install qgis qgis-plugin-grass
>>>>
>>>> But i have this error message when i lauch qgis :
>>>> /usr/bin/qgis.bin: error w

Re: [Qgis-user] Ubuntu 22.03.3 LTS // error while loading shared libraries: libpdal_base.so.13: cannot open shared object file

2023-11-02 Thread celati Laurent via QGIS-User
If I well inderstood your message, you advice to install gdal from source?
In order to reply to your question, No, I have never built gdal from source.
 For my previous qgis install, I installed it from linux binaries.

Le jeu. 2 nov. 2023 à 23:40, Antonio Viscomi  a
écrit :

> Have you a local build of gdal? If so you need to rebuild it, I did a
> rebuild and all went well
>
> Il gio 2 nov 2023, 14:41 celati Laurent via QGIS-User <
> qgis-user@lists.osgeo.org> ha scritto:
>
>> Good afternoon,
>>
>> Seems to be similar to : #52433
>> <https://github.com/qgis/QGIS/issues/52433>
>>
>> I work on *unbuntu* 22.04.03 LTS.
>> I succeed many weeks ago to install/use qgis Lima 3.32.2 on this station.
>> But i was facing to several error message when i tried to install/use
>> some plugins (dataPlotly, spectral library tools).
>> Those error messages dealed with error ModuleNotFoundError: No module
>> named 'mock' or no module named panda...
>>
>> So i decided to uninstall/reinstall qgis.
>> i would like to install the last release for ubuntu.
>>
>> I make :
>> sudo apt-get purge qgis
>> sudo apt update
>> sudo apt install qgis qgis-plugin-grass
>>
>> But i have this error message when i lauch qgis :
>> /usr/bin/qgis.bin: error while loading shared libraries:
>> libpdal_base.so.13: cannot open shared object file: No such file or
>> directory
>>
>> For information, i share below the content of file located under
>> /etc/apt/sources.list.d/qgis.sources:
>>
>> Types: deb deb-src
>> URIs: https://qgis.org/debian
>> Suites: jammy
>> Architectures: amd64
>> Components: main
>> Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg
>>
>> ___
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Ubuntu 22.03.3 LTS // error while loading shared libraries: libpdal_base.so.13: cannot open shared object file

2023-11-02 Thread celati Laurent via QGIS-User
Good afternoon,

Seems to be similar to : #52433 

I work on *unbuntu* 22.04.03 LTS.
I succeed many weeks ago to install/use qgis Lima 3.32.2 on this station.
But i was facing to several error message when i tried to install/use some
plugins (dataPlotly, spectral library tools).
Those error messages dealed with error ModuleNotFoundError: No module named
'mock' or no module named panda...

So i decided to uninstall/reinstall qgis.
i would like to install the last release for ubuntu.

I make :
sudo apt-get purge qgis
sudo apt update
sudo apt install qgis qgis-plugin-grass

But i have this error message when i lauch qgis :
/usr/bin/qgis.bin: error while loading shared libraries:
libpdal_base.so.13: cannot open shared object file: No such file or
directory

For information, i share below the content of file located under
/etc/apt/sources.list.d/qgis.sources:

Types: deb deb-src
URIs: https://qgis.org/debian
Suites: jammy
Architectures: amd64
Components: main
Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] plugin spectral-libraries : install error message

2023-11-02 Thread celati Laurent via QGIS-User
Good morning,
Thanks Manolo for your message.
But i work on ubuntu (no windows).
As far as i unserstood, my error message deals with a missing qgis python
mock module.
/usr/lib/python3/dist-packages/qgis
Do you know how to install this module specifically for the python qgis ?
Thanks so much?

Le mar. 31 oct. 2023 à 19:53, Manolo Terranova 
a écrit :

> I installed it on windows and it works.
> I got it from:
> https://bitbucket.org/kul-reseco/spectral-libraries/downloads/
> Version: spectral-libraries-1.1.3-qgis.zip
> <https://bitbucket.org/kul-reseco/spectral-libraries/downloads/spectral-libraries-1.1.3-qgis.zip>
>
> Cheers,
> Manolo
>
> On Tue, Oct 31, 2023 at 6:11 PM celati Laurent via QGIS-User <
> qgis-user@lists.osgeo.org> wrote:
>
>> Good afternoon,
>>
>> i work with Qgis 3.32.2-Lima on Ubuntu.
>>
>> I would like to install and use this usefull plugin.
>>
>> https://plugins.qgis.org/plugins/spectral_libraries/
>>
>> But it seems to be deprecated? :
>>
>> So when i try to install it with qgis, i get an error message (please to
>> read below) :
>> If this plugin does not work anymore, it would be any alternative with
>> qgis ?
>>
>> Thanks so much for your help.
>>
>> *Impossible de charger l'extension 'spectral_libraries' provoque une
>> erreur lors de l'appel à sa méthode classFactory()*
>> *ModuleNotFoundError: No module named 'mock'*
>>
>> Traceback (most recent call last):
>>   File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in 
>> _startPlugin
>> plugins[packageName] = package.classFactory(iface)
>>   File 
>> "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/__init__.py",
>>  line 14, in classFactory
>> from spectral_libraries.spectral_libraries_plugin import 
>> SpectralLibrariesPlugin
>>   File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File 
>> "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/spectral_libraries_plugin.py",
>>  line 29, in
>> from spectral_libraries.interfaces.spectral_library_gui import 
>> SpectralLibraryWidget
>>   File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File 
>> "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/interfaces/spectral_library_gui.py",
>>  line 34, in
>> initResources()
>>   File 
>> "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/__init__.py",
>>  line 154, in initResources
>> from .testing import initResourceFile
>>   File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>>   File 
>> "/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/testing.py",
>>  line 40, in
>> import mock
>>   File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
>> mod = _builtin_import(name, globals, locals, fromlist, level)
>> ModuleNotFoundError: No module named 'mock'
>>
>> ___
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] plugin spectral-libraries : install error message

2023-10-31 Thread celati Laurent via QGIS-User
Good afternoon,

i work with Qgis 3.32.2-Lima on Ubuntu.

I would like to install and use this usefull plugin.

https://plugins.qgis.org/plugins/spectral_libraries/

But it seems to be deprecated? :

So when i try to install it with qgis, i get an error message (please to
read below) :
If this plugin does not work anymore, it would be any alternative with qgis
?

Thanks so much for your help.

*Impossible de charger l'extension 'spectral_libraries' provoque une erreur
lors de l'appel à sa méthode classFactory()*
*ModuleNotFoundError: No module named 'mock'*

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin
plugins[packageName] = package.classFactory(iface)
  File 
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/__init__.py",
line 14, in classFactory
from spectral_libraries.spectral_libraries_plugin import
SpectralLibrariesPlugin
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/spectral_libraries_plugin.py",
line 29, in
from spectral_libraries.interfaces.spectral_library_gui import
SpectralLibraryWidget
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/interfaces/spectral_library_gui.py",
line 34, in
initResources()
  File 
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/__init__.py",
line 154, in initResources
from .testing import initResourceFile
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File 
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/spectral_libraries/qps/testing.py",
line 40, in
import mock
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'mock'
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis 'go2streetView' plugin: error message (Qubuntu)

2023-10-13 Thread celati Laurent via QGIS-User
Good morning dear all,

I work with Qubuntu. I installed qgis 3.32.2-Lima. I have installed the
latest version of the go2streetview plugin. I requested, got and set this
Google API key into the plugin window.

When I use the plugin, I get an error message in the plugin window saying
"small problem...an error has occurred. I paste below a screen shot showing
qgis interface as well as the various messages reported in the qgis logs
console. I replace the value of the google key with X :


*Logs general Menu :*

Code:
2023-10-13T08:48:28 INFOÉtat de l'application
 variable d'environnement QGIS_PREFIX_PATH :
 Préfixe: /usr
 Chemin des extensions: /usr/lib/qgis/plugins
 Chemin des paquets de données: /usr/share/qgis
 Nom du thème actif: default
 Chemin du thème actif:
/usr/share/qgis/resources/themes/default/icons/
 Chemin du thème par défaut: :/images/themes/default/
 Chemins de recherche SVG: /usr/share/qgis/svg/
  /home/geoteca/.local/share/QGIS/QGIS3/profiles/default/svg/
 Chemin de la BD utilisateur: /usr/share/qgis/resources/qgis.db
 Chemin de la BD d'authentification:
/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/qgis-auth.db


*Logs go2streetview Menu :*

Code:2023-10-13T09:34:04 INFO
file:///home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/res/g2sv.html?lat=14.748027087080024=-17.383023740224072=444=519=0=2023-10-13T09:34:04
INFO
file:///home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/res/g2gm.html?lat=14.748027087080024=-17.383023740224072[1]dth=444=519=19=0=



*Logs python Menu :*

Code:2023-10-13T09:36:38 WARNINGTraceback (most recent call last):
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/go2streetview.py",
line 534, in openInBrowserAction
  self.openInBrowserSV()
  File
"/home/geoteca/.local/share/QGIS/QGIS3/profiles/default/python/plugins/go2streetview/go2streetview.py",
line 754, in openInBrowserSV
  pitch = str(-1 * math.floor(float(p['pitch'])))
 KeyError: 'pitch'




*Logs general Menu :*

Code:2023-10-13T09:36:39 WARNINGErreur Python : Une erreur est
survenue lors de l'exécution du code Python : Voir le journal des
erreurs Python pour plus de détails




Thanks so much for your usefull help.

Kind regards.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis & photos (google street view) : Downloading photos and use its for atlas?

2023-10-12 Thread celati Laurent via QGIS-User
Good afternoon,

I am carrying out a remote sensing work (land use mapping of the Dakar
metropolitan area based on sentinel2 images classifications). In order to
compensate for the absence of a ground campaign and reference data (ground
truth), I intended to use photos that can be found on the web in order to
preserve this ground/landscape dimension. And to integrate these ground
photos into a qgis atlas composed of several item maps (1 item for Very
High Resolution Google qgis satellite data accessible via qgis plugin, 1
item map of a sentinel2 data in the dry season, 1 item sentinel map 2 in
wet season, 1 item map of the classif product Esa World Cover. For
information, I am attaching a simple screen shot of this existing atlas.
For information, the cover layer for the atlas is my polygon layer of the
areas of training/validation (reference polygons which are used in the
classification process for training and validation).

I would therefore like to be able to add map items dedicated to Google
streetview photos to this atlas. Do you know what ways there are to first
save/download Google StreetView photos? Will the uploaded photos be
geotagged/geocoded? Then, the idea would be to be able to associate one or
more Google street view photographs with each sheet/page of the atlas.

I'm probably too many ambitious. I saw that there were some qgis plugins:

go2streetview: https://plugins.qgis.org/plugins/go2streetview/

streetview: https://plugins.qgis.org/plugins/StreetView/

Google street view layer:https://plugins.qgis.org/plugins/google …
er-master/

Up to now, I'm using the street view plugin. Not other two. Because I can't
really manage to use them. The problem seems to come from the Google API
key. Maybe I didn't do things correctly. Do you think these plugins can
help me meet my needs?


Thnaks so much for your help.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Data source manager--Postgresql: how to display schemas comments ?

2023-06-29 Thread celati Laurent via QGIS-User
Hello,
Following to my previous post, i'm taking the liberty to make a feature
request : https://github.com/qgis/QGIS/issues/53650

Le mer. 28 juin 2023 à 15:08, celati Laurent  a
écrit :

> Good afternoon,
> I work with Postgresql/Postgis server and Qgis desktop as client.
> I use several thematic schemas in my postgresql database.
> With pgadmin, i fill in the COMMENT section for tables and chemas allowing
> to have a short description for each tables and schemas. With Qgis, via the
> data source manager, it is possible for tables to get this description.
> But i would like to get the schemas's description. By default this does
> not seem possible.
> I am attaching a screenshot showing that the comments info are correctly
> get for the table. But not for the schema level.
> [image: image.png]
> Thansk a lot.
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Data source manager--Postgresql: how to display schemas comments ?

2023-06-28 Thread celati Laurent via QGIS-User
Good afternoon,
I work with Postgresql/Postgis server and Qgis desktop as client.
I use several thematic schemas in my postgresql database.
With pgadmin, i fill in the COMMENT section for tables and chemas allowing
to have a short description for each tables and schemas. With Qgis, via the
data source manager, it is possible for tables to get this description.
But i would like to get the schemas's description. By default this does not
seem possible.
I am attaching a screenshot showing that the comments info are correctly
get for the table. But not for the schema level.
[image: image.png]
Thansk a lot.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis / Postgis raster : select and display pixels are intersected a polygon

2023-06-14 Thread celati Laurent via QGIS-User
Good morning,
I have in my postgis database, 1 raster and 1 vector polygon.
I would like to be able in qgis to display only pixels that are inside or
intersect my polygon.
I would like to do a "select" only and not a create table firstly. I was
thinking of using the SQL window of the BDD plugin for this.
Here is an example :





*Coded:SELECT temp_rast.*FROM public.temp_rast,
andra_human."FAVL_ZoneEtude_Po"WHERE
ST_Intersects(temp_rast.rast,"FAVL_ZoneEtude_Po".geom)*

When I run it works. But I can't load as a new layer. I put rid for unique
values. And I put rast for the geom column. FYI, My tables have indexes and
constraints (pk)

Here is the error message I get in the qgis logs:














*Coded:2023-06-14T10:32:38 WARNING Rast field ignored because type b is not
supported2023-06-14T10:32:38 WARNING An error occurred while retrieving
raster metadata for "public".."a", raster data parsing (which may be very
slow) continues: Unable to obtain the number of bands from the value: ''..
Please consider adding raster constraints with the PostGIS
AddRasterConstraints function.2023-06-14T10:32:38 INFO No preview found,
performance may be affected for "public".."a"2023-06-14T10:40:17 WARNING
Bad query: SELECT 0, array_agg(DISTINCT st_srid("rast")::text || ':' ||
UPPER(geometrytype("rast")) || ':' | | ST_Zmflag("rast")) FROM (SELECT
"rast" FROM (SELECT temp_rast.* FROM public.temp_rast,
andra_human."FAVL_ZoneEtude_Po" WHERE
ST_Intersects(temp_rast.rast,"FAVL_ZoneEtude_Po".geom)  ) AS
"subQuery_0") AS _unused returned 7 [ERROR: function geometrytype(raster)
does not exist  LINE 1: ...gg(DISTINCT st_srid("rast")::text ||
':' || UPPER(geometryty...   ^  HINT: No function
matches given name and argument types.  You must add explicit
type conversions.  ]2023-06-14T10:40:17 WARNING Invalid
PostgreSQL layer*


*Thanks so much.*
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis atlas print composer : aggregate (bigger overlap)

2023-06-12 Thread celati Laurent via QGIS-User
Thanks a lot for your usefull reply. It works well !

Le lun. 12 juin 2023 à 14:18, Stefan Giese (WhereGroup) <
stefan.gi...@wheregroup.com> a écrit :

> Hi,
>
> you can use overlay functions instead, there you can sort the size of
> intersection and take the biggest one:
>
> *overlay_intersects(layer:='**PARCEL_LAYER**',  expression:="parcel_id",
> sort_by_intersection_size:='des')[0]*
> hope this helps
> Stefan
>
> Am 12.06.2023 um 14:04 schrieb celati Laurent via QGIS-User:
>
> Good afternoon,
> With Qgis 3.30, In the composer interface, I generate an atlas.
> My iteration layer is a polygonal layer (platforms). I added a text
> element to automatically get by spatial intersection the 'parcel_id'
> attribute present in another polygonal layer. I use the aggregate function
> for this task :
>
>
>
>
> *  aggregate( 'LAYER':="PARCEL_LAYER',aggregate:='concatenate',
> expression:="parcel_id", filter:=intersects(geometry(@parent), $geometry))*
>
> It works. But the result shows values of all the intersections. I would
> like it limit to the result of the biggest intersection. Would you know how
> to do it?
>
> Thanks a lot.
>
> ___
> QGIS-User mailing listqgis-u...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> --
> Mit freundlichen Grüßen
> Stefan Giese
> Projektleiter/Consultant
> --
> Aufwind durch Wissen!
> Jetzt neu: Webinare und Online-Schulungen
> bei der www.foss-academy.com
> --
>
> WhereGroup GmbH
> Schwimmbadstr. 2
> 79100 Freiburg
> Germany
>
> Fon: +49 (0)761 / 519 102 - 61
> Fax: +49 (0)761 / 519 102 - 11
> stefan.gi...@wheregroup.comwww.wheregroup.com
> Geschäftsführer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
>
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis atlas print composer : aggregate (bigger overlap)

2023-06-12 Thread celati Laurent via QGIS-User
Good afternoon,
With Qgis 3.30, In the composer interface, I generate an atlas.
My iteration layer is a polygonal layer (platforms). I added a text element
to automatically get by spatial intersection the 'parcel_id' attribute
present in another polygonal layer. I use the aggregate function for this
task :




*  aggregate('LAYER':="PARCEL_LAYER',aggregate:='concatenate',
expression:="parcel_id",filter:=intersects(geometry(@parent), $geometry))*

It works. But the result shows values of all the intersections. I would
like it limit to the result of the biggest intersection. Would you know how
to do it?

Thanks a lot.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] [Lizmap] Lizmap/qgis server : cache management (seeding)

2023-05-16 Thread celati Laurent via QGIS-User
Good morning,

Thanks for your message, i have currently one only Qgis server
installed/available.
Sorry but what do you mean by "enhance the number of QGIS Server available
?"

Following to my previous message, regarding my initial and main issue, For
information, when i do :

php lizmap/console.php project:load


i get :


*/var/www/lizmap/lizmap-web-client-3.6.3# php lizmap/console.php project:load
Enter the repository lizmaptest
Get the project zios
1 request(s) return success for the project zios
Enter the repository aero
Get the project aero_v2
1 request(s) return success for the project aero_v2
Enter the repository dr0
Get the project forages
1 request(s) return success for the project forages
Get the project forages_2154
1 request(s) return success for the project forages_2154
Get the project dr0
1 request(s) return success for the project dr0
Get the project forages_2154_with_fond
1 request(s) return success for the project forages_2154_with_fond*


*But when i do : *


*php lizmap/console.php wmts:capabilities -v dr0 forages_2154
No layers configured with cache!*


*Do you know where the problem comes from ?*


In parrarel, always with the aim of improving performance, i tried to
edit my vhost apache in adding :

FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING "1"

and

FcgidInitialEnv QGIS_SERVER_CACHE_DIRECTORY "/tmp/"

(Is it a good idea or i should rather keep the default value ('cache
in profile directory') ?

i setted this path because into my lizmap cache config i noticed :
cache root directory :  /tmp/)

Still in parralel, I discovered the existence of these 2 qgis server
plugins. Would it be adviced to installing them?
https://github.com/3liz/qgis-server-wmts-cache-plugin

https://github.com/3liz/qgis-server-tiles-plugin

Eventually, I'm taking the liberty to paste below an update of my qgis
server logs :

I'm surprised to not read in the environment summary logs, the new
enviro variables 'FcgidInitialEnv QGIS_SERVER_PARALLEL_RENDERING'
and 'FcgidInitialEnv QGIS_SERVER_CACHE_DIRECTORY'

How to ensure that the cache server is functional and taken into account?


11:30:43 INFO Server[919778]:  New request ***
11:30:43 INFO Server[919778]: Request URL:
http://sig-rec.andra.fr/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json
11:30:43 INFO Server[919778]: Environment:
11:30:43 INFO Server[919778]: 
11:30:43 INFO Server[919778]: SERVER_NAME: sig-rec.andra.fr
11:30:43 INFO Server[919778]: REQUEST_URI:
/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json
11:30:43 INFO Server[919778]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi
11:30:43 INFO Server[919778]: PATH_INFO: /lizmap/server.json
11:30:43 INFO Server[919778]: REMOTE_ADDR: 192.168.4.7
11:30:43 INFO Server[919778]: SERVER_PORT: 80
11:30:43 INFO Server[919778]: QUERY_STRING:
11:30:43 INFO Server[919778]: REQUEST_METHOD: GET
11:30:43 INFO Server[919778]: QGIS_PROJECT_FILE: /home/qgis/projects/world.qgs
11:30:43 INFO Server[919778]: SERVER_PROTOCOL: HTTP/1.1
11:30:43 INFO Server[919778]: Using configuration file path from
environment: /home/qgis/projects/world.qgs
11:30:43 INFO Lizmap[919778]: Request headers provided
11:30:43 INFO Lizmap[919778]: No lizmap user groups in request headers
11:30:43 INFO Server[919778]: Using configuration file path from
environment: /home/qgis/projects/world.qgs
11:30:43 INFO Server[919778]: Trying URL path:
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/lizmap'
11:30:43 INFO Server[919778]: API Lizmap accepts the URL path
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json'
11:30:43 INFO Server[919778]: Checking API path /server.json for server.json
11:30:43 INFO Server[919778]: API Lizmap: found handler server
11:30:43 CRITICAL Server[919778]: Service ATLAS is not registered
11:30:43 CRITICAL Server[919778]: Service CADASTRE is not registered
11:30:43 INFO Server[919778]: Request finished in 6 ms

Thans a lot again for your usefull help ans support.


Le lun. 15 mai 2023 à 15:40, celati Laurent  a
écrit :

> Hi, thanks,
> Probably not. Should i set additional environment variables in my apache
> vhost ?
> (MAX_CACHE_LAYERS, QGIS_SERVER_PARALLEL_RENDERING, QGIS_SERVER_MAX_THREADS,
> QGIS_SERVER_MAX_THREADS,QGIS_SERVER_CACHE_SIZE, QGIS_SERVER_WMS_MAX_HEIGHT
> / QGIS_SERVER_WMS_MAX_WIDTH)
>
> Below, a part of my parameters qgis server log (summary) :
>
> 14:10:05 INFO Server[907652]:  New request
> ***
>
> 14:10:05 INFO Server[907652]: Request URL:
> http://-xxx..fr/cgi-bin/qgis_mapserv.fcgi?map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap_test%2FDR0%2Fforages_2154.qgs=GetCapabilities=WMS=1.3.0_User=_User_Groups=
>
> 14:10:05 INFO Server[907652]: Environment:
>
> 14:10:05 INFO Server[907652]:
> 
>
> 14:10:05 INFO Server[907652]: SERVER_NAME: x..fr
>
> 14:10:05 INFO Server[907652]: REQUEST_URI:
> 

Re: [Qgis-user] [Lizmap] Lizmap/qgis server : cache management (seeding)

2023-05-15 Thread celati Laurent via QGIS-User
Hi, thanks,
Probably not. Should i set additional environment variables in my apache
vhost ?
(MAX_CACHE_LAYERS, QGIS_SERVER_PARALLEL_RENDERING, QGIS_SERVER_MAX_THREADS,
QGIS_SERVER_MAX_THREADS,QGIS_SERVER_CACHE_SIZE, QGIS_SERVER_WMS_MAX_HEIGHT
/ QGIS_SERVER_WMS_MAX_WIDTH)

Below, a part of my parameters qgis server log (summary) :

14:10:05 INFO Server[907652]:  New request
***

14:10:05 INFO Server[907652]: Request URL:
http://-xxx..fr/cgi-bin/qgis_mapserv.fcgi?map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap_test%2FDR0%2Fforages_2154.qgs=GetCapabilities=WMS=1.3.0_User=_User_Groups=

14:10:05 INFO Server[907652]: Environment:

14:10:05 INFO Server[907652]:


14:10:05 INFO Server[907652]: SERVER_NAME: x..fr

14:10:05 INFO Server[907652]: REQUEST_URI:
/cgi-bin/qgis_mapserv.fcgi?map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap%5Ftest%2FDR0%2Fforages%5F2154%2Eqgs=GetCapabilities=WMS=1%2E3%2E0%5FUser=%5FUser%5FGroups=

14:10:05 INFO Server[907652]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi

14:10:05 INFO Server[907652]: REMOTE_ADDR: 192.168.4.7

14:10:05 INFO Server[907652]: SERVER_PORT: 80

14:10:05 INFO Server[907652]: QUERY_STRING:
map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap%5Ftest%2FDR0%2Fforages%5F2154%2Eqgs=GetCapabilities=WMS=1%2E3%2E0%5FUser=%5FUser%5FGroups=

14:10:05 INFO Server[907652]: REQUEST_METHOD: GET

14:10:05 INFO Server[907652]: QGIS_PROJECT_FILE:
/home/qgis/projects/world.qgs

14:10:05 INFO Server[907652]: SERVER_PROTOCOL: HTTP/1.1

14:10:05 INFO Lizmap[907652]: Request headers provided

14:10:05 INFO Lizmap[907652]: No lizmap user groups in request headers

14:10:05 INFO Lizmap[907652]: Lizmap user groups in parameters :

14:10:05 INFO Lizmap[907652]: Fetching
/home/data/ftp/template/qgis/lizmap_test/DR0/forages_2154.qgs.cfg cfg file
with last modified timestamp : 1684152008.8653688

14:10:05 INFO Lizmap[907652]: No acl defined in Lizmap config

14:10:05 INFO Server[907652]: LIZMAP_USER:

14:10:05 INFO Server[907652]: LIZMAP_USER_GROUPS:

14:10:05 INFO Server[907652]:
MAP:/home/data/ftp/template/qgis/lizmap_test/DR0/forages_2154.qgs

14:10:05 INFO Server[907652]: REQUEST:GetCapabilities

14:10:05 INFO Server[907652]: SERVICE:WMS

14:10:05 INFO Server[907652]: VERSION:1.3.0

14:10:05 INFO Lizmap[907652]: Request headers provided

14:10:05 INFO Lizmap[907652]: No lizmap user groups in request headers

14:10:05 INFO Lizmap[907652]: Lizmap user groups in parameters :

14:10:05 INFO Lizmap[907652]: Fetching
/home/data/ftp/template/qgis/lizmap_test/DR0/forages_2154.qgs.cfg cfg file
with last modified timestamp : 1684152008.8653688

14:10:05 INFO Lizmap[907652]: Request headers provided

14:10:05 INFO Lizmap[907652]: No lizmap user groups in request headers

14:10:05 INFO Lizmap[907652]: Lizmap user groups in parameters :

14:10:05 INFO Lizmap[907652]: Fetching
/home/data/ftp/template/qgis/lizmap_test/DR0/forages_2154.qgs.cfg cfg file
with last modified timestamp : 1684152008.8653688

14:10:05 WARNING Server[907652]: Found WMS capabilities document in cache

14:10:05 INFO Server[907652]: Request finished in 8 ms

Le lun. 15 mai 2023 à 15:11, Giovanni Manghi 
a écrit :

> Hi,
>
>
> On debian/apache, I succeed in installing qgis server and lizmap. I am a
>> little surprised by the poor performance that I can observe currently.
>>
>
>
> Have you enabled (QGIS Server) parallel rendering in your Apache/Ngnix
> configs?
>
> -- G --
>
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Lizmap/qgis server : cache management (seeding)

2023-05-15 Thread celati Laurent via QGIS-User
Good afternoon,
On debian/apache, I succeed in installing qgis server and lizmap. I am a
little surprised by the poor performance that I can observe currently. They
must probably be explained by a bad configuration that I need to improve. I
am thinking in particular of the cache.
I'm trying to follow this page from the doc:
https://docs.lizmap.com/current/en/admin/cache.html#seeding
If I understand correctly, I would benefit from generating the tile cache.

When I do:

*lizmap-web-client-3.6.3# php lizmap/console.php wmts:cache:seed -v -f dr0
drills_2154 EPSG:2154 1 7*

I get :

In Input.php line 76:









*   [Symfony\Component\Console\Exception\RuntimeException]   Not enough
arguments (missing: "TileMatrixMax").Exception trace:   at
/var/www/lizmap/lizmap-web-client-3.6.3/lizmap/vendor/symfony/console/Input/Input.php:76
Symfony\Component\Console\Input\Input->validate() at
/var/www/lizmap/lizmap-web-client-3.6.3/lizmap/vendor/symfony/console/Command/Command.php:293
Symfony\Component\Console\Command\Command->run() at
/var/www/lizmap/lizmap-web-client-3.6.3/lizmap/vendor/symfony/console/Application.php:1040
Symfony\Component\Console\Application->doRunCommand() at
/var/www/lizmap/lizmap-web-client-3.6.3/lizmap/vendor/symfony/console/Application.php:301
Symfony\Component\Console\Application->doRun() at
/var/www/lizmap/lizmap-web-client-3.6.3/lizmap/vendor/symfony/console/Application.php:171
Symfony\Component\Console\Application->run() at
/var/www/lizmap/lizmap-web-client-3.6.3/lizmap/vendor/jelix/jelix/lib/jelix/Scripts/ModulesCommands.php:48
Jelix\Scripts\ModulesCommands::run() at
/var/www/lizmap/lizmap-web-client-3.6.3/lizmap/console.php:2*

*wmts:cache:seed [--dry-run] [--bbox BBOX] [-f|--force] [--] 
[/ coded]*

And when I try to add a layer as an argument:
*lizmap-web-client-3.6.3# php lizmap/console.php wmts:cache:seed -v -f dr0
forages_2154 Ouvrage_a_Realiser_Pt EPSG:2154 1 7*

I get :




*[code]The cache in not available!The WMTS Service has not been
initialized!The WMTS Service has been initialized!No layers configured with
cache![/code]*

In advance, thanks for your help.

Kind regards.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server / lizmap : error message

2023-05-12 Thread celati Laurent via QGIS-User
Hello,
Problem fix. According to me, the problem came from the postgis spatial
filter  enabled within my qgis project :

https://plugins.qgis.org/plugins/spatial_filter/
https://github.com/WhereGroup/spatial_filter





Le jeu. 11 mai 2023 à 16:38, celati Laurent  a
écrit :

> Hello,
> I make several tests with qgis server ans lizmap. For one of your qgis
> projects, i obtain an error message.
> im' taking the liberty to share those messages. FYI, i work with debian,
> apache and postgis tables data :
>
> *QGIS SERVER : *
>
> 16:21:54 INFO Server[853909]: SERVER_NAME: -..fr
>
> 16:21:54 INFO Server[853909]: REQUEST_URI:
> /cgi-bin/qgis_mapserv.fcgi/lizmap/server.json
>
> 16:21:54 INFO Server[853909]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi
>
> 16:21:54 INFO Server[853909]: PATH_INFO: /lizmap/server.json
>
> 16:21:54 INFO Server[853909]: REMOTE_ADDR: 192.168.4.7
>
> 16:21:54 INFO Server[853909]: SERVER_PORT: 80
>
> 16:21:54 INFO Server[853909]: QUERY_STRING:
>
> 16:21:54 INFO Server[853909]: REQUEST_METHOD: GET
>
> 16:21:54 INFO Server[853909]: QGIS_PROJECT_FILE:
> /home/qgis/projects/world.qgs
>
> 16:21:54 INFO Server[853909]: SERVER_PROTOCOL: HTTP/1.1
>
> 16:21:54 INFO Server[853909]: Using configuration file path from
> environment: /home/qgis/projects/world.qgs
>
> 16:21:54 INFO Lizmap[853909]: Request headers provided
>
> 16:21:54 INFO Lizmap[853909]: No lizmap user groups in request headers
>
> 16:21:54 INFO Server[853909]: Using configuration file path from
> environment: /home/qgis/projects/world.qgs
>
> 16:21:54 INFO Server[853909]: Trying URL path:
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/'
>
> 16:21:54 INFO Server[853909]: Trying URL path:
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/wfs3'
>
> 16:21:54 INFO Server[853909]: Trying URL path:
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/lizmap'
>
> 16:21:54 INFO Server[853909]: API Lizmap accepts the URL path
> '/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json'
>
> 16:21:54 INFO Server[853909]: Checking API path /server.json for
> server.json
>
> 16:21:54 INFO Server[853909]: API Lizmap: found handler server
>
> 16:21:54 CRITICAL Server[853909]: Service ATLAS is not registered
>
> 16:21:54 CRITICAL Server[853909]: Service CADASTRE is not registered
>
> 16:21:54 INFO Server[853909]: Request finished in 1 ms
>
>
> *LIZMAP*
>  error An error has been raised when loading WMS GetCapabilities: HTTP
> Code 400
>  error GetCapabilities result code: 500
>  error GetCapabilities result code: 500
> error GetCapabilities result code: 500
>  error GetCapabilities result code: 500
>  error An error has been raised when loading WMS GetCapabilities: HTTP
> Code 400
> error GetCapabilities result code: 500
> Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171
>  Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171
>
> Thanks.
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis server / lizmap : error message

2023-05-11 Thread celati Laurent via QGIS-User
Hello,
I make several tests with qgis server ans lizmap. For one of your qgis
projects, i obtain an error message.
im' taking the liberty to share those messages. FYI, i work with debian,
apache and postgis tables data :

*QGIS SERVER : *

16:21:54 INFO Server[853909]: SERVER_NAME: -..fr

16:21:54 INFO Server[853909]: REQUEST_URI:
/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json

16:21:54 INFO Server[853909]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi

16:21:54 INFO Server[853909]: PATH_INFO: /lizmap/server.json

16:21:54 INFO Server[853909]: REMOTE_ADDR: 192.168.4.7

16:21:54 INFO Server[853909]: SERVER_PORT: 80

16:21:54 INFO Server[853909]: QUERY_STRING:

16:21:54 INFO Server[853909]: REQUEST_METHOD: GET

16:21:54 INFO Server[853909]: QGIS_PROJECT_FILE:
/home/qgis/projects/world.qgs

16:21:54 INFO Server[853909]: SERVER_PROTOCOL: HTTP/1.1

16:21:54 INFO Server[853909]: Using configuration file path from
environment: /home/qgis/projects/world.qgs

16:21:54 INFO Lizmap[853909]: Request headers provided

16:21:54 INFO Lizmap[853909]: No lizmap user groups in request headers

16:21:54 INFO Server[853909]: Using configuration file path from
environment: /home/qgis/projects/world.qgs

16:21:54 INFO Server[853909]: Trying URL path:
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/'

16:21:54 INFO Server[853909]: Trying URL path:
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/wfs3'

16:21:54 INFO Server[853909]: Trying URL path:
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json' for '/lizmap'

16:21:54 INFO Server[853909]: API Lizmap accepts the URL path
'/cgi-bin/qgis_mapserv.fcgi/lizmap/server.json'

16:21:54 INFO Server[853909]: Checking API path /server.json for server.json

16:21:54 INFO Server[853909]: API Lizmap: found handler server

16:21:54 CRITICAL Server[853909]: Service ATLAS is not registered

16:21:54 CRITICAL Server[853909]: Service CADASTRE is not registered

16:21:54 INFO Server[853909]: Request finished in 1 ms


*LIZMAP*
 error An error has been raised when loading WMS GetCapabilities: HTTP Code
400
 error GetCapabilities result code: 500
 error GetCapabilities result code: 500
error GetCapabilities result code: 500
 error GetCapabilities result code: 500
 error An error has been raised when loading WMS GetCapabilities: HTTP Code
400
error GetCapabilities result code: 500
Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
171
 Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
171

Thanks.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Lizmap/qgis server : Setting up with PostGIS database

2023-05-10 Thread celati Laurent via QGIS-User
Thanks for your help. It works now.

Le mar. 9 mai 2023 à 12:28, celati Laurent  a
écrit :

> Hello,
> Following to my previous message, i share an update of my qgis server and
> lizmap messages. For those tests, in addition to the .qgs file, i put on
> the server the .qgs.cfg. Is it mandatory to do this ?
> Please read below the qgis server and lizmap messages :
>
> *qgis server : *
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Code:12:10:06 INFO Server[824190]:  New request
> ***12:10:06 INFO Server[824190]: Request URL:
> http://XXX-..fr/cgi-bin/qgis_mapserv.fcgi?map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap_test%2Fzios.qgs=getcapabilities=WMS=1.3.0_User=admin_User_Groups=admins_Override_Filter=1
> 12:10:06
> INFO Server[824190]: Environment:12:10:06 INFO Server[824190]:
> 12:10:06 INFO
> Server[824190]: SERVER_NAME: -X.X.fr
> 12:10:06 INFO Server[824190]: REQUEST_URI:
> /cgi-bin/qgis_mapserv.fcgi?map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap%5Ftest%2Fzios%2Eqgs=getcapabilities=WMS=1%2E3%2E0%5FUser=admin%5FUser%5FGroups=admins%5FOverride%5FFilter=112:10:06
> INFO Server[824190]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi12:10:06 INFO
> Server[824190]: REMOTE_ADDR: XX.X..X12:10:06 INFO
> Server[824190]: SERVER_PORT: 8012:10:06 INFO Server[824190]: QUERY_STRING:
> map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap%5Ftest%2Fzios%2Eqgs=getcapabilities=WMS=1%2E3%2E0%5FUser=admin%5FUser%5FGroups=admins%5FOverride%5FFilter=112:10:06
> INFO Server[824190]: REQUEST_METHOD: GET12:10:06 INFO Server[824190]:
> QGIS_PROJECT_FILE: /home/qgis/projects/world.qgs12:10:06 INFO
> Server[824190]: SERVER_PROTOCOL: HTTP/1.112:10:06 INFO Lizmap[824190]:
> Request headers provided12:10:06 INFO Lizmap[824190]: No lizmap user groups
> in request headers12:10:06 INFO Lizmap[824190]: Lizmap user groups in
> parameters : admins12:10:06 INFO Lizmap[824190]: Fetching
> /home/data/ftp/template/qgis/lizmap_test/zios.qgs.cfg cfg file with last
> modified timestamp : 1683626320.575111912:10:06 INFO Lizmap[824190]: No acl
> defined in Lizmap config12:10:06 INFO Server[824190]:
> LIZMAP_OVERRIDE_FILTER:112:10:06 INFO Server[824190]:
> LIZMAP_USER:admin12:10:06 INFO Server[824190]:
> LIZMAP_USER_GROUPS:admins12:10:06 INFO Server[824190]:
> MAP:/home/data/ftp/template/qgis/lizmap_test/zios.qgs12:10:06 INFO
> Server[824190]: REQUEST:getcapabilities12:10:06 INFO Server[824190]:
> SERVICE:WMS12:10:06 INFO Server[824190]: VERSION:1.3.012:10:06 CRITICAL
> Server[824190]: Error, Layer(s)
> Cigeo_Zios_Po_20170503_ee7aedcd_2ab0_4b3f_bb42_81725199ad65 not valid in
> project /home/data/ftp/template/qgis/lizmap_test/zios.qgs12:10:06 WARNING
> Server[824190]:  encoding="UTF-8"?>Layer(s) not
> valid12:10:06 INFO Server[824190]: Request finished in 70
> ms*
>
> *Lizmap message  : *
> An error occurred while loading the map. Required resources may be
> temporarily unavailable. Please try later.
> Return to home page.
>
> *Lizmap Logs : *
>
> 2023-05-09 12:04:18[8]Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171
>
> 2023-05-09 12:04:18[8]Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171
>
> 2023-05-09 12:05:04[8]Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171
>
> 2023-05-09 12:05:04[8]Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171
>
> 2023-05-09 12:05:24172.21.20.97errorGetCapabilities result code: 
> 500
> 2023-05-09 12:05:25172.21.20.97errorGetCapabilities result code: 
> 500
> 2023-05-09 12:05:28172.21.20.97errorGetCapabilities result code: 
> 500
> 2023-05-09 12:05:28172.21.20.97errorAn error has been raised when 
> loading WMS GetCapabilities: HTTP Code 400
> 2023-05-09 12:06:02172.21.20.97errorGetCapabilities result code: 
> 500
> 2023-05-09 12:06:03172.21.20.97errorGetCapabilities result code: 
> 500
> 2023-05-09 12:06:03172.21.20.97errorAn error has been raised when 
> loading WMS GetCapabilities: HTTP Code 400
> 2023-05-09 12:06:06172.21.20.97errorGetCapabilities result code: 
> 500
> 2023-05-09 12:07:41[8]Undefined index: repository
> 

Re: [Qgis-user] Lizmap/qgis server : Setting up with PostGIS database

2023-05-09 Thread celati Laurent via QGIS-User
Hello,
Following to my previous message, i share an update of my qgis server and
lizmap messages. For those tests, in addition to the .qgs file, i put on
the server the .qgs.cfg. Is it mandatory to do this ?
Please read below the qgis server and lizmap messages :

*qgis server : *






























*Code:12:10:06 INFO Server[824190]:  New request
***12:10:06 INFO Server[824190]: Request URL:
http://XXX-..fr/cgi-bin/qgis_mapserv.fcgi?map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap_test%2Fzios.qgs=getcapabilities=WMS=1.3.0_User=admin_User_Groups=admins_Override_Filter=1
12:10:06
INFO Server[824190]: Environment:12:10:06 INFO Server[824190]:
12:10:06 INFO
Server[824190]: SERVER_NAME: -X.X.fr
12:10:06 INFO Server[824190]: REQUEST_URI:
/cgi-bin/qgis_mapserv.fcgi?map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap%5Ftest%2Fzios%2Eqgs=getcapabilities=WMS=1%2E3%2E0%5FUser=admin%5FUser%5FGroups=admins%5FOverride%5FFilter=112:10:06
INFO Server[824190]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi12:10:06 INFO
Server[824190]: REMOTE_ADDR: XX.X..X12:10:06 INFO
Server[824190]: SERVER_PORT: 8012:10:06 INFO Server[824190]: QUERY_STRING:
map=%2Fhome%2Fdata%2Fftp%2Ftemplate%2Fqgis%2Flizmap%5Ftest%2Fzios%2Eqgs=getcapabilities=WMS=1%2E3%2E0%5FUser=admin%5FUser%5FGroups=admins%5FOverride%5FFilter=112:10:06
INFO Server[824190]: REQUEST_METHOD: GET12:10:06 INFO Server[824190]:
QGIS_PROJECT_FILE: /home/qgis/projects/world.qgs12:10:06 INFO
Server[824190]: SERVER_PROTOCOL: HTTP/1.112:10:06 INFO Lizmap[824190]:
Request headers provided12:10:06 INFO Lizmap[824190]: No lizmap user groups
in request headers12:10:06 INFO Lizmap[824190]: Lizmap user groups in
parameters : admins12:10:06 INFO Lizmap[824190]: Fetching
/home/data/ftp/template/qgis/lizmap_test/zios.qgs.cfg cfg file with last
modified timestamp : 1683626320.575111912:10:06 INFO Lizmap[824190]: No acl
defined in Lizmap config12:10:06 INFO Server[824190]:
LIZMAP_OVERRIDE_FILTER:112:10:06 INFO Server[824190]:
LIZMAP_USER:admin12:10:06 INFO Server[824190]:
LIZMAP_USER_GROUPS:admins12:10:06 INFO Server[824190]:
MAP:/home/data/ftp/template/qgis/lizmap_test/zios.qgs12:10:06 INFO
Server[824190]: REQUEST:getcapabilities12:10:06 INFO Server[824190]:
SERVICE:WMS12:10:06 INFO Server[824190]: VERSION:1.3.012:10:06 CRITICAL
Server[824190]: Error, Layer(s)
Cigeo_Zios_Po_20170503_ee7aedcd_2ab0_4b3f_bb42_81725199ad65 not valid in
project /home/data/ftp/template/qgis/lizmap_test/zios.qgs12:10:06 WARNING
Server[824190]: Layer(s) not
valid12:10:06 INFO Server[824190]: Request finished in 70
ms*

*Lizmap message  : *
An error occurred while loading the map. Required resources may be
temporarily unavailable. Please try later.
Return to home page.

*Lizmap Logs : *

2023-05-09 12:04:18[8]Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
   171

2023-05-09 12:04:18[8]Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
   171

2023-05-09 12:05:04[8]Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
   171

2023-05-09 12:05:04[8]Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
   171

2023-05-09 12:05:24172.21.20.97errorGetCapabilities result code: 500
2023-05-09 12:05:25172.21.20.97errorGetCapabilities result code: 500
2023-05-09 12:05:28172.21.20.97errorGetCapabilities result code: 500
2023-05-09 12:05:28172.21.20.97errorAn error has been
raised when loading WMS GetCapabilities: HTTP Code 400
2023-05-09 12:06:02172.21.20.97errorGetCapabilities result code: 500
2023-05-09 12:06:03172.21.20.97errorGetCapabilities result code: 500
2023-05-09 12:06:03172.21.20.97errorAn error has been
raised when loading WMS GetCapabilities: HTTP Code 400
2023-05-09 12:06:06172.21.20.97errorGetCapabilities result code: 500
2023-05-09 12:07:41[8]Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
   171

2023-05-09 12:07:41[8]Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
   171



Thanks a lot for your help

Le ven. 5 mai 2023 à 14:24, celati 

Re: [Qgis-user] Lizmap/qgis server : Setting up with PostGIS database

2023-05-05 Thread celati Laurent via QGIS-User
Hello,
Following to my previous message, i validated the ability to connect to the
postgresql server (with pg_isready).
I ' m taking the liberty to paste below an update of qgis server log :
We can see *Connection to database failed **fe_sendauth: no password
supplied*
Do you know the meaning of this message and how to fix this erreur ?
Moreover, what is the meaning of the critical error : *Layer(s) not valid
? *

*14:12:37 INFO Server[778180]:  New request


*14:12:37 INFO Server[778180]: Request URL:
http://xxx.xxx.fr/cgi-bin/qgis_mapserv.fcgi?MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs
*

*14:12:37 INFO Server[778180]: Environment:*

*14:12:37 INFO Server[778180]:
*

*14:12:37 INFO Server[778180]: SERVER_NAME: ..fr
*

*14:12:37 INFO Server[778180]: REQUEST_URI:
/cgi-bin/qgis_mapserv.fcgi?MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs*

*14:12:37 INFO Server[778180]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi*

*14:12:37 INFO Server[778180]: REMOTE_ADDR: 1xxx.xx.xx.xx*

*14:12:37 INFO Server[778180]: SERVER_PORT: 80*

*14:12:37 INFO Server[778180]: QUERY_STRING:
MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs*

*14:12:37 INFO Server[778180]: REQUEST_METHOD: GET*

*14:12:37 INFO Server[778180]: QGIS_PROJECT_FILE:
/home/qgis/projects/world.qgs*

*14:12:37 INFO Server[778180]: SERVER_PROTOCOL: HTTP/1.1*

*14:12:37 INFO Lizmap[778180]: Request headers provided*

*14:12:37 INFO Lizmap[778180]: No lizmap user groups in request headers*

*14:12:37 INFO Server[778180]:
MAP:/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs*

*14:12:37 WARNING PostGIS[778180]: Connection to database failed*

*fe_sendauth: no password supplied*



*14:12:37 CRITICAL Server[778180]: Error, Layer(s)
Ouvrage_a_Realiser_Pt_7249ce6e_1919_4704_8a1c_cce8299e331d not valid in
project /home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs*

*14:12:37 WARNING Server[778180]: *

*Layer(s) not valid*



*14:12:37 INFO Server[778180]: Request finished in 96 ms*

Le ven. 5 mai 2023 à 10:55, celati Laurent  a
écrit :

> Good morning dear all,
>
> i work with debian and apache. Qgis server is working. For example, I can
> see the world.qgs template project with qgis server.
> A getcapabilities request also works. On the other hand, I can't  up to
> now see my project with a postgis table. Whether with qgis server and of
> course with lizmap.
> Below I share the lizmap and  qgis server logs.  I have probably several
> errors.
> Regarding the postgis aspect, I confess that I don't really understand
> what to do as settings in the qgis project. I found a forum talking about
> saving configuration in plain text. What is it exactly? How should I save
> my id/password? I guess with qgis desktop In the window "edit a postgis
> connection" ?. I imagine that everything is set in the Authentication
> section? There are 2 tabs. A configuration and a "basic". Should I put
> basic authentication?
> I share my lizmap logs. Although I think they are less relevant at this
> point than the qgis server logs.
>
> In advance, thanks so much for your really usefull help.
>
> *Log lizmap :*
>
> *2023-05-05 09:34:18 [8] Undefined index: repository
> /var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
> 171*
>
> *Log qgis server :*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *10:29:43 INFO Server[778180]:  New request
> ***10:29:43 INFO Server[778180]: Request URL:
> http://XXX.XXX.fr/cgi-bin/qgis_mapserv.fcgi?MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs=WMS=1.3.0=GetMap=-432786,4372992,3358959,7513746=EPSG:3857=665=551=countries=image/jpeg
> 10:29:43
> INFO Server[778180]: Environment:10:29:43 INFO Server[778180]:
> 10:29:43 INFO
> Server[778180]: SERVER_NAME: XXX-.andra.fr
> 10:29:43 INFO Server[778180]: REQUEST_URI:
> /cgi-bin/qgis_mapserv.fcgi?MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs=WMS=1.3.0=GetMap=-432786,4372992,3358959,7513746=EPSG:3857=665=551=countries=image/jpeg10:29:43
> INFO Server[778180]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi10:29:43 INFO
> Server[778180]: REMOTE_ADDR: 172.21.20.9710:29:43 INFO Server[778180]:
> SERVER_PORT: 8010:29:43 INFO Server[778180]: QUERY_STRING:
> MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs=WMS=1.3.0=GetMap=-432786,4372992,3358959,7513746=EPSG:3857=665=551=countries=image/jpeg10:29:43
> INFO Server[778180]: 

[Qgis-user] Lizmap/qgis server : Setting up with PostGIS database

2023-05-05 Thread celati Laurent via QGIS-User
Good morning dear all,

i work with debian and apache. Qgis server is working. For example, I can
see the world.qgs template project with qgis server.
A getcapabilities request also works. On the other hand, I can't  up to now
see my project with a postgis table. Whether with qgis server and of course
with lizmap.
Below I share the lizmap and  qgis server logs.  I have probably several
errors.
Regarding the postgis aspect, I confess that I don't really understand what
to do as settings in the qgis project. I found a forum talking about saving
configuration in plain text. What is it exactly? How should I save my
id/password? I guess with qgis desktop In the window "edit a postgis
connection" ?. I imagine that everything is set in the Authentication
section? There are 2 tabs. A configuration and a "basic". Should I put
basic authentication?
I share my lizmap logs. Although I think they are less relevant at this
point than the qgis server logs.

In advance, thanks so much for your really usefull help.

*Log lizmap :*

*2023-05-05 09:34:18 [8] Undefined index: repository
/var/www/lizmap/lizmap-web-client-3.6.3/temp/lizmap/www/compiled/templates/modules/admin/server_information_html_t_15.php
171*

*Log qgis server :*

































*10:29:43 INFO Server[778180]:  New request
***10:29:43 INFO Server[778180]: Request URL:
http://XXX.XXX.fr/cgi-bin/qgis_mapserv.fcgi?MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs=WMS=1.3.0=GetMap=-432786,4372992,3358959,7513746=EPSG:3857=665=551=countries=image/jpeg
10:29:43
INFO Server[778180]: Environment:10:29:43 INFO Server[778180]:
10:29:43 INFO
Server[778180]: SERVER_NAME: XXX-.andra.fr
10:29:43 INFO Server[778180]: REQUEST_URI:
/cgi-bin/qgis_mapserv.fcgi?MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs=WMS=1.3.0=GetMap=-432786,4372992,3358959,7513746=EPSG:3857=665=551=countries=image/jpeg10:29:43
INFO Server[778180]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi10:29:43 INFO
Server[778180]: REMOTE_ADDR: 172.21.20.9710:29:43 INFO Server[778180]:
SERVER_PORT: 8010:29:43 INFO Server[778180]: QUERY_STRING:
MAP=/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs=WMS=1.3.0=GetMap=-432786,4372992,3358959,7513746=EPSG:3857=665=551=countries=image/jpeg10:29:43
INFO Server[778180]: REQUEST_METHOD: GET10:29:43 INFO Server[778180]:
QGIS_PROJECT_FILE: /home/qgis/projects/world.qgs10:29:43 INFO
Server[778180]: SERVER_PROTOCOL: HTTP/1.110:29:43 INFO Lizmap[778180]:
Request headers provided10:29:43 INFO Lizmap[778180]: No lizmap user groups
in request headers10:29:43 INFO Server[778180]:
BBOX:-432786,4372992,3358959,751374610:29:43 INFO Server[778180]:
FORMAT:image/jpeg10:29:43 INFO Server[778180]: HEIGHT:55110:29:43 INFO
Server[778180]: LAYERS:countries10:29:43 INFO Server[778180]:
MAP:/home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs10:29:43 INFO
Server[778180]: REQUEST:GetMap10:29:43 INFO Server[778180]:
SERVICE:WMS10:29:43 INFO Server[778180]: SRS:EPSG:385710:29:43 INFO
Server[778180]: VERSION:1.3.010:29:43 INFO Server[778180]:
WIDTH:66510:30:13 WARNING PostGIS[778180]: Connection to database
failedtimeout expired10:30:13 CRITICAL Server[778180]: Error, Layer(s)
XX_Ouvrage_a_Realiser_Pt_8db55b4d_dd42_4d46_b5d1_1cffd2768ae1 not valid
in project /home/data/ftp/template/qgis/lizmap_test/lizmap_test.qgs10:30:13
WARNING Server[778180]: Layer(s) not
valid10:30:14 INFO Server[778180]: Request finished in
30136 ms*
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-04 Thread celati Laurent via QGIS-User
Thanks a lot. It 's works well now.

Le jeu. 4 mai 2023 à 11:37, Etienne Trimaille  a
écrit :

> According to the QGIS documentation :
> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
>
> QGIS_SERVER_LOG_FILE is deprecated and will be removed, in favor of
> QGIS_SERVER_LOG_STDERR.
> You shouldn't use both variables, either one or the other. We recommend
> using the non deprecated one, it's using the normal stderr, like a lot of
> services on a server.
>
> I'm just adding one more important information because it's about your
> server security :
>
> > If you go to
> > http://YOURhost/cgi-bin/qgis_mapserv.fcgi
> > It's qgis server active?
>
> It's indeed needed to debug like this, in order to see HTTP requests. Use
> curl/wget is needed.
>
> But as an important security reminder, the QGIS server URL mustn't be
> accessible from a public URL. Otherwise, it's possible to have sensitive
> data about your server published. Moreover, if the URL of QGIS server is
> published on the internet, then it's possible to totally bypass all user
> permissions and ACL about projects, layers, features visibility which makes
> Lizmap features about user, groups and rights useless.
>
>
> https://docs.lizmap.com/current/en/install/pre_requirements.html#qgis-server-side
>
> Just keep that in mind
>
> Regards,
>
>
>
> Le Jeudi, Mai 04, 2023 10:54 CEST, Antonio Viscomi 
> a écrit:
>
>
>
> Hi Laurent,
> If you go to
>
> http://YOURhost/cgi-bin/qgis_mapserv.fcgi
>
> It's qgis server active?
>
>
> Il gio 4 mag 2023, 10:36 celati Laurent  ha
> scritto:
>
>> Hi,
>> Thanks and sorry to disturb you again. I tried to create manually the
>> file qgislog.log in /var/log/qgis.
>> Then i set chown www-data /var/log/qgis/qgislog.log
>> and sudo chmod 775 /var/log/qgis/qgislog.log
>> I reloaded and restarted apache. But the file qgislog.log is and remains
>> empty.
>> I don't know where the problem come from.
>>
>> Le jeu. 4 mai 2023 à 07:30, Etienne Trimaille  a
>> écrit :
>>
>>> Hi,
>>>
>>> It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated,
>>> you can see it in the documentation
>>> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
>>> QGIS_SERVER_LOG_STDERR will send logs to stderr.
>>>
>>> Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
>>> qgis-user@lists.osgeo.org> a écrit :
>>>
>>>> Laurent,
>>>> Please, try to create the file 'qgislog.log' manually first
>>>> If doesn't works I don't know why
>>>>
>>>> Il mer 3 mag 2023, 18:18 celati Laurent  ha
>>>> scritto:
>>>>
>>>>> Hello,
>>>>> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
>>>>> /var/log/qgis/qgislog.log
>>>>> Then i set chown www-data /var/log/qgis
>>>>> and sudo chmod 775 /var/log/qgis
>>>>>
>>>>> Then a2ensite XXX.XXX.fr
>>>>> Then i have reload apache systemctl reload apache2
>>>>>
>>>>> But still no qgislog file has been created.
>>>>>
>>>>> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
>>>>> écrit :
>>>>>
>>>>>> in additions
>>>>>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>>>>>> sudo chmod 775 /var/log/qgis/qgislog.log
>>>>>>
>>>>>> Saluti
>>>>>>
>>>>>> Antonio
>>>>>>
>>>>>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>>>>>> antovisc...@gmail.com> ha scritto:
>>>>>>
>>>>>>> hi Laurent,
>>>>>>> I set
>>>>>>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>>>>>>> also,
>>>>>>> and works fine for me
>>>>>>>
>>>>>>> Saluti
>>>>>>>
>>>>>>> Antonio
>>>>>>>
>>>>>>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User
>>>>>>>  ha scritto:
>>>>>>>
>>>>>>>> Good afternoon,
>>>>>>>> I work with Debian, Apache. Qgis server 3.30. And lizmap. The
>>>>>>>> lizmap log deals with a problem regarding my qgis server logs.
>>>>>>>> In the 

Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-04 Thread celati Laurent via QGIS-User
Hi,
Thanks and sorry to disturb you again. I tried to create manually the file
qgislog.log in /var/log/qgis.
Then i set chown www-data /var/log/qgis/qgislog.log
and sudo chmod 775 /var/log/qgis/qgislog.log
I reloaded and restarted apache. But the file qgislog.log is and remains
empty.
I don't know where the problem come from.

Le jeu. 4 mai 2023 à 07:30, Etienne Trimaille  a
écrit :

> Hi,
>
> It's still possible to use QGIS_SERVER_LOG_FILE, but it's deprecated, you
> can see it in the documentation
> https://docs.qgis.org/3.28/en/docs/server_manual/config.html#environment-variables
> QGIS_SERVER_LOG_STDERR will send logs to stderr.
>
> Le mer. 3 mai 2023 à 23:53, Antonio Viscomi via QGIS-User <
> qgis-user@lists.osgeo.org> a écrit :
>
>> Laurent,
>> Please, try to create the file 'qgislog.log' manually first
>> If doesn't works I don't know why
>>
>> Il mer 3 mag 2023, 18:18 celati Laurent  ha
>> scritto:
>>
>>> Hello,
>>> Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
>>> /var/log/qgis/qgislog.log
>>> Then i set chown www-data /var/log/qgis
>>> and sudo chmod 775 /var/log/qgis
>>>
>>> Then a2ensite XXX.XXX.fr
>>> Then i have reload apache systemctl reload apache2
>>>
>>> But still no qgislog file has been created.
>>>
>>> Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
>>> écrit :
>>>
>>>> in additions
>>>> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
>>>> sudo chmod 775 /var/log/qgis/qgislog.log
>>>>
>>>> Saluti
>>>>
>>>> Antonio
>>>>
>>>>
>>>> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
>>>> antovisc...@gmail.com> ha scritto:
>>>>
>>>>> hi Laurent,
>>>>> I set
>>>>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>>>>> also,
>>>>> and works fine for me
>>>>>
>>>>> Saluti
>>>>>
>>>>> Antonio
>>>>>
>>>>>
>>>>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
>>>>> qgis-user@lists.osgeo.org> ha scritto:
>>>>>
>>>>>> Good afternoon,
>>>>>> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap
>>>>>> log deals with a problem regarding my qgis server logs.
>>>>>> In the /etc/apache2/sites-available i have created a file
>>>>>> XXX.XXX.conf with ths part of content  :
>>>>>>
>>>>>>   # QGIS log
>>>>>>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>>>>>>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>>>>>>
>>>>>> And i have create the directories that will store the QGIS Server
>>>>>> logs
>>>>>>
>>>>>> mkdir -p /var/log/qgis/
>>>>>> chown www-data:www-data /var/log/qgis
>>>>>>
>>>>>> But, there are never no log file created within this folder. Do you
>>>>>> know why ? Do i have to restart qgis server ?
>>>>>> I know how to restart apache (systemctl restart apache2).
>>>>>> But how to restart qgis server ?
>>>>>>
>>>>>> Thanks a lot for your guidances.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> QGIS-User mailing list
>>>>>> QGIS-User@lists.osgeo.org
>>>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>>>>
>>>>> ___
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : problem with qgis server logs

2023-05-03 Thread celati Laurent via QGIS-User
Hello,
Thanks. As you advice, i set FcgidInitialEnv QGIS_SERVER_LOG_FILE
/var/log/qgis/qgislog.log
Then i set chown www-data /var/log/qgis
and sudo chmod 775 /var/log/qgis

Then a2ensite XXX.XXX.fr
Then i have reload apache systemctl reload apache2

But still no qgislog file has been created.

Le mer. 3 mai 2023 à 17:53, Antonio Viscomi  a
écrit :

> in additions
> sudo chown myuser:wwwdata /var/log/qgis/qgislog.log
> sudo chmod 775 /var/log/qgis/qgislog.log
>
> Saluti
>
> Antonio
>
>
> Il giorno mer 3 mag 2023 alle ore 17:46 Antonio Viscomi <
> antovisc...@gmail.com> ha scritto:
>
>> hi Laurent,
>> I set
>> FcgidInitialEnv QGIS_SERVER_LOG_FILE /var/log/qgis/qgislog.log
>> also,
>> and works fine for me
>>
>> Saluti
>>
>> Antonio
>>
>>
>> Il giorno mer 3 mag 2023 alle ore 17:37 celati Laurent via QGIS-User <
>> qgis-user@lists.osgeo.org> ha scritto:
>>
>>> Good afternoon,
>>> I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap log
>>> deals with a problem regarding my qgis server logs.
>>> In the /etc/apache2/sites-available i have created a file XXX.XXX.conf
>>> with ths part of content  :
>>>
>>>   # QGIS log
>>>   FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
>>>   FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
>>>
>>> And i have create the directories that will store the QGIS Server logs
>>>
>>> mkdir -p /var/log/qgis/
>>> chown www-data:www-data /var/log/qgis
>>>
>>> But, there are never no log file created within this folder. Do you know
>>> why ? Do i have to restart qgis server ?
>>> I know how to restart apache (systemctl restart apache2).
>>> But how to restart qgis server ?
>>>
>>> Thanks a lot for your guidances.
>>>
>>>
>>>
>>>
>>> ___
>>> QGIS-User mailing list
>>> QGIS-User@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis server : problem with qgis server logs

2023-05-03 Thread celati Laurent via QGIS-User
Good afternoon,
I work with Debian, Apache. Qgis server 3.30. And lizmap. The lizmap log
deals with a problem regarding my qgis server logs.
In the /etc/apache2/sites-available i have created a file XXX.XXX.conf with
ths part of content  :

  # QGIS log
  FcgidInitialEnv QGIS_SERVER_LOG_STDERR 1
  FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

And i have create the directories that will store the QGIS Server logs

mkdir -p /var/log/qgis/
chown www-data:www-data /var/log/qgis

But, there are never no log file created within this folder. Do you know
why ? Do i have to restart qgis server ?
I know how to restart apache (systemctl restart apache2).
But how to restart qgis server ?

Thanks a lot for your guidances.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS server : Serve Postgis data ?

2023-03-27 Thread celati Laurent via QGIS-User
Good afternoon,
Following to my previous message, I'm sharing my error. I am unable to
serve a project containing postgis tables. For a first test, I'm just
trying to serve one of the tables contained in my project. Here is the URL
that I defined and tested. I tried to define max and min coordinates (BBOX)
in the spatial reference system in 2154 (Lambert 93).

* 
http://SERVEUR/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/cigeo_forages.qgs=Cigeo_Zios_Po=WMS=1.3.0=GetMap=EPSG:2154=400=200=865347.7454,6820554.3899,886533.8979,6833234.8104
*

Please read below the error message : Internal Server Error



*The server encountered an internal error or misconfiguration and was
unable to complete your request.Please contact the server administrator at
webmaster@localhost to inform them of the time this error occurred, and the
actions you performed just before this error.More information about this
error may be available in the server error log.*
If someone has any idea? To be complete, since the beginning of my tests, I
have never had a log file generated in /var/log/qgis...This folder has been
always remained empty
Thanks a lot.

Le lun. 27 mars 2023 à 11:48, celati Laurent  a
écrit :

> Good morning,
> I have just (finally) validated the installation of Qgis server on our
> Debian server.
> I manage to serve/broadcast the .qgs project and the data made available
> by the community (world.qgs project). These are shp files.
> In parallel with the installation of Lizmap or QWC2, I would like to test
> this time the fact to serve of qgis projects containing postgis tables from
> our database. How to do this ? Especially for the definition of the URL?
> How to define in the URL the sources of the postgis tables? The URL notably
> has a LAYERS&...
> How for example to publish all the postgis tables contained in a project,
> without having to specify each of them in the URL?
> Thank you so much.
>
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis server : install QWC2 and Lizmap on the same server?

2023-03-27 Thread celati Laurent via QGIS-User
0


Dear all,

I succeed in installing qgis server on our Debian server. Before starting
on the installation and documentation of QWC2 and Lizmap, we would have
been interested in a small comparison of these two solutions. In a test
perspective, is it possible to have these 2 solutions installed on the same
Debian server? (for information, we have apache as web server). Or is it
unadviced to attempt this double installation (risk of conflicts in
particular)?

Thanks a lot.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] QGIS server : Serve Postgis data ?

2023-03-27 Thread celati Laurent via QGIS-User
Good morning,
I have just (finally) validated the installation of Qgis server on our
Debian server.
I manage to serve/broadcast the .qgs project and the data made available by
the community (world.qgs project). These are shp files.
In parallel with the installation of Lizmap or QWC2, I would like to test
this time the fact to serve of qgis projects containing postgis tables from
our database. How to do this ? Especially for the definition of the URL?
How to define in the URL the sources of the postgis tables? The URL notably
has a LAYERS&...
How for example to publish all the postgis tables contained in a project,
without having to specify each of them in the URL?
Thank you so much.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-27 Thread celati Laurent via QGIS-User
;= 2.29), libexiv2-27 (>= 0.27.3), libfcgi0ldbl (>=
>>> 2.4.2), libgcc-s1 (>= 3.0), libqgis-core3.10.14 (>= 3.10.2),
>>> libqgis-server3.10.14 (>= 3.10.2), libqt5core5a (>= 5.15.1), libqt5gui5 (>=
>>> 5.3.0) | libqt5gui5-gles (>= 5.3.0), libqt5webkit5 (>= 5.212.0~alpha3),
>>> libqt5widgets5 (>= 5.0.2), libqt5xml5 (>= 5.0.2), libstdc++6 (>=
>>> 5.2)Conflicts: qgis-mapserverDescription: QGIS server providing various OGC
>>> services QGIS is a Geographic Information System (GIS) which manages,
>>> analyzes and display databases of geographic information. This package
>>> contains the QGIS server.Homepage: https://qgis.org/ <https://qgis.org/>*
>>>
>>> Regarding the debian version installed :
>>> lsb_release -a
>>> No LSB modules are available.
>>> Distributor ID: Debian
>>> Description:Debian GNU/Linux 11 (bullseye)
>>> Release:11
>>> Codename:   bullseye
>>>
>>>
>>> Within the qgis.demo.conf, i took the liberty to change the IP value of
>>> the server by the name of the server.
>>> Then :
>>> root@XX:/etc/apache2/sites-available# a2ensite 
>>> ERROR: Site XX does not exist!
>>>
>>> Then. After a restart of Apache. I get this error message :
>>> root@X:/etc/apache2/sites-available# curl
>>> .fr/cgi-bin/qgis_mapserv.fcgi
>>> Project file error
>>>
>>> Thanks a lot for your help.
>>>
>>> Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <
>>> r.agui...@utwente.nl> a écrit :
>>>
>>>> Hi,
>>>>
>>>>
>>>>
>>>> There is a helpful material at:
>>>> https://github.com/elpaso/qgis3-server-vagrant,
>>>>
>>>> Also a docker container image at:
>>>> https://github.com/elpaso/qgis-server-docker.
>>>>
>>>> Perhaps you could use this material as a starting point.
>>>>
>>>> Hope this helps.
>>>>
>>>>
>>>>
>>>> Best,
>>>>
>>>>
>>>>
>>>> Rosa
>>>>
>>>>
>>>>
>>>> -
>>>>
>>>> Dr. Rosa Aguilar
>>>>
>>>> University of Twente
>>>>
>>>> Faculty of Geoinformation Science and Earth Observation
>>>>
>>>> Connect with me on LinkedIn
>>>> <https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
>>>>
>>>> https://rosaguilar.github.io
>>>>
>>>> -
>>>>
>>>> The essential is invisible to the eye. Saint-Exupéry
>>>>
>>>>
>>>>
>>>> *From:* QGIS-User  *On Behalf Of *celati
>>>> Laurent via QGIS-User
>>>> *Sent:* Wednesday, March 15, 2023 4:23 PM
>>>> *To:* qgis-user 
>>>> *Subject:* [Qgis-user] Qgis server : install on Linux Debian
>>>>
>>>>
>>>>
>>>> Good afternnon,
>>>>
>>>>
>>>> I want to install Qgis server on my Linux Debian server virtual .For
>>>> now, it's not working.
>>>> FYI, I already have a working apache server and used for geoserver and
>>>> geonetwork.
>>>>
>>>> I followed the Qgis server doc/tutorial:
>>>>
>>>>
>>>> https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html
>>>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Ftraining_manual%2Fqgis_server%2Finstall.html=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298340593%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=rRTqcYX4IWpYNx2APq5UzngB5idQy5WccQsLsEzR8Ys%3D=0>
>>>>
>>>> https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
>>>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Fserver_manual%2Fgetting_started.html%23installation-on-debian-based-systems=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298360503%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-26 Thread celati Laurent via QGIS-User
_release -a
>> No LSB modules are available.
>> Distributor ID: Debian
>> Description:Debian GNU/Linux 11 (bullseye)
>> Release:11
>> Codename:   bullseye
>>
>>
>> Within the qgis.demo.conf, i took the liberty to change the IP value of
>> the server by the name of the server.
>> Then :
>> root@XX:/etc/apache2/sites-available# a2ensite 
>> ERROR: Site XX does not exist!
>>
>> Then. After a restart of Apache. I get this error message :
>> root@X:/etc/apache2/sites-available# curl
>> .fr/cgi-bin/qgis_mapserv.fcgi
>> Project file error
>>
>> Thanks a lot for your help.
>>
>> Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <
>> r.agui...@utwente.nl> a écrit :
>>
>>> Hi,
>>>
>>>
>>>
>>> There is a helpful material at:
>>> https://github.com/elpaso/qgis3-server-vagrant,
>>>
>>> Also a docker container image at:
>>> https://github.com/elpaso/qgis-server-docker.
>>>
>>> Perhaps you could use this material as a starting point.
>>>
>>> Hope this helps.
>>>
>>>
>>>
>>> Best,
>>>
>>>
>>>
>>> Rosa
>>>
>>>
>>>
>>> -
>>>
>>> Dr. Rosa Aguilar
>>>
>>> University of Twente
>>>
>>> Faculty of Geoinformation Science and Earth Observation
>>>
>>> Connect with me on LinkedIn
>>> <https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
>>>
>>> https://rosaguilar.github.io
>>>
>>> -
>>>
>>> The essential is invisible to the eye. Saint-Exupéry
>>>
>>>
>>>
>>> *From:* QGIS-User  *On Behalf Of *celati
>>> Laurent via QGIS-User
>>> *Sent:* Wednesday, March 15, 2023 4:23 PM
>>> *To:* qgis-user 
>>> *Subject:* [Qgis-user] Qgis server : install on Linux Debian
>>>
>>>
>>>
>>> Good afternnon,
>>>
>>>
>>> I want to install Qgis server on my Linux Debian server virtual .For
>>> now, it's not working.
>>> FYI, I already have a working apache server and used for geoserver and
>>> geonetwork.
>>>
>>> I followed the Qgis server doc/tutorial:
>>>
>>>
>>> https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html
>>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Ftraining_manual%2Fqgis_server%2Finstall.html=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298340593%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=rRTqcYX4IWpYNx2APq5UzngB5idQy5WccQsLsEzR8Ys%3D=0>
>>>
>>> https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
>>> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Fserver_manual%2Fgetting_started.html%23installation-on-debian-based-systems=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298360503%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=jh35omGXX%2FoArpmE234Xr%2BxuHzVDflxKav8EVzWpHXA%3D=0>
>>>
>>> FYI, when I test the executable, here is the message.The version seems
>>> to be qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *[code]root@XX:/usr/lib/cgi-bin#
>>> /usr/lib/cgi-bin/qgis_mapserv.fcgi --version Application path not
>>> initialized Application path not initialized Application path not
>>> initialized QStandardPaths: runtime directory '/run/user/1001' is not owned
>>> by UID 0, but a directory permissions 0700 owned by UID 1001 GID 1001
>>> Warning 1: Unable to find ECW driver to unload from GDAL_SKIP environment
>>> variable. Warning 1: Unable to find ECW driver to unload from GDAL_SKIP
>>> environment variable. Warning 1: 

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-23 Thread celati Laurent via QGIS-User
Good morning,
Thanks a lot for your message.

I uninstalled everything I had installed up to now (from the Debian
repository)  which only offered the qgis server 3.10 version.
I added the official qgis repository which allowed to install the version
of qgis server 3.30. For information,  the qgis project that I am trying to
serve is version 3.28 and not 3.30.
This is the current error message I am getting now:











* curl
http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities
<http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities>[1]
395943[2] 395944root@SERVEUR_NAME:/home/qgis/projects# http://www.opengis.net/ogc
<http://www.opengis.net/ogc>" version="1.3.0">  Please add or check the value of the REQUEST
parameter^C[1]- Done curl
http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS
<http://SERVEUR_NAME/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS>[2]+ Finished
VERSION=1.3.0*
Do you know what is the request parameter within the URL ?
Someone can help me? Thanks a lot.

Le ven. 17 mars 2023 à 13:08, celati Laurent  a
écrit :

> Good afternoon,
> First, thank you so much for your replies.
> I'm trying to give additional/updated inputs.
> I confirm to you that i installed the server thanks to a `apt install
> qgis-server` command.
> Please read the results when i tape this command :
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *root@xx:/etc/apache2/sites-available# dpkg -s qgis-serverPackage:
> qgis-serverStatus: install ok installedPriority: optionalSection:
> scienceInstalled-Size: 9019Maintainer: Debian GIS Project
>  >Architecture: amd64Source:
> qgisVersion: 3.10.14+dfsg-1Replaces: qgis-mapserverProvides:
> qgis-mapserverDepends: python3-qgis (= 3.10.14+dfsg-1), qgis-providers (=
> 3.10.14+dfsg-1), libc6 (>= 2.29), libexiv2-27 (>= 0.27.3), libfcgi0ldbl (>=
> 2.4.2), libgcc-s1 (>= 3.0), libqgis-core3.10.14 (>= 3.10.2),
> libqgis-server3.10.14 (>= 3.10.2), libqt5core5a (>= 5.15.1), libqt5gui5 (>=
> 5.3.0) | libqt5gui5-gles (>= 5.3.0), libqt5webkit5 (>= 5.212.0~alpha3),
> libqt5widgets5 (>= 5.0.2), libqt5xml5 (>= 5.0.2), libstdc++6 (>=
> 5.2)Conflicts: qgis-mapserverDescription: QGIS server providing various OGC
> services QGIS is a Geographic Information System (GIS) which manages,
> analyzes and display databases of geographic information. This package
> contains the QGIS server.Homepage: https://qgis.org/ <https://qgis.org/>*
>
> Regarding the debian version installed :
> lsb_release -a
> No LSB modules are available.
> Distributor ID: Debian
> Description:Debian GNU/Linux 11 (bullseye)
> Release:11
> Codename:   bullseye
>
>
> Within the qgis.demo.conf, i took the liberty to change the IP value of
> the server by the name of the server.
> Then :
> root@XX:/etc/apache2/sites-available# a2ensite 
> ERROR: Site XX does not exist!
>
> Then. After a restart of Apache. I get this error message :
> root@X:/etc/apache2/sites-available# curl
> .fr/cgi-bin/qgis_mapserv.fcgi
> Project file error
>
> Thanks a lot for your help.
>
> Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <
> r.agui...@utwente.nl> a écrit :
>
>> Hi,
>>
>>
>>
>> There is a helpful material at:
>> https://github.com/elpaso/qgis3-server-vagrant,
>>
>> Also a docker container image at:
>> https://github.com/elpaso/qgis-server-docker.
>>
>> Perhaps you could use this material as a starting point.
>>
>> Hope this helps.
>>
>>
>>
>> Best,
>>
>>
>>
>> Rosa
>>
>>
>>
>> -----
>>
>> Dr. Rosa Aguilar
>>
>> University of Twente
>>
>> Faculty of Geoinformation Science and Earth Observation
>>
>> Connect with me on LinkedIn
>> <https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
>>
>> https://rosaguilar.github.io
>>
>> -
>>
>> The essential is invisible to the eye. Saint-Exupéry
>>
>>
>>
>> *From:* QGIS-User  *On Behalf Of *celati
>> Laurent via QGIS-User
>> *Sent:* Wednesday, March 15, 2023 4:23 PM
>> *To:* qgis-user 
>> *Subject:* [Qgis-user] Qgis server : install on Linux Debian
>>
>>
>>
>> Good afternnon,
>>
>>
>> I want to install Qgis server on my Linux Debian server virtual .For now,
>> it's not working.
>> FYI, I already have a working apache server and used for geoserver and
>>

Re: [Qgis-user] Qgis server : install on Linux Debian

2023-03-17 Thread celati Laurent via QGIS-User
Good afternoon,
First, thank you so much for your replies.
I'm trying to give additional/updated inputs.
I confirm to you that i installed the server thanks to a `apt install
qgis-server` command.
Please read the results when i tape this command :


















*root@xx:/etc/apache2/sites-available# dpkg -s qgis-serverPackage:
qgis-serverStatus: install ok installedPriority: optionalSection:
scienceInstalled-Size: 9019Maintainer: Debian GIS Project
>Architecture: amd64Source:
qgisVersion: 3.10.14+dfsg-1Replaces: qgis-mapserverProvides:
qgis-mapserverDepends: python3-qgis (= 3.10.14+dfsg-1), qgis-providers (=
3.10.14+dfsg-1), libc6 (>= 2.29), libexiv2-27 (>= 0.27.3), libfcgi0ldbl (>=
2.4.2), libgcc-s1 (>= 3.0), libqgis-core3.10.14 (>= 3.10.2),
libqgis-server3.10.14 (>= 3.10.2), libqt5core5a (>= 5.15.1), libqt5gui5 (>=
5.3.0) | libqt5gui5-gles (>= 5.3.0), libqt5webkit5 (>= 5.212.0~alpha3),
libqt5widgets5 (>= 5.0.2), libqt5xml5 (>= 5.0.2), libstdc++6 (>=
5.2)Conflicts: qgis-mapserverDescription: QGIS server providing various OGC
services QGIS is a Geographic Information System (GIS) which manages,
analyzes and display databases of geographic information. This package
contains the QGIS server.Homepage: https://qgis.org/ <https://qgis.org/>*

Regarding the debian version installed :
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:Debian GNU/Linux 11 (bullseye)
Release:11
Codename:   bullseye


Within the qgis.demo.conf, i took the liberty to change the IP value of the
server by the name of the server.
Then :
root@XX:/etc/apache2/sites-available# a2ensite 
ERROR: Site XX does not exist!

Then. After a restart of Apache. I get this error message :
root@X:/etc/apache2/sites-available# curl
.fr/cgi-bin/qgis_mapserv.fcgi
Project file error

Thanks a lot for your help.

Le mer. 15 mars 2023 à 20:28, Aguilar Bolivar, Rosa (UT-ITC) <
r.agui...@utwente.nl> a écrit :

> Hi,
>
>
>
> There is a helpful material at:
> https://github.com/elpaso/qgis3-server-vagrant,
>
> Also a docker container image at:
> https://github.com/elpaso/qgis-server-docker.
>
> Perhaps you could use this material as a starting point.
>
> Hope this helps.
>
>
>
> Best,
>
>
>
> Rosa
>
>
>
> -
>
> Dr. Rosa Aguilar
>
> University of Twente
>
> Faculty of Geoinformation Science and Earth Observation
>
> Connect with me on LinkedIn
> <https://www.linkedin.com/in/rosamaguilar/?locale=en_US>
>
> https://rosaguilar.github.io
>
> ---------
>
> The essential is invisible to the eye. Saint-Exupéry
>
>
>
> *From:* QGIS-User  *On Behalf Of *celati
> Laurent via QGIS-User
> *Sent:* Wednesday, March 15, 2023 4:23 PM
> *To:* qgis-user 
> *Subject:* [Qgis-user] Qgis server : install on Linux Debian
>
>
>
> Good afternnon,
>
>
> I want to install Qgis server on my Linux Debian server virtual .For now,
> it's not working.
> FYI, I already have a working apache server and used for geoserver and
> geonetwork.
>
> I followed the Qgis server doc/tutorial:
>
> https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Ftraining_manual%2Fqgis_server%2Finstall.html=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298340593%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=rRTqcYX4IWpYNx2APq5UzngB5idQy5WccQsLsEzR8Ys%3D=0>
>
> https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.qgis.org%2F3.22%2Fen%2Fdocs%2Fserver_manual%2Fgetting_started.html%23installation-on-debian-based-systems=05%7C01%7Cr.aguilar%40utwente.nl%7C9d9e7a09e0af46dcb9e308db25694617%7C723246a1c3f543c5acdc43adb404ac4d%7C0%7C0%7C638144906298360503%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=jh35omGXX%2FoArpmE234Xr%2BxuHzVDflxKav8EVzWpHXA%3D=0>
>
> FYI, when I test the executable, here is the message.The version seems to
> be qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *[code]root@XX:/usr/lib/cgi-bin#
> /usr/lib/cgi-bin/qgis_mapserv.fcgi --version Application path not
> initialized Application path not initialized Application path not
> initiali

[Qgis-user] Qgis server : install on Linux Debian

2023-03-15 Thread celati Laurent via QGIS-User
Good afternnon,

I want to install Qgis server on my Linux Debian server virtual .For now,
it's not working.
FYI, I already have a working apache server and used for geoserver and
geonetwork.

I followed the Qgis server doc/tutorial:
https://docs.qgis.org/3.22/en/docs/training_manual/qgis_server/install.html
https://docs.qgis.org/3.22/en/docs/server_manual/getting_started.html#installation-on-debian-based-systems

FYI, when I test the executable, here is the message.The version seems to
be qgis 3.10 (and not 3.22). And the status message is 200 and not 400.
























*[code]root@XX:/usr/lib/cgi-bin# /usr/lib/cgi-bin/qgis_mapserv.fcgi
--versionApplication path not initializedApplication path not
initializedApplication path not initializedQStandardPaths: runtime
directory '/run/user/1001' is not owned by UID 0, but a directory
permissions 0700 owned by UID 1001 GID 1001Warning 1: Unable to find ECW
driver to unload from GDAL_SKIP environment variable.Warning 1: Unable to
find ECW driver to unload from GDAL_SKIP environment variable.Warning 1:
Unable to find driver JP2ECW to unload from GDAL_SKIP environment
variable.Initializing server modules from "/usr/lib/qgis/server""Checking
/usr/lib/qgis/server for native services modules""Loading native module
/usr/lib/qgis/server/libdummy.so""Loading native module
/usr/lib/qgis/server/libwcs.so""Loading native module
/usr/lib/qgis/server/libwfs.so""Loading native module
/usr/lib/qgis/server/libwfs3.so""Loading native module
/usr/lib/qgis/server/libwms.so""Loading native module
/usr/lib/qgis/server/libwmts.so":1: DeprecationWarning: setapi() is
deprecatedLogged warning: Loading a file that was saved with an older
version of qgis (saved in 0.0.0, loaded in 3.10.14-A Coruña). Problems may
occur.Content Length: 206Content-Type: text/xml; charset=utf-8[b]Server:
Qgis FCGI server - QGis version 3.10.14-A CoruñaStatus:
200http://www.opengis.net/ogc
" version="1.3.0">Service unknown or
unsupported*

I installed mod_fcgid successfully.
As I already Apache installed. What should I do ? I would like to be able
to coexist geoserver, geonetwork and qgis server. I would like to be able
to add for qgis server a https://SERVEUR_NAME/qgis_server URL.

I created a qgis.demo.conf file under etc/apache2/sites-available. I only
replaced ServerName with my server's IP. I haven't changed anything else.
Given my needs and working environment, should I modify the first line of
the file? :
[





*I created the directories that will store the QGIS server logs and the
authentication database logs:[code]mkdir -p /var/log/qgis/chown
www-data:www-data /var/log/qgismkdir -p /home/qgis/qgisserverdbchown
www-data:www-data /home/qgis/qgisserverdb*

I enabled fgcid mode and virtual host. But after restarting apache, I got
nothing.










*root@:/etc# curl
http://XXX.fr/cgi-bin/qgis_mapserv.fcgi
301 Moved
PermanentlyMoved PermanentlyThe document
has moved https://XXXcgi-bin/qgis_mapserv.fcgi
">here.Apache/2.4.54
(Debian) Server at XXX.fr Port 80[/code]*

Via the browser, when I try
*X.fr/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS=1.3.0=GetCapabilities*
It says Site Unreachable.

If someone could help me? THANKS.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis 3.22 composer : link a spatial extent (bookmark) to a map object?

2023-03-13 Thread celati Laurent via QGIS-User
Good afternoon,

With Qgis 3.22, I have to make ten maps (with layout/composer). Each of
them have their own spatial extents. For each of these extents, I created
geo-bookmarks via the main interface of Qgis. My wish is to be able now via
the layout/composer interface, to link for each of these maps the
geobookmark/the defined spatial extent. The idea would be that I could
activate this feature automatically (a bit like an atlas). The complexity
here is that I can't use the atlas functionality because I don't have any
coverage GIS layers that correspond to these spatial extents.

Via the properties item of the map object, there is a sub-menu entitled
"extents" (min x/y and max x/y). But I don't know what expression I should
define for my needs (maybe an expression using the "@map_extent" variable)?
I also noticed that the properties item of the map object also has an icon
allowing to define a geo-bookmark to this map object. It is very good. How
could I extend this functionality automatically for all my 10 maps?

Thanks a lot.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis : Create Package (GPK) with custom style and Spatial area?

2022-12-16 Thread celati Laurent via QGIS-User
Hello,
With Qgis 3, With the tool available in "Processing" "Layer packaging",
package layers within a GeoPackage database by saving the style. But unless
I am wrong, it does not allow to customize the export to a custom spatial
Area of Intrest (for example area of the canvas).
Conversely, via the "layers panel", you can right-click -> export as save
in a GPK, to a personalized spatial footprint. But at this level, I don't
feel it's possible to keep the style.

=> Would there be a tool in Qgis combining these 2 possibilities? To
package in a GPK a selection of layers, to save not only the layers but
their styles defined in the same personalized extent (for exemple the
extent of the canvas ? )

Thanks a lot.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis 3.28 : Relational value form (spatial intersection)

2022-12-13 Thread celati Laurent via QGIS-User
Good morning,
With qgis 3.28 I have a point layer (boreholes) . And I have a polygonal
layer (departments/districts). My goal would be to via Qgis (right click
boreholes point layer -> attributes form) to automatically fill the
"department" field of the boreholes layer. The filling would be done via
spatial intersection. The field of the departments table that I would like
to retrieve is called "nom_dep". I am attaching a screenshot of my settings.
[image: image.png]


For the "layer" parameter, I filled the department layer For the "key
column" parameter, I entered the primary key (gid) of the department column
For the parameter column of values, I put the field "nom_dep" from the
table of departments

I didn't fill in anything for the "Column description" parameter.

In the "Filter expression" section I filled like that:

aggregate(
layer:='AdminExpressDept_AOI_Po_20210331',
aggregate:='concatenate_unique',
expression:=attribute('dep_name'),
concatenator:=',',
filter:=intersects(geometry(@parent), $geometry))


I have no error message. But it does not work. I do not see the values of
departments entered in the field of the table of boreholes. Did I make a
mistake? Should another Qgis filter expression be used?

Thanks.
___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] 'overlay_intersects' filter with query builder ?

2022-11-07 Thread celati Laurent via Qgis-user
Good morning,
In order to filter a data and display only the part of the data that
intersects another data, I knew the expression 'overlay_intersects'. But
this function does not seem to work thanks to the query builder (right
click on the layer -> properties -> Source). How to perform such a filter
with the query builder? What is the syntax to use with the query builder?
Is there any documentation/guidance?
Thanks.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] qgis : how to load/point to a postgis table within expression interface ?

2022-11-04 Thread celati Laurent via Qgis-user
Good Morning,
With qgis 3,  In order to limit the number of labels to my town table
intersecting my area of interest polygon, I wanted to test the qgis
expression called: "overlay_intersects" via the settings / label /
rendering menu . The syntax of the expression seems quite simple. But when
I do an "overlay_intersects("my_table")" the expression is said to be
invalid and my postgis table could not be loaded.
 What is good practice with qgis expression interface to load, point to a
postgis table? Do I need to enter the server name? the name of the db? of
the scheme? FYI, my common table is stored in 'admin' schema.

Thanks.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user