Skip to content

nizantz/Rajasthan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map of Rajasthan
----------------

Setup (on Mac OS X):
===================
Install Node (http://nodejs.org/). Use HomeBrew (http://brew.sh/) to install node.

##Open Terminal on Mac OS X and Run the following
$brew install node

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

2. Install git and node.
===========================================
brew install git node

3. Checkout out project.
===========================================
git clone https://github.com/nizantz/Rajasthan.git

4. Run test server.
===========================================
cd Rajasthan
sudo npm install
gulp

5. Open in browser.
===========================================
http://localhost:9090/

Steps to generate JSON for Rajasthan (State of India)
=====================================================
##Download the Geo Data for India (shapefiles). 
Note that this would contain the undisputed part of Indian territory only.
Google for IND_ADM.zip file
(http://archive.lib.msu.edu/maps/public/GISData/ OR http://www.naturalearthdata.com/downloads/10m-cultural-vectors/)

*Unzip the folder IND_ADM and this is what you should see :
├── IND_adm0.csv
├── IND_adm0.dbf
├── IND_adm0.prj
├── IND_adm0.shp
├── IND_adm0.shx
├── IND_adm1.csv
├── IND_adm1.dbf
├── IND_adm1.prj
├── IND_adm1.shp
├── IND_adm1.shx
├── IND_adm2.csv
├── IND_adm2.dbf
├── IND_adm2.prj
├── IND_adm2.shp
├── IND_adm2.shx
├── IND_adm3.csv
├── IND_adm3.dbf
├── IND_adm3.prj
├── IND_adm3.shp
├── IND_adm3.shx
└── read_me.pdf

##Download the Disputed territories shape file as well 
(source : http://www.naturalearthdata.com/downloads/10m-cultural-vectors/)
*Unzip the folder IND_ADM and this is what you should see

├── ne_10m_admin_0_disputed_areas_scale_rank_minor_islands.README.html
├── ne_10m_admin_0_disputed_areas_scale_rank_minor_islands.VERSION.txt
├── ne_10m_admin_0_disputed_areas_scale_rank_minor_islands.cpg
├── ne_10m_admin_0_disputed_areas_scale_rank_minor_islands.dbf
├── ne_10m_admin_0_disputed_areas_scale_rank_minor_islands.prj
├── ne_10m_admin_0_disputed_areas_scale_rank_minor_islands.shp
├── ne_10m_admin_0_disputed_areas_scale_rank_minor_islands.shx

##Now we would work with the .shp files only (SHAPE files) to convert into JSON
For this we need the following tools installed :
 * gdal (Geospatial Data Abstraction Library - http://www.gdal.org ) which would also install tool ogr2ogr (http://www.gdal.org/ogr2ogr.html)
  
  $brew install gdal  
  

You might need to use sudo if you do get permission denied errors.
Now we convert the SHAPE data for INDIA to JSON. Go to the IND_ADM folder and run the following command line :

##For extracting data for Rajasthan

ogr2ogr -f GeoJSON -where "NAME_1 IN ('Rajasthan')" raj.json IND_adm1.shp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published