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

Incorrect retrieved geometry extent from WFS service #299

Open
Gpetrak opened this issue Nov 26, 2024 · 1 comment
Open

Incorrect retrieved geometry extent from WFS service #299

Gpetrak opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
type: bug Something isn't working

Comments

@Gpetrak
Copy link
Contributor

Gpetrak commented Nov 26, 2024

When a user tries to load a layer with a different SRID from WGS84 (EPSG 4326) (tested with the projected EPSG: 2100) through WFS, the layer that is loaded on the canvas includes incorrect geometry extent, retrieved from WFS provider.
As a result, QGIS doesn't zoom to the correct geometry extent neither automatically nor by selecting the option zoom to layer.
However, if we search the layer using the correct geometry extent of the layer, we can see that it is loaded correctly.

@Gpetrak
Copy link
Contributor Author

Gpetrak commented Nov 27, 2024

The incorrect retrieved geometry was because the plugin was adding the layer (from a different SRID) using the corresponding extent from the SRID EPSG:4326. The issue was solved by setting the final extent using the spatial_extent (a well-defined metadata related with the layer extent) right before the layer is added to the map.
The corresponding PR can be found here: #300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant