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

add argument to allow negative slopes #20

Closed
temospena opened this issue Nov 9, 2020 · 1 comment
Closed

add argument to allow negative slopes #20

temospena opened this issue Nov 9, 2020 · 1 comment

Comments

@temospena
Copy link
Collaborator

In order to know if a linestring has a positive or negative slope (considering direction), add an argument to slopes to allow retrieving slopes as negative, instead of always absolute.
..., allow_negative=T

@temospena
Copy link
Collaborator Author

or
..., directed = TRUE
or
..., directed = "oneway"
It could work with the info of an existing column of oneway - usually part of a road network.

once that we can get z0 and z1 with slopes we can say that if z0 > z1, the slope would be -1*slope
and with the information of "FT" (1x) and "TF" (-1x).
and for those with "both"? duplicate the segment to store both information?

This is useful for routing, and not so much for visualisation.

(I might need some help to make this happen 🔢 )

Robinlovelace added a commit that referenced this issue Sep 3, 2021
Robinlovelace added a commit that referenced this issue Sep 3, 2021
Robinlovelace added a commit that referenced this issue Sep 3, 2021
This fixes another issue in #20 by mentioning alternative functions that can be passed to the fun argument
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

1 participant