# How import shapefiles in DHIS2 (Geo coordinates boundaries in DHIS2)

**URL:** <https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988>\
**Category:** Support - Assistance technique\
**Tags:** maps\
**Created:** [30 October 2024 08:26 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988 "2024-10-30T08:26:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shapr0019](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/shapr0019/32/44336_2.png) [@Shapr0019](https://community.dhis2.org/u/Shapr0019)\
**Post date:** [30 October 2024 08:26 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988/1 "2024-10-30T08:26:12Z")

</div>

Dear all.  
I am requesting for your help. I want to design maps at the district and facility levels that include boundaries. To achieve this, we need shapefiles. How can we upload shapefiles into DHIS2?  
Regards,

---

<div class="post-metadata">

**Author:** ![Amadou](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/a/71e660/32.png) [@Amadou](https://community.dhis2.org/u/Amadou)\
**Post date:** [31 October 2024 08:07 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988/2 "2024-10-31T08:07:18Z")

</div>

Hi!  
You have to convert your shapefile to **Geojson or gml** format and be sure that the names of the boudaries and the ou are the same and then go to **import/export** app and use the **org unit geometry import** option

---

<div class="post-metadata">

**Author:** ![Bruno](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/bruno/32/43993_2.png) [@Bruno](https://community.dhis2.org/u/Bruno)\
**Post date:** [5 November 2024 14:16 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988/3 "2024-11-05T14:16:19Z")

</div>

Hi @Shapr0019!

@Amadou is correct! We now recommend the use of GeoJSON now though (we need to update the documentation) as only GML v2.0 is supported and GeoJSON became a widespread format.

The documentation is available here: [Maps - DHIS2 Documentation](https://docs.dhis2.org/en/use/user-guides/dhis-core-version-master/configuring-the-system/maps.html)

We hope it goes smoothly, keep us posted!  
Bruno

---

<div class="post-metadata">

**Author:** ![Shapr0019](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/shapr0019/32/44336_2.png) [@Shapr0019](https://community.dhis2.org/u/Shapr0019)\
**Post date:** [6 November 2024 05:53 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988/4 "2024-11-06T05:53:56Z")

</div>

Thank you very much @Amadou and @Bruno . I will try. By any chance, do you have a CSV file format for geo-coordinates that I can use and convert to GeoJSON when sending or importing into DHIS2?

---

<div class="post-metadata">

**Author:** ![rcpoudel](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/rcpoudel/32/43632_2.png) [@rcpoudel](https://community.dhis2.org/u/rcpoudel)\
**Post date:** [6 November 2024 11:41 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988/5 "2024-11-06T11:41:07Z")

</div>

### GeoJSON Example

Here is a GeoJSON example and create file of .json file and upload.  
you can find your co-ordinates from your ministry or consult with your Geomatics engineers or download from the internet as document suggest

```json
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "organisationUnit": "Nepal", // Match this from your DHIS2 instance
        "id": "CseDlDfCmVm" // Match this from your DHIS2 instance
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [80.606141271502622, 30.466972730007456],
            [80.6073785911492, 30.466901345420865],
            [80.608000000000000, 30.467000000000000],
            [80.609500000000000, 30.467200000000000], // Added a fourth point
            [80.609800000000000, 30.467500000000000], // Added a fifth point
            [80.606141271502622, 30.466972730007456] // Closing the polygon loop
          ]
        ]
      }
    }
  ]
}
```

---

<div class="post-metadata">

**Author:** ![Shapr0019](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/shapr0019/32/44336_2.png) [@Shapr0019](https://community.dhis2.org/u/Shapr0019)\
**Post date:** [6 November 2024 11:56 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988/6 "2024-11-06T11:56:25Z")

</div>

This is good , thanks @rcpoudel. Just for clarity , the file you provided is for one org unity right? …because will be having many org unity we want to upload their coordinates once

---

<div class="post-metadata">

**Author:** ![rcpoudel](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/rcpoudel/32/43632_2.png) [@rcpoudel](https://community.dhis2.org/u/rcpoudel)\
**Post date:** [6 November 2024 15:28 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988/7 "2024-11-06T15:28:45Z")

</div>

To make your data upload process more efficient, I recommend chunking the GeoJSON data into smaller files, each containing data for **upto 50 organizations**

# GeoJSON for Multiple Organizations

```json
{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "organisationUnit": "Organization 1",
        "id": "Org_1"
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [80.606141271502622, 30.466972730007456],
            [80.6073785911492, 30.466901345420865],
            [80.608000000000000, 30.467000000000000],
            [80.606141271502622, 30.466972730007456]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "organisationUnit": "Organization 2",
        "id": "Org_2"
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [80.606500000000000, 30.468000000000000],
            [80.607700000000000, 30.467800000000000],
            [80.608200000000000, 30.468200000000000],
            [80.606500000000000, 30.468000000000000]
          ]
        ]
      }
    }
    // Add 48 more organizations here
  ]
}
```

---

<div class="post-metadata">

**Author:** ![Shapr0019](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/shapr0019/32/44336_2.png) [@Shapr0019](https://community.dhis2.org/u/Shapr0019)\
**Post date:** [7 November 2024 09:32 UTC](https://community.dhis2.org/t/how-import-shapefiles-in-dhis2-geo-coordinates-boundaries-in-dhis2/61988/8 "2024-11-07T09:32:33Z")

</div>

@rcpoudel thank you very much, worked now
