Skip to content
[WIP] Implementing mapit for HURUmap. Focused on enabling environmental variables for configuration and other nice things. Visit HURUmap - https://hurumap.org/
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
data/geo
mapit_hurumap
.gitignore
Dockerfile
README.md
docker-compose.yml
docker-entrypoint.sh

README.md

HURUmap-mapit

Implementing mapit for HURUmap. Focused on enabling environmental variables for configuration and other nice things.

Challenges

Setting up mapit for HURUmap currently have the following challenges:

  1. Geometry Errors:
    1. Linear Rings: Some boundary shape files e.g Uganda's counties shape files have random line strings everywhere this causes errors when trying to map parent-child area relationships. This is because the Polygon class expects a LinearRing and lines are LineStrings:

      Polygon objects may be instantiated by passing in parameters that represent the rings of the polygon. The parameters must either be LinearRing instances, or a sequence that may be used to construct a LinearRing. - https://docs.djangoproject.com/en/2.2/ref/contrib/gis/geos/#polygon

    2. EPSG code: The EPSG code for the different countries is different but seems to be set once by mapit in settings (settings.MAPIT_AREA_SRID). This results in the boundaries appearing differently on the particular underlying map projection e.g a boundary line that would be following a river, is off by a couple of meters on the ground. This is isn't particularly mission-critical for our use-case but something we should be aware of.
  2. Official Sources: Struggles to get official government sources of data in useable formats have as relying on HDX.

Work in Progress:

The things that are still work in progress include:

  • mapit_hurumap/management/commands/mapit_hurumap_fix_ug_counties_2016.py
  • All geo files not linked in the "Data Sources" list below.

Data Sources:

  1. Kenya (2009): HDX - https://data.humdata.org/dataset/ken-administrative-boundaries
  2. Uganda: HDX + UBOS
    1. Country (2018) - https://data.humdata.org/dataset/uganda-administrative-boundaries-admin-1-admin-3
    2. District (2018) - http://ubos.geo-solutions.it/layers/geonode:uganda_districts_2018
    3. Counties (2016) - http://ubos.geo-solutions.it/layers/geonode:uganda_counties_2016
    4. Sub-counties (2017) - http://ubos.geo-solutions.it/layers/geonode:uganda_subcounties
    5. Parishes (2016) - http://ubos.geo-solutions.it/layers/geonode:uganda_parishes_cleaned_attached
  3. South Africa (2016): HDX - https://data.humdata.org/dataset/south-africa-admin-level-1-boundaries
You can’t perform that action at this time.