Skip to content

HindustanTimesLabs/up-shape-scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

up-shape-scrape

Scrape geographic data files of UP used by the Election Commission of India on Shristi(GIS-UP).

Setup

git clone https://github.com/HindustanTimesLabs/up-shape-scrape
cd up-shape-scrape
npm install

Instructions

node scripts/scrape.js # scrape districts or lok sabha constituencies -> kml/[type]/
node scripts/merge.js # merge individual polygons into a big kml file -> kml/merged/
node scripts/convert.js # convert the kml into geojson -> json/

The final files are pretty big. You can significantly shrink the GeoJSON file without losing any of the borders' precision. A good tool for this is mapshaper, which has a nice GUI.

About

Scrape geographic data files for Uttar Pradesh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published