Giter VIP home page Giter VIP logo

nepalmap_federal's People

Contributors

amitness avatar bezzy1999 avatar cliftonmcintosh avatar crispg72 avatar divyamani1 avatar ferranmarin avatar ishandongol avatar luizfelipetx avatar nikhilgupta23 avatar openrijal avatar prashishh avatar pratimakandel avatar ravinepal avatar suvash avatar techgaun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nepalmap_federal's Issues

Approximately 600000 lower population in in federal version than in pre-federal version

The total population for the pre-federal NepalMap and the federal NepalMap both come from the 2011 census. However, the two versions do not agree on the total population. The pre-federal version counts 2,64,94,504 people while the federal version counts almost 6,00,000 fewer: 2,59,07,649.

Any idea why we might have this difference?

Pre-federal version:
pre-federal population

Federal version:
federal-population

Discussion: are there data sets in the pre-federal NepalMap that can be migrated to the federal NepalMap

This issue is meant to serve as a public discussion about if and how we can migrate data from the pre-federal NepalMap to the federal NepalMap.

Much of the data we have is data for the pre-federal government boundaries. Are there data sets that can be migrated? What would be necessary to do in order to migrate data accurately? If you have ideas or thoughts, please contribute them in a comment in this issue.

Liwang Bazar in Rolpa incorrectly identified as part of Musikot in Rukum West

At the center of Rolpa is an area that OpenStreetMap has as "Liwang Bazar". It seems to be in the middle of Rolpa municipality. When you hover over it, it is shown as "Musikot" in Rukum West. This is almost surely wrong. Possibilities:

  • It is actually part of the Rolpa muncipality that is both to the north and to the south of it on the map.
  • It is some other municipal or local unit, not Musikot, not Rolpa muncipality.

To see this, go to https://beta.nepalmap.org/profiles/district-58-rolpa/ and hover over the local units on the map. When you hover over the little area in the middle (where OpenStreetMap has the legend "Liwang Bazar", you'll see that the tooltip calls it "Musikot" and another area just north of Rolpa district turns green along with it. You'll also notice the "Rolpa" local district is cut in half by that "Musikot". Why? Is that area really part of the Rolpa municipality? Is it something else. Are the two areas that are identified as the Rolpa municipality actually two different local units? Is one of them misidentified?

Add population data missing for locality in Province 1

Our data set for population is missing data for one locality in Province 1. The data are available in our "Federal Data" in https://github.com/Code4Nepal/data/.

Add the data to the population.sql file. Please put the data in a logical place -- so that all data for the same district are in rows next to each other. That will make it easier to review in the future.

  • When you add them, you will add one row for female population and another row for male population. See the current file for examples.
  • You will need to update the totals for the district for that locality to include these additional data.
  • You will need to update the totals for Province 1 to include these additional data.
  • You will need to update the totals for Nepal to include these additional data.

Here are the localities whose data are currently missing.

geo_level geo_code name parent_name parent_level parent_code
local 6010 Itahari Sunsari district 69

Import geojson and topojson files with the correct metadata for districts

Please see the readme at https://github.com/Code4Nepal/nepalmap_federal/tree/master/wazimap_np/static/geo for a description of the metadata needed.

Geojson and topojson files for updating can be downloaded from http://localboundries.oknp.org/

This script was used with the old structure to add to each geojson file the correct metadata: https://github.com/Code4Nepal/maptools/blob/master/geo/set_vdc_geo_properties.py. It may be useful as a sample for what needs doing.

This issue related to #2

Add a data set that includes total population figures

The wazimap framework will only display data when there is a data set that includes total population figures. Find a data set that has full population figures for each of the bodies at each of the new levels for federal Nepal. Data at higher levels can be derived from data at the local level. Create the appropriate table for these data and add them to the profiles and to the view templates.

See https://github.com/Code4Nepal/nepalmap_app/blob/dev/wazimap_np/demographics.py#L45-L48 as an example of how total population is used.

The data at http://cbs.gov.np/sectoral_statistics/population/Population%20of%20753%20Local%20Units should work.

Remove all old data

In order to build the federal instance of NepalMap, we should remove all of the data, views and supporting code for the old data sets. This includes:

General Guidelines

SQL files for data
table definitions
View definitions
Profile sections (see the profile definitions in nepalmap_app/wazimap_np/)
Geographic data files

Specifics

Here are some things that need to be removed:

These files need cleaning up:

Add population data missing for locality in Province 6

Our data set for population is missing data for one locality in Province 6. The data are available in our "Federal Data" in https://github.com/Code4Nepal/data/.

Add the data to the population.sql file. Please put the data in a logical place -- so that all data for the same district are in rows next to each other. That will make it easier to review in the future.

  • When you add them, you will add one row for female population and another row for male population. See the current file for examples.
  • You will need to update the totals for the district for that locality to include these additional data.
  • You will need to update the totals for Province 6 to include these additional data.
  • You will need to update the totals for Nepal to include these additional data.

Here are the localities whose data are currently missing.

geo_level geo_code name parent_name parent_level parent_code
local 61002 Bheri Jajarkot district 27

Add population data missing for locality in Province 2

Our data set for population is missing data for one locality in Province 2. The data are available in our "Federal Data" in https://github.com/Code4Nepal/data/.

Add the data to the population.sql file. Please put the data in a logical place -- so that all data for the same district are in rows next to each other. That will make it easier to review in the future.

  • When you add them, you will add one row for female population and another row for male population. See the current file for examples.
  • You will need to update the totals for the district for that locality to include these additional data.
  • You will need to update the totals for Province 2 to include these additional data.
  • You will need to update the totals for Nepal to include these additional data.

Here are the localities whose data are currently missing.

geo_level geo_code name parent_name parent_level parent_code
local 17001 Aaurahi Dhanusa district 19

Update parent geo_codes for localities in districts 1-9

The parent_code for a locality must match the geo_code for the district to which it belongs. However, the parent codes for localities that are in "dis-01" through "dis-09" are wrong. They incorrectly leave out the "0", incorrectly listing the parent code as "dis-1", etc.

See, for example, these lines: https://github.com/Code4Nepal/nepalmap_federal/blob/dev/sql/geography.sql#L164-L171

The parent code should be "dis-01", not "dis-1" because the district they belong to has the geo_code of "dis-01".

This needs to be corrected so that the associations can be made correctly.

Evaluate the Nepal Rastra Bank's data for potential inclusion in NepalMap

Nepal Rastra Bank publishes data on its "Financial Inclusion Dashboard" at http://www.emap.nrb.org.np/. Evaluate those data sets to see if any of them might be useful for inclusion in NepalMap. Some basic rules for useful data:

  • If we publish data for a given level, every geographic unit at that level must have data in the data set. For example, if we want to publish data at the district level, we must have data for each of the 77 districts. If we publish data at the local level, we must have data for each of the 753 localities.
  • There must be a good way to visualize the data. The two major ways in which the Wazimap framework can present data are in histograms, bar charts and pie charts. For examples, see the pre-federal NepalMap, Counting India and South Africa's Wazimap.
  • They are data that someone might be reasonably interested in seeing.

To fulfill this issue, you can evaluate the NRB data by

  • trying to determine the smallest level at which a data set has data for every geographical unit
  • trying to imagine if there is a good way to visualize those data in the Wazimap framework
  • trying to determine who might be interested or why.

The full list of geographical areas that we have can be found in the SQL file at https://github.com/Code4Nepal/nepalmap_federal/blob/dev/sql/geography.sql. You may find it useful to see them in a map. To do so, follow the readme directions to run a local instance of the federal version of NepalMap.

Add population data of zero for all national parks, hunting and wildlife reserves and development areas

National parks, hunting and wildlife reserves and development area have no official population (although I'm sure we all know that someone lives in them). For our purposes, add counts of zero for each national parks, hunting and wildlife reserve and development area in the table below.

Add the data to the population.sql file. Please put the data in a logical place -- so that all data for the same district are in rows next to each other. That will make it easier to review in the future.

  • When you add them, you will add one row for female population and another row for male population. See the current file for examples.
geo_level geo_code name parent_name parent_level parent_code
local 69099 Khaptad National Park Achham district 01
local 45099 Dhorpatan Hunting Reserve Baglung district 03
local 68099 Khaptad National Park Bajhang district 05
local 67099 Khaptad National Park Bajura district 06
local 33099 Parsa Wildlife Reserve Bara district 08
local 58099 Bardiya National Park Bardiya district 09
local 35099 Chitawan National Park Chitwan district 12
local 70099 Khaptad National Park Doti district 22
local 72099 Shuklaphanta National Park Kanchanpur district 32
local 31099 Chitawan National Park Makwanpur district 41
local 31088 Parsa Wildlife Reserve Makwanpur district 41
local 43099 Dhorpatan Hunting Reserve Myagdi district 46
local 76099 Chitawan National Park Nawalparasi East district 47
local 28099 Langtang National Park Nuwakot district 48
local 28088 Shivapuri Watershed And Wildlife Reserve Nuwakot district 48
local 34099 Chitwan National Park Parsa district 53
local 77099 Dhorpatan Hunting Reserve Rukum East district 59
local 15099 Koshi Tappu Wildlife Reserve Saptari district 63
local 6099 Koshi Tappu Wildlife Reserve Sunsari district 69
local 14099 Koshi Tappu Wildlife Reserve Udayapur district 75
local 49099 Lumbini Sanskritik Development Area Rupandehi district 60

Import geojson and topojson files with the correct metadata for local government bodies

Please see the readme at https://github.com/Code4Nepal/nepalmap_federal/tree/master/wazimap_np/static/geo for a description of the metadata needed.

Geojson and topojson files for updating can be downloaded from http://localboundries.oknp.org/

This script was used with the old structure to add to each geojson file the correct metadata: https://github.com/Code4Nepal/maptools/blob/master/geo/set_vdc_geo_properties.py. It may be useful as a sample for what needs doing.

This issue depends on #2

Update 404 page

https://nm-fed.eastus.cloudapp.azure.com/profiles/ -- shows 404 (See text below from current 404 page).

let's find best practice for useful to show on 404 page.

Text:

Using the URLconf defined in wazimap.urls, Django tried these URL patterns, in this order:

^$ [name='homepage']
^about$ [name='about']
^help$ [name='help']
^profiles/(?P<geography_id>\w+-\w+)(-(?P<slug>[\w-]+))?/$ [name='geography_detail']
^embed/iframe.html$ [name='embed_iframe']
^(embed_data/)?profiles/(?P<geography_id>\w+-\w+)(-(?P<slug>[\w-]+))?\.json$ [name='geography_json']
^compare/(?P<geo_id1>\w+-\w+)/vs/(?P<geo_id2>\w+-\w+)/$ [name='geography_compare']
^api/1.0/data/show/latest$ [name='api_show_data']
^api/1.0/data/download/latest$ [name='api_download_data']
^api/1.0/table$ [name='api_list_tables']
^api/1.0/geo/(?P<geo_id>\w+-\w+)/parents$ [name='api_geo_parents']
^tables/(?P<table>[a-zA-Z0-9_-]+)/$ [name='table_detail']
^data/$ [name='table_search_redirect']
^data/(?P<format>map|table|distribution)/$ [name='data_detail']
^examples/(?P<example_slug>[-\w]+)/$ [name='example_detail']
^locate/$ [name='locate']
^healthcheck$ [name='healthcheck']
^robots.txt$
^place-search/json/$ [name='place_search_json']

The current URL, profiles/, didn't match any of these.

Upgrade to Caddy docker image 1.X

We are currently using the Caddy docker image 0.11.5. The most recent version of the Caddy docker image is 1.0.3. An attempt to run 1.0.3 on beta.nepalmap.org suggests there may be some adjustment that needs to be made in order to run 1.X.

This is what the error looks like when the caddy server tries to start

caddy_1     | timeout: unrecognized option: t
caddy_1     | BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary.
caddy_1     |
caddy_1     | Usage: timeout [-s SIG] SECS PROG ARGS
caddy_1     |
caddy_1     | Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
caddy_1     | Default SIG: TERM.
caddy_1     | wait-for-it: timeout occurred after waiting 30 seconds for web:8000
caddy_1     | wait-for-it: strict mode, refusing to execute subprocess
caddy_1     | timeout: unrecognized option: t
caddy_1     | BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary.
caddy_1     |
caddy_1     | Usage: timeout [-s SIG] SECS PROG ARGS
caddy_1     |
caddy_1     | Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
caddy_1     | Default SIG: TERM.
caddy_1     | wait-for-it: timeout occurred after waiting 30 seconds for web:8000
caddy_1     | wait-for-it: strict mode, refusing to execute subprocess
caddy_1     | timeout: unrecognized option: t
caddy_1     | BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary.
caddy_1     |
caddy_1     | Usage: timeout [-s SIG] SECS PROG ARGS
caddy_1     |
caddy_1     | Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
caddy_1     | Default SIG: TERM.
caddy_1     | wait-for-it: timeout occurred after waiting 30 seconds for web:8000
caddy_1     | wait-for-it: strict mode, refusing to execute subprocess
caddy_1     | timeout: unrecognized option: t
caddy_1     | BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary.
caddy_1     |
caddy_1     | Usage: timeout [-s SIG] SECS PROG ARGS
caddy_1     |
caddy_1     | Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
caddy_1     | Default SIG: TERM.
caddy_1     | wait-for-it: timeout occurred after waiting 30 seconds for web:8000
caddy_1     | wait-for-it: strict mode, refusing to execute subprocess
caddy_1     | timeout: unrecognized option: t
caddy_1     | BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary.
caddy_1     |
caddy_1     | Usage: timeout [-s SIG] SECS PROG ARGS
caddy_1     |
caddy_1     | Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
caddy_1     | Default SIG: TERM.
caddy_1     | wait-for-it: timeout occurred after waiting 30 seconds for web:8000
caddy_1     | wait-for-it: strict mode, refusing to execute subprocess
caddy_1     | timeout: unrecognized option: t
caddy_1     | BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary.
caddy_1     |
caddy_1     | Usage: timeout [-s SIG] SECS PROG ARGS
caddy_1     |
caddy_1     | Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
caddy_1     | Default SIG: TERM.
caddy_1     | wait-for-it: timeout occurred after waiting 30 seconds for web:8000
caddy_1     | wait-for-it: strict mode, refusing to execute subprocess
nepalmapfederal_caddy_1 exited with code 1

Add a link to the original data set for each profile section

For each section in the profile, add a link to the original data set to allow users to double-check our work and to provide more accountability and transparency. For example, the Households summary would have a link to the National Data Profile (http://nationaldata.gov.np) underneath the section where the total number of households is shown in NepalMap. Links should be as specific as possible but can be more general when specificity is not possible. For example, we do not currently have the ability to link to the National Data Profile pages for a specific locality or district or province, so a link to the main National Data Profile page is appropriate.

Add population data missing for localities in Province 3

Our data set for population is missing data for three localities in Province 3. The data are available in our "Federal Data" in https://github.com/Code4Nepal/data/.

See this comment for a link to a Jupyter notebook created by @amitness . You may be able to adapt it for your work.

Add the data to the population.sql file. Please put the data in a logical place -- so that all data for the same district are in rows next to each other. That will make it easier to review in the future.

  • When you add them, you will add one row for female population and another row for male population. See the current file for examples.
  • You will need to update the totals for the districts for each of these localities to include these additional data.
  • You will need to update the totals for Province 3 to include these additional data.
  • You will need to update the totals for Nepal to include these additional data.

Here are the localities whose data are currently missing.

geo_level geo_code name parent_name parent_level parent_code
local 30013 Tripura Sundari Dhading district 17
local 25004 Lalitpur Lalitpur district 38
local 28012 Tarkeshwar Nuwakot district 48

Fix the map display issue

The current beta version doesn't display the navigation map.

Current version
image

What we need (similar like older version)
image

Update main page teaser text and "Find facts" text

The current description on the main page is

Whether you live in Morang or Mahottari, find out how many people in your district have passed School Leaving Certificate (SLC), or how many people still use wood to cook food.

The "Find facts" description should also be revised. It says

Data is broken down by category: Demographics, education.

These both should be changed to reflect data that we currently provide in the federal version. They can be updated later with new suggested ideas for things to look for.

teaser-text

Fix issue in aggregated country level data

@cliftonmcintosh I was doing some cross-checking of data to national portal and looks like there was an issue with the way I was aggregating data to find country-level totals. I had missed filtering the data to province-level before aggregating. So it was aggregating all (province + district + local) causing incorrect country-level data, but no effect on bar graphs(since they are in %). I will create a PR soon to fix this for the already merged sections(demographics + household).

Creating this issue to track this.

image

image

Add population data missing for locality in Province 7

Our data set for population is missing data for one locality in Province 7. The data are available in our "Federal Data" in https://github.com/Code4Nepal/data/.

Add the data to the population.sql file. Please put the data in a logical place -- so that all data for the same district are in rows next to each other. That will make it easier to review in the future.

  • When you add them, you will add one row for female population and another row for male population. See the current file for examples.
  • You will need to update the totals for the district for that locality to include these additional data.
  • You will need to update the totals for Province 7 to include these additional data.
  • You will need to update the totals for Nepal to include these additional data.

Here are the localities whose data are currently missing.

geo_level geo_code name parent_name parent_level parent_code
local 71004 Dhangadhi Kailali district 30

Present district-level data on local elections

For each district, we should be able to provide counts of the total number of polling places, the number mayoralities won by each political party in each district, and the number of deputy mayoralities won by each political party in each district. Please note that we must have data for every district in order for the Wazimap framework to be able to present data at the district level. If we do not have district-level breakdowns, then determine if province-level or national figures are available.

There is supposed to be data at http://result.election.gov.np/, but that timed out for me. @nikeshbalami may have a link to a data set.

If we have those data at the local level, please suggest a way that this can be effectively visualized in the Wazimap framework that is used for NepalMap.

Add population data missing for localities in Province 5

Our data set for population is missing data for several localities in Province 5. The data are available in our "Federal Data" in https://github.com/Code4Nepal/data/. There are some individual localities for which data is currently missing. All localities for the district of Nawalparasi West, a.k.a., Parasi, is missing.

See this comment for a link to a Jupyter notebook created by @amitness . You may be able to adapt it for your work.

Add the data to the population.sql file. Please put the data in a logical place -- so that all data for the same district are in rows next to each other. That will make it easier to review in the future.

  • When you add them, you will add one row for female population and another row for male population. See the current file for examples.
  • You will need to update the totals for the districts for each of these localities to include these additional data.
  • You will need to update the totals for Province 5 to include these additional data.
  • You will need to update the totals for Nepal to include these additional data.

Here are the localities whose data are currently missing.

geo_level geo_code name parent_name parent_level parent_code
local 57003 Janki Banke district 07
local 49015 Sudhdhodhan Rupandehi district 60
local 48001 Bardaghat Nawalparasi West district 76
local 48002 Palhi Nandan Nawalparasi West district 76
local 48003 Pratappur Nawalparasi West district 76
local 48004 Ramgram Nawalparasi West district 76
local 48005 Sarawal Nawalparasi West district 76
local 48006 Sunwal Nawalparasi West district 76
local 48007 Susta Nawalparasi West district 76

For Nawalparasi West, see the "Parasi" files at https://github.com/Code4Nepal/data/tree/master/Federal%20Data/753%20Local%20Unit%20Population%20and%20HouseHold/PRADESH%205/Parasi

  • “Bardaghat” as “Bardaghat Municipality"
  • “Palhi Nandan” as “Palhinandan Gaunpalika”
  • “Pratappur” as “Pratapapur Gaunpalika”
  • “Ramgram” as “Ramgram Municipality”
  • “Sarawal” as “Sarawal Gaunpalika”
  • “Sunwal” as “Sunawal Municipality”
  • “Susta” as “Susta Gaunpalika”

Add population data missing for locality in Province 4

Our data set for population is missing data for one locality in Province 4. The data are available in our "Federal Data" in https://github.com/Code4Nepal/data/.

Add the data to the population.sql file. Please put the data in a logical place -- so that all data for the same district are in rows next to each other. That will make it easier to review in the future.

  • When you add them, you will add one row for female population and another row for male population. See the current file for examples.
  • You will need to update the totals for the district for that locality to include these additional data.
  • You will need to update the totals for Province 4 to include these additional data.
  • You will need to update the totals for Nepal to include these additional data.

Here are the localities whose data are currently missing.

geo_level geo_code name parent_name parent_level parent_code
local 39008 Kaligandagi Syangja district 71

Determine if Wazimap 1.0.0 would allow for the presentation of pre-federal and federal data in the same instance of NepalMap

Wazimap 1.0 appears to allow for different data sets from different time periods. Evaluate this capability to determine if it would allow us to have one instance that presents both pre-federal and federal data.

The South Africa Wazimap is here: https://wazimap.co.za/profiles/country-ZA-south-africa/
The release docs are here: https://wazimap.readthedocs.io/en/latest/version_history.html
A blog post about the new South Africa data: https://openup.org.za/articles/wazimap-2016-update.html

The outcome of this issue is to determine whether or not this capability can be used by NepalMap. If so, the outcome should also include a technical description of how the new capabilities work.

Import geojson and topojson files with the correct metadata for provinces

Please see the readme at https://github.com/Code4Nepal/nepalmap_app/tree/master/wazimap_np/static/geo for a description of the metadata needed.

Geojson and topojson files for updating can be downloaded from http://localboundries.oknp.org/

This script was used with the old structure to add to each geojson file the correct metadata: https://github.com/Code4Nepal/maptools/blob/master/geo/set_vdc_geo_properties.py. It may be useful as a sample for what needs doing.

This issue is related to #2.

Determine what to do about population data for wildlife and hunting reserves and national parks

Our geographic data includes hunting reserves, wildlife reserves and national parks, but we have no population data for those areas. Where do we get population data for them?

Population data

Parks and reserves without any population data

Park or Reserve District
Khaptad National Park Achham
Dhorpatan Hunting Reserve Baglung
Khaptad National Park Bajhang
Khaptad National Park Bajura
Parsa Wildlife Reserve Bara
Bardiya National Park Bardiya
Chitawan National Park Chitwan
Khaptad National Park Doti
Shuklaphanta National Park Kanchanpur
Chitawan National Park Makwanpur
Parsa Wildlife Reserve Makwanpur
Dhorpatan Hunting Reserve Myagdi
Chitawan National Park Nawalparasi East
Langtang National Park Nuwakot
Shivapuri Watershed And Wildlife Reserve Nuwakot
Chitwan National Park Parsa
Dhorpatan Hunting Reserve Rukum East
Koshi Tappu Wildlife Reserve Saptari
Koshi Tappu Wildlife Reserve Sunsari
Koshi Tappu Wildlife Reserve Udayapur

Correct the parent geo_codes for localities

The parent geo_codes for localities appear to be incorrect in https://github.com/Code4Nepal/nepalmap_federal/blob/dev/sql/geography.sql

In spot-checking the data, I have found that the codes for the districts do not match the codes for the muncipalities that should be in each district.

I have based my comparison on personal knowledge of some districts as well as comparison of the data in https://github.com/Code4Nepal/data/tree/master/Federal%20Data/753%20Local%20Unit%20Population%20and%20HouseHold

Examples of discrepancies:
Achham is dis-01, but municipalities (like Sunsari) in Achham are listed as belonging to dis-69
Arghakhanchi is dis-02, but Arghakhanchi municipalities are listed as belonging to dis-51
Bhaktapur is dis-10, but Bhaktapur muncipalities are listed as belonging to dis-26
Dadeldhura is dis-13, but Dadeldhura muncipalities are listed as belonging to dis-73

This list is an example. It is not comprehensive. In my spot-checking, I have found no muncipalities with the correct parent code.

Present total population and population by gender

Once the data for population has been integrated as part of #7 , present the total population with a breakdown by gender.

This includes:

Data sets for this are here: https://github.com/Code4Nepal/data/tree/master/Federal%20Data/753%20Local%20Unit%20Population%20and%20HouseHold
This only has provinces 1 and 2 right now, though.

Create data for the `wazimap_geography` table

Create the SQL data for the geographic units for the new federal structure.

At each level, the geo_code should be unique. For example, for local bodies, there can only be one local body in the entire country with a geo_code of "1".
Except for top-level of "Nepal", each record should include its parent's geo_code as well as the geographic level of its parent.

Please see the current data for an example of how it is structured.

In looking back at the scripts that were used 2 years ago, it appears that the geojson files were manipulated to include the correct metadata and then the SQL data was created from those files. If it seems like that is the way to do things this time, too, then this task should wait until after #3, #4, and #5 are complete.

See the scripts in the maptools project at https://github.com/Code4Nepal/maptools/tree/master/geo.

Update local levels name at geography.sql

While reviewing the population data, we found many spelling mistakes of local levels name in geography.sql file.

If possible update the SQL file will full name, for example, "Kathmandu" with "Kathmandu Metropolitan City" and so on, this will make the data adding part easier for upcoming days.

Will soon create and share a new sheet with existing geo_code; to discuss the possibilities.

Upgrade to latest wazimap version for Python 2.7 end of life

This project is currently running on Wazimap 0.8.2, which uses Python 2.7. Python 2.7 is reaching end of life at the end of 2019. This project should be upgraded to the latest version of Wazimap, which includes an upgrade to Python 3.

There are breaking changes from 0.8.2 to 1.0.0 of Wazimap that will need to be dealt with. There are also breaking changes from 1.X Wazimap to 2.X Wazimap.

I would recommend a stepped approach by upgrading to 1.X and, from there, to 2.X.

Documentation
The Wazimap docs up to version 1.0.0, which documents the breaking changes in 1.0.0: https://wazimap.readthedocs.io/en/latest/version_history.html
The Wazimap repo's changelog that includes the update to 2.1.0: https://github.com/OpenUpSA/wazimap/blob/master/CHANGES.rst

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.