Draft
Conversation
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.
The hydrofabric layout has changed for input geopackages. This update allows NGEN and partitionGenerator to read and work with the new layout.
The NHF change is quite significant (e.g., requiring joins to find destination catchment/nexus IDs and IDs being stored as integers instead of strings). To handle these changes, the SQL query used to extract data will transform the new data into the format of the old format. This means renaming the ID fields from
div_id/nex_idtoid, casting the ID from an integer to a string and addingcat-ornex-to the front, and joining and renaming the destination ID to a string. The result is a relatively small update to thereadfunction for geopackages and letting the rest of the code stay the same. While this adds technical debt from the NGEN code not looking like the structure of the geopackage, it significantly limits the amount of work needed rework almost every part of NGEN to match the new schema.Additions
Removals
Changes
ngen::geopackage::readfunction updated to read the geopackage in a way that generates a similar output to the current hydrofabric schemaTesting
partitionGeneratorusing an example of the new NHF schema.Screenshots
Notes
cat-instead of a string representation of the catchment ID.cat-andnex-prefixes for representing those features.Todos
Checklist
Testing checklist (automated report can be put here)
Target Environment support