cat, file-info, get-bbox, set-bbox, sort, merge#3
Draft
e-kotov wants to merge 31 commits into
Draft
Conversation
Time filter
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3 +/- ##
===========================================
- Coverage 94.28% 71.59% -22.70%
===========================================
Files 6 13 +7
Lines 350 1028 +678
===========================================
+ Hits 330 736 +406
- Misses 20 292 +272 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
New features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @dhersz,
I'm currently working on adding a few new functions to wrap more of the
osmiumfunctionality. It all started withcat, since I wanted to glue together a few PBF files for r5r. As it turned out, designingcatproperly led me to implement a few additional utilities.So far, I’ve added:
osm_catosm_file_infoosm_file_info_variablesosm_get_bboxosm_set_bboxosm_sortThis is still a work in progress — I’m finishing up the tests and double-checking the documentation — but overall, things are already functioning well.
I also wanted to open up a conversation about potentially renaming some existing functions in the package to avoid namespace conflicts down the line. I'm following the rOpenSci guide on naming conventions and would like to suggest introducing a consistent prefix for our functions.
You can see some examples in this draft PR. Functions like
extractcould easily exist in many other packages, and they don’t clearly signal their connection torosmium. My proposal would be to rename functions such asextract,time_filter,tags_filter, andshow_contentto something likeosm_extractorrosm_extract. I’m happy to follow whatever prefix you prefer — just let me know and I can update the names in the new functions I’m contributing as well.After renaming we could re-create old function names for existing ones to wrap the new renamed ones, but mark them as deprecated and issue a warning (e.g. like here) and keep them in the package for a few years to let everyone transition to the new function names.
Of course, this is just a suggestion. If you’d prefer not to go in this direction, I can drop the prefix from the new functions to match the current style.
This PR is still a draft — mainly to kick off the discussion.