Skip to content

Instantly share code, notes, and snippets.

@anjesh
Created June 5, 2014 16:14
Show Gist options
  • Save anjesh/e1e274e494c66b20a35e to your computer and use it in GitHub Desktop.
Save anjesh/e1e274e494c66b20a35e to your computer and use it in GitHub Desktop.
ogr2ogr -f "GeoJSON" Baglung.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Baglung'"
ogr2ogr -f "GeoJSON" Mustang.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Mustang'"
ogr2ogr -f "GeoJSON" Myagdi.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Myagdi'"
ogr2ogr -f "GeoJSON" Parbat.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Parbat'"
ogr2ogr -f "GeoJSON" Bhaktapur.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Bhaktapur'"
ogr2ogr -f "GeoJSON" Dhading.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Dhading'"
ogr2ogr -f "GeoJSON" Kathmandu.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Kathmandu'"
ogr2ogr -f "GeoJSON" Kavrepalanchok.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Kavrepalanchok'"
ogr2ogr -f "GeoJSON" Lalitpur.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Lalitpur'"
ogr2ogr -f "GeoJSON" Nuwakot.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Nuwakot'"
ogr2ogr -f "GeoJSON" Rasuwa.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Rasuwa'"
ogr2ogr -f "GeoJSON" Sindhupalchok.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Sindhupalchok'"
ogr2ogr -f "GeoJSON" Dhanusa.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Dhanusa'"
ogr2ogr -f "GeoJSON" Dolakha.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Dolakha'"
ogr2ogr -f "GeoJSON" Mahottari.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Mahottari'"
ogr2ogr -f "GeoJSON" Ramechhap.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Ramechhap'"
ogr2ogr -f "GeoJSON" Sarlahi.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Sarlahi'"
ogr2ogr -f "GeoJSON" Sindhuli.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Sindhuli'"
ogr2ogr -f "GeoJSON" Bara.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Bara'"
ogr2ogr -f "GeoJSON" Makwanpur.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Makwanpur'"
ogr2ogr -f "GeoJSON" Parsa.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Parsa'"
ogr2ogr -f "GeoJSON" Rautahat.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Rautahat'"
ogr2ogr -f "GeoJSON" Chitawan.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Chitawan'"
ogr2ogr -f "GeoJSON" Bhojpur.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Bhojpur'"
ogr2ogr -f "GeoJSON" Dhankuta.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Dhankuta'"
ogr2ogr -f "GeoJSON" Morang.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Morang'"
ogr2ogr -f "GeoJSON" Sankhuwasabha.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Sankhuwasabha'"
ogr2ogr -f "GeoJSON" Sunsari.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Sunsari'"
ogr2ogr -f "GeoJSON" Terhathum.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Terhathum'"
ogr2ogr -f "GeoJSON" Ilam.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Ilam'"
ogr2ogr -f "GeoJSON" Jhapa.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Jhapa'"
ogr2ogr -f "GeoJSON" Panchthar.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Panchthar'"
ogr2ogr -f "GeoJSON" Taplejung.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Taplejung'"
ogr2ogr -f "GeoJSON" Khotang.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Khotang'"
ogr2ogr -f "GeoJSON" Okhaldhunga.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Okhaldhunga'"
ogr2ogr -f "GeoJSON" Saptari.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Saptari'"
ogr2ogr -f "GeoJSON" Siraha.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Siraha'"
ogr2ogr -f "GeoJSON" Solukhumbu.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Solukhumbu'"
ogr2ogr -f "GeoJSON" Udayapur.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Udayapur'"
ogr2ogr -f "GeoJSON" Baitadi.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Baitadi'"
ogr2ogr -f "GeoJSON" Dadeldhura.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Dadeldhura'"
ogr2ogr -f "GeoJSON" Darchula.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Darchula'"
ogr2ogr -f "GeoJSON" Kanchanpur.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Kanchanpur'"
ogr2ogr -f "GeoJSON" Achham.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Achham'"
ogr2ogr -f "GeoJSON" Bajhang.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Bajhang'"
ogr2ogr -f "GeoJSON" Bajura.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Bajura'"
ogr2ogr -f "GeoJSON" Doti.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Doti'"
ogr2ogr -f "GeoJSON" Kailali.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Kailali'"
ogr2ogr -f "GeoJSON" Banke.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Banke'"
ogr2ogr -f "GeoJSON" Bardiya.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Bardiya'"
ogr2ogr -f "GeoJSON" Dailekh.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Dailekh'"
ogr2ogr -f "GeoJSON" Jajarkot.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Jajarkot'"
ogr2ogr -f "GeoJSON" Surkhet.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Surkhet'"
ogr2ogr -f "GeoJSON" Dolpa.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Dolpa'"
ogr2ogr -f "GeoJSON" Humla.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Humla'"
ogr2ogr -f "GeoJSON" Jumla.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Jumla'"
ogr2ogr -f "GeoJSON" Kalikot.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Kalikot'"
ogr2ogr -f "GeoJSON" Mugu.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Mugu'"
ogr2ogr -f "GeoJSON" Dang.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Dang'"
ogr2ogr -f "GeoJSON" Pyuthan.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Pyuthan'"
ogr2ogr -f "GeoJSON" Rolpa.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Rolpa'"
ogr2ogr -f "GeoJSON" Rukum.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Rukum'"
ogr2ogr -f "GeoJSON" Salyan.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Salyan'"
ogr2ogr -f "GeoJSON" Gorkha.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Gorkha'"
ogr2ogr -f "GeoJSON" Kaski.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Kaski'"
ogr2ogr -f "GeoJSON" Lamjung.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Lamjung'"
ogr2ogr -f "GeoJSON" Manang.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Manang'"
ogr2ogr -f "GeoJSON" Syangja.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Syangja'"
ogr2ogr -f "GeoJSON" Tanahu.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Tanahu'"
ogr2ogr -f "GeoJSON" Kapilbastu.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Kapilbastu'"
ogr2ogr -f "GeoJSON" Arghakhanchi.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Arghakhanchi'"
ogr2ogr -f "GeoJSON" Gulmi.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Gulmi'"
ogr2ogr -f "GeoJSON" Nawalparasi.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Nawalparasi'"
ogr2ogr -f "GeoJSON" Palpa.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Palpa'"
ogr2ogr -f "GeoJSON" Rupandehi.json NPL_adm4.shp -sql "select NAME_2 AS ZONE,NAME_3 AS DISTRICT, NAME_4 AS VDC from NPL_adm4 where NAME_3='Rupandehi'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment