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

no grid in print output for crs 4326 #1396

Closed josemvm closed 1 year ago

josemvm commented 4 years ago

lizmap 3.3 and master QGIS project 2.18.28 QGIS server 2.18.28 and 3.4.13

thanks in advance for your attention!

josemvm commented 4 years ago

Steps to reproduce the issue

create a new project, add a single layer with crs 4326 and activate the "draw grid"...

everything works fine for all other crs (e.g. 3857, 3763, ...)

josemvm commented 4 years ago

hi

please, can anyone pay any attention to this trouble? we are talking about the main geographic coordinate system, "World Geodetic System" (WGS 84)

thanks

rldhont commented 4 years ago

@josemvm it's an issue in the way Lizmap is using scales...

rldhont commented 4 years ago

I think lizmap web client 3.2 is also affected

josemvm commented 4 years ago

@rldhont yes, i can confirm, lizmap 3.2 is also affected

nboisteault commented 1 year ago

Hi @josemvm Could you test with master branch please?

josemvm commented 1 year ago

hi @nboisteault i have tested with 3.6.1 and it works fine! grid

josemvm commented 1 year ago

@nboisteault with master (3.7.0-pre.6077) the grid appears but no points...

grid_

Gustry commented 1 year ago

@josemvm Thanks for testing LWC 3.7 Without more details on the last screenshot, it's impossible to debug. We do some testing (automatic and manual) on a few Lizmap Web Client instances https://demo.snap.lizmap.com/lizmap_3_7/ (3_6, 3_5...)

From my tests last Friday, I got my GIS layers printed from me, CF https://github.com/3liz/lizmap-web-client/pull/3411

josemvm commented 1 year ago

hi @Gustry no logs in console browser qgis server log:


09:56:50 INFO Server[11411]: Request URL: http://127.0.0.1/cgi-bin/qgis_mapserv.fcgi
09:56:50 INFO Server[11411]: Environment:
09:56:50 INFO Server[11411]: ------------------------------------------------
09:56:50 INFO Server[11411]: SERVER_NAME: 127.0.0.1
09:56:50 INFO Server[11411]: REQUEST_URI: /cgi-bin/qgis_mapserv.fcgi
09:56:50 INFO Server[11411]: SCRIPT_NAME: /cgi-bin/qgis_mapserv.fcgi
09:56:50 INFO Server[11411]: REMOTE_ADDR: 127.0.0.1
09:56:50 INFO Server[11411]: SERVER_PORT: 80
09:56:50 INFO Server[11411]: QUERY_STRING:
09:56:50 INFO Server[11411]: CONTENT_TYPE: application/x-www-form-urlencoded
09:56:50 INFO Server[11411]: REQUEST_METHOD: POST
09:56:50 INFO Server[11411]: SERVER_PROTOCOL: HTTP/1.1
09:56:50 WARNING Server[11411]: Error parsing post data as XML: at line 1, column 1: error occurred while parsing element. Assuming urlencoded query string sent in the post body.
09:56:50 INFO WfsOutputExtension[11411]: requestReady ran in 0.0s
09:56:50 INFO Lizmap[11411]: Request headers provided
09:56:50 INFO Lizmap[11411]: No lizmap user groups in request headers
09:56:50 INFO Lizmap[11411]: Lizmap user groups in parameters : admins
09:56:50 INFO Lizmap[11411]: Fetching /var/www/html/lizmap-web-client/lizmap/install/testes/grid.qgs.cfg cfg file with last modified timestamp : 1675675833.0
09:56:50 INFO Lizmap[11411]: No acl defined in Lizmap config
09:56:50 INFO Server[11411]: DPI:100
09:56:50 INFO Server[11411]: FORMAT:pdf
09:56:50 INFO Server[11411]: LIZMAP_OVERRIDE_FILTER:1
09:56:50 INFO Server[11411]: LIZMAP_USER:admin
09:56:50 INFO Server[11411]: LIZMAP_USER_GROUPS:admins
09:56:50 INFO Server[11411]: MAP:/var/www/html/lizmap-web-client/lizmap/install/testes/grid.qgs
09:56:50 INFO Server[11411]: MAP0:EXTENT:-7.969634282414649,38.757941419610006,-7.884743488065355,38.799609248090064
09:56:50 INFO Server[11411]: MAP0:LAYERS:queimas_queimadas_geom_v
09:56:50 INFO Server[11411]: MAP0:OPACITIES:255
09:56:50 INFO Server[11411]: MAP0:SCALE:50000
09:56:50 INFO Server[11411]: MAP0:STYLES:padrão
09:56:50 INFO Server[11411]: REQUEST:getprint
09:56:50 INFO Server[11411]: SERVICE:WMS
09:56:50 INFO Server[11411]: SRS:EPSG:4326
09:56:50 INFO Server[11411]: TEMPLATE:grid
09:56:50 INFO Server[11411]: TRANSPARENT:true
09:56:50 INFO Server[11411]: VERSION:1.3.0
09:56:50 INFO AccessControlFilter[11411]: QgsAccessControlFilter plugin default layerPermissions called
09:56:50 INFO Lizmap[11411]: Request headers provided
09:56:50 INFO Lizmap[11411]: No lizmap user groups in request headers
09:56:50 INFO Lizmap[11411]: Lizmap user groups in parameters : admins
09:56:50 INFO Lizmap[11411]: Request headers provided
09:56:50 INFO Lizmap[11411]: No lizmap user login in request headers
09:56:50 INFO Lizmap[11411]: Lizmap user login in parameters : admin
09:56:50 INFO Lizmap[11411]: Fetching /var/www/html/lizmap-web-client/lizmap/install/testes/grid.qgs.cfg cfg file with last modified timestamp : 1675675833.0
09:56:50 INFO Lizmap[11411]: Lizmap config has no editionLayers
09:56:50 INFO Lizmap[11411]: No Lizmap layer group visibility for: queimas_queimadas_geom_v
09:56:50 INFO Server[11411]: WMS Request parameters:
09:56:50 INFO Server[11411]:  - SRS : EPSG:4326
09:56:50 INFO Server[11411]:  - FORMAT : pdf
09:56:50 INFO Server[11411]:  - TRANSPARENT : true
09:56:50 INFO Server[11411]:  - DPI : 100
09:56:50 INFO Server[11411]:  - TEMPLATE : grid
09:56:50 INFO Server[11411]:  - VERSION : 1.3.0
09:56:50 INFO Lizmap[11411]: Lizmap layerFilterSubsetString
09:56:50 INFO Lizmap[11411]: Request headers provided
09:56:50 INFO Lizmap[11411]: No lizmap override filter in request headers
09:56:50 INFO Lizmap[11411]: Lizmap override filter in parameters
09:56:50 INFO Lizmap[11411]: get_lizmap_layer_filter ran in 0.0s
09:56:50 INFO AccessControlFilter[11411]: QgsAccessControlFilter plugin default layerFilterSubsetString called
09:56:50 INFO AccessControlFilter[11411]: QgsAccessControlFilter plugin default layerFilterExpression called
09:56:51 INFO WfsOutputExtension[11411]: responseComplete ran in 0.0s
09:56:51 INFO Server[11411]: Request finished in 211 ms```
josemvm commented 1 year ago

hi @nboisteault and @Gustry , if you want to investigate I can provide an url thanks

Gustry commented 1 year ago

Is your layer queimas_queimadas_geom_v the purple point layer ? Is the extent 7.969634282414649,38.757941419610006,-7.884743488065355,38.799609248090064 correct ? If you add a base layer ? Because comparing your 2 screenshots, coordinates are reversed, is-it expected ?

josemvm commented 1 year ago

a new project and everything works fine! imagem

@Gustry thanks a lot

nboisteault commented 1 year ago

Thanks a lot @josemvm