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

Freeze if filter geometry is very complex #13

Open
kannes opened this issue Apr 5, 2023 · 1 comment
Open

Freeze if filter geometry is very complex #13

kannes opened this issue Apr 5, 2023 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@kannes
Copy link
Contributor

kannes commented Apr 5, 2023

The plugin will freeze QGIS (at least for a while) if a complex filter geometry is used, e. g. that of Canada in the "world" easter egg's dataset (NE50?).

Maybe count the number of vertices in the selected geometry/-ies, when the user wants to define a filter from that, and only allow its usage if the total is reasonable low?

Maybe add a warning dialog if the geometry if complex and allow the user to cancel?

@kannes kannes added bug Something isn't working good first issue Good for newcomers labels Apr 5, 2023
@pgipper pgipper reopened this Aug 26, 2024
@kannes
Copy link
Contributor Author

kannes commented Oct 8, 2024

Complex geometries are also an issue if saved because they lead to huge entries in the QGIS3.ini.

E.g. Germany from world is a ~3 million characters long line...

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

No branches or pull requests

2 participants