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

[Bug]: Attribute table - No features returned if map projection != layer projection & "Limit fetched data" checked #3194

Closed mdouchin closed 1 year ago

mdouchin commented 2 years ago

What is the bug?

No feature is returned if the attribute table of a layer if

Steps to reproduce the issue

The LWC code here does not take into account the parameter SRSNAME for the WFS GETFEATURE query

To reproduce, use

The web map will be in EPSG:3857, and the attribute table will try to display the features with a WFS GETFEATURE query with a parameter SRSNAME

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 20.04

Browsers

Firefox

Browsers version

Firefox 104

Relevant log output

No response

ygorigor commented 2 years ago

@mdouchin LWC 3.6 has the same bug.

josemvm commented 1 year ago

i'm waiting a fix before migrating from 3.5 :-(

mdouchin commented 1 year ago

@rldhont any hint on this subject (the LWC has been modified since this issue creation, the new link to the code is here) https://github.com/3liz/lizmap-web-client/blob/e34a97c67a657b4eb8f8e3234cda89fe06e49dd2/lizmap/modules/lizmap/lib/Request/WFSRequest.php#L573

josemvm commented 1 year ago

hi @rldhont i still have problems with this issue (lwc 3.6.1) in some layers and i don't know why... same srid, same geometry, all in the same project...

josemvm commented 1 year ago

@ygorigor all problems are solved for your layers?

ygorigor commented 1 year ago

@ygorigor all problems are solved for your layers?

@josemvm unfortunately no, same as you

josemvm commented 1 year ago

hi @rldhont do you plan to fix this problem/regression before next release (3.6.2)? thanks a lot

rldhont commented 1 year ago

@josemvm I fixed the bug described in this issue. Can you provide a project with the bug ?

josemvm commented 1 year ago

@rldhont please check your mailbox thanks

rldhont commented 1 year ago

@josemvm @ygorigor I have found the bug and I have a fix with some tests!

josemvm commented 1 year ago

i'm waiting a fix before migrating from 3.5 :-(

@rldhont thanks a lot! 👍

rldhont commented 1 year ago

@josemvm @ygorigor complete fix with tests https://github.com/3liz/lizmap-web-client/pull/3467

josemvm commented 1 year ago

great!!! :superhero_man: