Add CS admin-constrained asset builder and configs#1085
Open
amit-spatial wants to merge 3 commits into
Open
Conversation
This script joins standardized cs_admin_standard village geometries to configured tabular resources. It is required for reproducible CS Antyodaya and livestock assets because it keeps ids, geometry, datatypes, metadata, and join exception reporting consistent across datasets.
This config tells the CS admin-constrained asset builder how to join Mission Antyodaya 2020 data to cs_admin_standard and where to emit cs_antyodaya_2020 outputs. Keeping it tracked makes the generated Antyodaya asset reproducible without local-only settings.
This config tells the CS admin-constrained asset builder how to join livestock census totals to cs_admin_standard and where to emit cs_village_livestock_census_20 outputs. Keeping it tracked makes the generated livestock asset reproducible from the shared admin resource.
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.
Added standard scripts, using which, we can build new gpkg files from admin gpkg we created through previous PR script.
We simply now need to join it to the admin gpkg, with the help of config yaml, where we can describe required columns, columns to skip, columns to rename, or to enforce integer datatype of some specific operations. This yaml currently contains configs needed to create our antyodaya, livestocks datasets. If anyone wants to create a new gpkg joined to our admin boundaries, they can simply add config for new standard file generation in the config yaml, and then simply run the utilities/scripts/admin_assets/build_cs_admin_boundary_assets.py with cli arguments specifying the new added config for creation of one or multiple or all standard gpkgs from raw files.