3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
254 stars 143 forks source link

position in localization by layer[Bug]: #3639

Closed enricogulli closed 1 year ago

enricogulli commented 1 year ago

What is the bug?

In lizmap when I perform a localization by layer, the result is displaced with respect to the position of the object. On the qgis project the query search works fine. The layers, like the project are all set to the same reference system. The error seems to be shift, the same for all objects.

Steps to reproduce the issue

  1. In QGIS desktop I set up the GIS project and project properties for QGIS server.
  2. I open the lizmap plugin and set the various options
  3. In the "locate from layer" section I set the layers to be used for the search
  4. I open the GIS web project and perform the search: the result does not work

Versions

Versions :

Check Lizmap plugin

QGIS server version, only if the section above doesn't mention the QGIS Server version

No response

Operating system

Ubuntu 22.04 jammy

Browsers

Firefox, Chrome

Browsers version

Firefox 111.0.1

Relevant log output

/lizmap/index.php/view/map?repository=gest&project=patr
array (   'repository' => 'gest',   'project' => 'patr',   'module' => 'view',   'action' => 'map:index', )

    0   Lizmap\Project\Project->__construct()   /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Project/Repository.php : 294
    1   Lizmap\Project\Repository->getProject() /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Project/Repository.php : 388
    2   Lizmap\Project\Repository->getProjectsMetadata()    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/classes/lizmapRepository.class.php : 166
    3   lizmapRepository->getProjectsMetadata() /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php : 173
    4   Lizmap\Server\Server->getLizmapRepositories()   /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php : 255
    5   Lizmap\Server\Server->getLizmapMetadata()   /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Server/Server.php : 28
    6   Lizmap\Server\Server->__construct() /var/www/lizmap-web-client-3.6.2/lizmap/modules/view/controllers/lizMap.classic.php : 69
    7   lizMapCtrl->index() /var/www/lizmap-web-client-3.6.2/lizmap/modules/view/controllers/map.classic.php : 21
    8   mapCtrl->index()    /var/www/lizmap-web-client-3.6.2/lizmap/vendor/jelix/jelix/lib/jelix/core/jCoordinator.class.php : 266
    9   jCoordinator->process() /var/www/lizmap-web-client-3.6.2/lizmap/www/index.php : 23
2023-04-18 18:23:35 10.0.33.11  [0] The file /var/www/lizmap-web-client-3.6.2/lizmap/install/gest/utc_ip.qgs.cfg cannot be decoded. /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Project/Project.php  135
    /lizmap/index.php
array (   'module' => 'view',   'action' => 'default:index', )

    0   Lizmap\Project\Project->__construct()   /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Project/Repository.php : 294
    1   Lizmap\Project\Repository->getProject() /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Project/Repository.php : 388
    2   Lizmap\Project\Repository->getProjectsMetadata()    /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/classes/lizmapRepository.class.php : 166
    3   lizmapRepository->getProjectsMetadata() /var/www/lizmap-web-client-3.6.2/lizmap/modules/view/zones/main_view.zone.php : 60
    4   main_viewZone->_prepareTpl()    /var/www/lizmap-web-client-3.6.2/lizmap/vendor/jelix/jelix/lib/jelix/utils/jZone.class.php : 282
    5   jZone->_createContent() /var/www/lizmap-web-client-3.6.2/lizmap/vendor/jelix/jelix/lib/jelix/utils/jZone.class.php : 217
    6   jZone->getContent() /var/www/lizmap-web-client-3.6.2/lizmap/vendor/jelix/jelix/lib/jelix/utils/jZone.class.php : 373
    7   jZone::_callZone()  /var/www/lizmap-web-client-3.6.2/lizmap/vendor/jelix/jelix/lib/jelix/utils/jZone.class.php : 114
    8   jZone::get()    /var/www/lizmap-web-client-3.6.2/lizmap/vendor/jelix/jelix/lib/jelix/tpl/jTpl.class.php : 52
    9   jTpl->assignZone()  /var/www/lizmap-web-client-3.6.2/lizmap/modules/view/controllers/default.classic.php : 139
    10  defaultCtrl->index()    /var/www/lizmap-web-client-3.6.2/lizmap/vendor/jelix/jelix/lib/jelix/core/jCoordinator.class.php : 266
    11  jCoordinator->process() /var/www/lizmap-web-client-3.6.2/lizmap/www/index.php : 23
2023-04-18 18:27:46 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:27:53 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:27:53 10.0.33.11  error   An error has been raised when loading WMS GetCapabilities: HTTP Code 400
2023-04-18 18:28:00 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:29:17 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:29:24 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:29:31 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:29:31 10.0.33.11  error   An error has been raised when loading WMS GetCapabilities: HTTP Code 400
2023-04-18 18:29:47 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:29:55 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:29:55 10.0.33.11  error   An error has been raised when loading WMS GetCapabilities: HTTP Code 400
2023-04-18 18:30:05 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:30:44 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:30:51 10.0.33.11  error   GetCapabilities result code: 500
2023-04-18 18:30:51 10.0.33.11  error   An error has been raised when loading WMS GetCapabilities: HTTP Code 400
2023-04-18 18:30:58 10.0.33.11  error   GetCapabilities result code: 500
2023-04-19 10:46:36 [2] SQLite3::loadExtension(): SQLite Extension are disabled /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Project/Project.php  2254

2023-04-19 10:46:36 [2] SQLite3::loadExtension(): SQLite Extension are disabled /var/www/lizmap-web-client-3.6.2/lizmap/modules/lizmap/lib/Project/Project.php  2265

2023-04-19 10:46:36 10.0.33.11  error   Spatialite is not available
enricogulli commented 1 year ago

you need to create the project in EPSG: 4326 and possibly project the layers.