My goal is to create a custom map in QGIS, and upload it to dhis2 as an ‘External map layer.’ I understand how to make maps in QGIS, but am having a difficult time understanding how to create a WMS, TMS, or XYZ file to be able to upload it to dhis. Has anyone had success finding good documentation or resources on how to do this?
I noticed this thread is quite old, but it has a lot of views (for a maps related topic) and hasn’t received a detailed response yet, so I thought I’d share some guidance.
In practice, DHIS2 expects map layers to be served through a map service such as WMS, TMS, or XYZ. This usually means running a backend service to publish your map layers (or using an existing one).
Two common options if you choose to run your own service are:
GeoServer - https://geoserver.org/
A widely used open-source map server that can publish vector or raster data as WMS/WMTS and other services. You can upload the data you prepared in QGIS (e.g., shapefiles or GeoTIFFs) and expose them as a WMS endpoint for DHIS2.
TiTiler - https://developmentseed.org/titiler/
A lightweight option especially useful if your source is raster data (e.g., GeoTIFF or Cloud Optimized GeoTIFF). It can quickly expose raster tiles as XYZ/TMS endpoints.
Once the service is running, you can use the generated endpoint URL when configuring the External map layer in DHIS2.
We’re very interested in hearing from people who have similar use cases:
What type of layers are you trying to integrate?
Which service did you investigate or do you currently use?
What limitations did you encounter with the External map layers in DHIS2?
We’re happy to provide further support or guidance if anyone wants to dive deeper into this setup.