Skip to content

fahim-muntasir-niloy/Bangladesh-geojson_project

Repository files navigation

About the project

Geo json files contain the lat-long informations about any place, so that it can be mapped. Every country has their unique geo json, that can be used for visualizations. However, for Bangladesh, the updated geojson file along with example was not available. This repo is aimed to solve this issue.

Download Original Shape File

Shape files in SHP format: [Bangladesh - Subnational Administrative Boundaries] (Original Source)
From there, download the file: bgd_adm_bbs_20201113_SHP.zip (186.6M)

Extract and save the 64 files in a folder.

Converting Shape Files

  1. adm = Administration Regions
  2. adm0 = Entire Bangladesh
  3. adm1 = 8 Divisions
  4. adm2 = 64 Districts/Zilas
  5. adm3 = 492 Upazilas
  6. adm4 = 5160 Thanas/Unions

The folder Geo Json Maps contains the geo json files of 2,3 and 4. You can do for the rest if needed.

import shapeTojson
from osgeo import ogr


shapeTojson.shp2json('Shape_files/path_to_shp_file.shp')

Source of converter function: Yash Sanghvi

Installing Osgeo to import ogr: Open Source Geo Spatial Foundation

Working with Geo Json File

  • All the instructions given in the bd map.ipynb file.

  • A friendly tutorial on choropleth map using plotly can be found here.

If this repo helps you, consider giving it a star. Thanks ❤️

Acknowledgments

The repo from Yasser Aziz inspired this work.

About

The updated map of Bangladesh in geo json format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published