-
Notifications
You must be signed in to change notification settings - Fork 34
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
[Improvement]: Rationalize boundary levels and translations #1212
Comments
I haven't touched this code in a while now, but I do agree with the error-prone aspect of it. I just opened a random config file and it is true that My gut reaction would be to define a data format that removes the implicit/guesswork out of it, then define strong types around it (so no There is a number of tickets in github that revolve around this issue (#993, #307, #604, #994, ...), linking them here to help triaging (hopefully). |
@ericboucher - the configuration of |
The logic behind |
As mentioned in PR #1163, we should leverage the name attribute here in the selection list of admin levels for running an analysis. |
Provide a clear and concise description of what you want to happen.
I would like to revamp the way we define and boundary files and configure admin levels. The current implementation can be quite confusing and error-prone. A lot of things depend on having elements in the correct order, if the deployment is for a country or a multi-country, and so on (eg. c114761). Plus, it assumes that only one translation is available.
For now I am envisioning something like this but the goal of this issue is to dive in and come up with something scalable that simplifies the code.
While we're at it, we should consider simplifying the logic of loading/unloading admin boundaries and simply playing with their visibility instead. The primary boundary layer should always be used for calculations and everything, but could be "hidden" if a sublevel is used.
Thoughs @wadhwamatic @laurentS ?
Is there anything else you can add about the proposal? You might want to link to related issues here, if you haven't already.
No response
The text was updated successfully, but these errors were encountered: