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

Offer a per feature, as well as a global minimum distance parameter, for the Random points on lines algorithm #35793

Merged

Conversation

havatv
Copy link
Contributor

@havatv havatv commented Apr 15, 2020

Description

"Splits" the Minimum distance between points parameter into Minimum distance between points (per feature) and Global minimum distance between points. The last one can not be data-defined, since it would be strange to have a global parameter change on a per feature basis.

The split is important, because it makes it possible to apply the minimum distance only "locally" (for each feature), meaning that points added to features close by are not considered when checking minimum distance (only the points added for the current line feature are checked).

It is meaningful to combine the two minimum distance parameters, but if the global one is larger than the local one, the local one will have no effect.

New tests have been added, and the existing ones have been updated to reflect the change.

@github-actions github-actions bot added this to the 3.14.0 milestone Apr 15, 2020
@nyalldawson nyalldawson merged commit 860645a into qgis:master Apr 19, 2020
@havatv
Copy link
Contributor Author

havatv commented Apr 19, 2020

Thanks, @nyalldawson! I will update the documentation.

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

Successfully merging this pull request may close these issues.

2 participants