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

v.distance: Linear matrix becomes default, new -s flag for square matrix [API change] #601

Merged
merged 1 commit into from
May 20, 2020

Conversation

mlennert
Copy link
Contributor

@mlennert mlennert commented May 8, 2020

This PR is commits a patch that has been in trac for years (#3638). It changes v.distances default API.
Up to now, when using the -pa flag for printing the output of a complete matrix, this matrix would default to a square matrix. This is not always the easiest form for reuse, and it also means that you cannot use -pa with more than one upload option.
This PR makes the linear matrix default for all output forms, and allows multiple upload options even with -a. A new -s allows the user to request a square matrix when only one upload option is requested.

@mlennert mlennert requested review from metzm and ninsbl May 8, 2020 14:35
@mlennert mlennert added the enhancement New feature or request label May 8, 2020
Copy link
Member

@ninsbl ninsbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what I can see this looks good. But keep in mind that I am not familiar with C.

@mlennert
Copy link
Contributor Author

Can this be merged ?

@mlennert mlennert changed the title v.distance: Linear matrix becomes default, new -s flag for square matrix v.distance: Linear matrix becomes default, new -s flag for square matrix [API change] May 20, 2020
@mlennert mlennert merged commit 2c614dd into OSGeo:master May 20, 2020
@mlennert mlennert deleted the v_distance_squarematrix branch May 20, 2020 14:37
@neteler
Copy link
Member

neteler commented May 20, 2020

Small note: I like the label [API change] a lot, like this we know: no backporting.

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

Successfully merging this pull request may close these issues.

None yet

3 participants