Coder Social home page Coder Social logo

mokhlesurrahman / bangladesh-geojson_project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fahim-muntasir-niloy/bangladesh-geojson_project

0.0 0.0 0.0 13.25 MB

The updated map of Bangladesh in geo json format.

Python 4.58% Jupyter Notebook 95.42%

bangladesh-geojson_project's Introduction

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.

bangladesh-geojson_project's People

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.