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

Spatial Filter for Avoid Polygons #293

Open
JoStroh opened this issue Jan 24, 2025 · 1 comment
Open

Spatial Filter for Avoid Polygons #293

JoStroh opened this issue Jan 24, 2025 · 1 comment

Comments

@JoStroh
Copy link

JoStroh commented Jan 24, 2025

Couldn't the _get_avoid_polygons function be provided with a spatial filter? So that only features that are “near” the input points are selected. You would simply have to create a bounding box around the list of input points and add a QgsFeatureRequest to the function.

@merydian
Copy link
Collaborator

Hi, thanks for your idea here. The problem with that would be that it's not possible to know whether the route will exclusively lie within the bounding box of the input points.

If you describe your problem a little further, we can maybe still help you out. Feel free to let us know!

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

2 participants