mapkibera / education

0 stars 1 forks source link

Import School Data from OpenData Kenya #1

Open mikelmaron opened 10 years ago

mikelmaron commented 10 years ago

Here's OpenDataKE data on primary and secondary schools https://www.opendata.go.ke/Education/Nairobi-Primary-and-Secondary-Schools/5rfy-ghjf https://www.opendata.go.ke/Education/Kenya-Primary-Schools-2007/p452-xb7c https://www.opendata.go.ke/Education/Kenya-Secondary-Schools-2007/i6vz-a543

mikelmaron commented 10 years ago

Socrata does not export in standard formats. Process to convert to GeoJSON, covering only Nairobi, is as follows.

https://github.com/mapkibera/education/blob/master/data/Kenya_Primary_Schools__2007.csv

cat Kenya_Primary_Schools__2007.csv  | perl -pi.back -e 's/\"\((.*), (.*)\)\"/$1,$2/g;' > Kenya_Primary_Schools__2007_geo.csv

https://github.com/mapkibera/education/blob/master/data/Kenya_Primary_Schools__2007_geo.csv

This part could be scripted, but just did manually for now.

https://github.com/mapkibera/education/blob/master/data/Kenya_Primary_Schools_2007_Nairobi.geojson