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

Test on real data #46

Merged
merged 6 commits into from
Jan 20, 2025
Merged

Test on real data #46

merged 6 commits into from
Jan 20, 2025

Conversation

fnattino
Copy link
Contributor

Closes #24

I have also resized the packaged data, limiting the street network to the city boundary. The main reason is that in the outskirt of Bucharest I have found one motorway link that would give rise to a self-intersecting-yet-perfectly-valid stroke, but which would then be tricky to validate as implemented in the test (i.e. using sf::st_contains would not identify the constituting initial edges due to the self-intersection). Since this is some sort of an edge case which would only make the validation trickier without bringing more insight into the well-functioning of rcoins, I have decided for the easy fix i.e. to modify the dataset. As a derived benefit, the data script is also more concise (the "buffer" functionality was imported from CRiSp but not really needed).

data-raw/bucharest.R Outdated Show resolved Hide resolved
@fnattino fnattino requested a review from cforgaci January 15, 2025 13:59
Copy link
Contributor

@cforgaci cforgaci left a comment

Choose a reason for hiding this comment

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

👍 + a couple of typos. Thanks!

data-raw/bucharest.R Outdated Show resolved Hide resolved
tests/testthat/test-stroke.R Outdated Show resolved Hide resolved
tests/testthat/test-stroke.R Outdated Show resolved Hide resolved
fnattino and others added 3 commits January 20, 2025 15:39
@fnattino fnattino merged commit c62c7fe into main Jan 20, 2025
4 checks passed
@fnattino fnattino deleted the 24-test-on-real-data-fn branch January 20, 2025 14:52
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.

Add tests on real datasets
2 participants