Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS: GetFeature requests adhere to the set coordinate system in later QGIS Server versions. #1592

Open
eri-blan opened this issue Feb 11, 2025 · 3 comments
Assignees

Comments

@eri-blan
Copy link

Describe the bug
I haven´t studied this problem thoroughly but it seems that with the QGIS Server version we´ve been using (3.40.2) now, WFS responses seem to respect the coordinate system set in Hajk "more".

This results in a response feature set in the used coordinate system and not in EPSG:4326 like i think it was in previous version, which in turn is projected to coordinate values that become far away from where ever the correct values should be, i.e. the map window is moved to a far away place.

Any one else having a later QGIS Server version that has experienced this issue? It sort of worked in QGIS Server 3.34.

@Sunix71 Sunix71 self-assigned this Feb 21, 2025
@eri-blan
Copy link
Author

eri-blan commented Feb 25, 2025

Noticed that the searchModel.js needs a crs-object in the response to handle this which does not seem to exist when requesting with QGIS Server 3.40. So I think it is only a problem in the searchModel.js, or rather in QGIS Server 3.40 since the problem seems to be taken care of in the vectorLayer.js. I´ll investigate further if there is a setting for this or if it is something that should be fixed.

@Hallbergs
Copy link
Member

LMK if you want to have a quick meeting where we can investigate this issue! @eri-blan

@eri-blan
Copy link
Author

eri-blan commented Mar 7, 2025

We will circumvent this by using GML3 instead of JSON. I also want to add that as it is now, QGIS Server 3.40 sends the crs-object with the requested coordinate system in the response when using GET instead of POST.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants