{"id":19618597,"url":"https://github.com/cleder/os-opendata-edubase","last_synced_at":"2025-10-10T03:34:33.433Z","repository":{"id":8564614,"uuid":"53517852","full_name":"cleder/os-opendata-edubase","owner":"cleder","description":"  This application was built to enable a quick overview and import of existing open data into OpenStreetMap. It tries to demonstrate a possible approach and can serve as a blueprint to build your own Application.","archived":false,"fork":false,"pushed_at":"2024-09-20T10:11:40.000Z","size":2129,"stargazers_count":10,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T21:32:41.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cleder.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-03-09T17:36:03.000Z","updated_at":"2024-10-10T16:34:34.000Z","dependencies_parsed_at":"2023-01-11T19:31:45.880Z","dependency_job_id":"736ab0af-67f7-40ca-9c88-92199de6dab7","html_url":"https://github.com/cleder/os-opendata-edubase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cleder/os-opendata-edubase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fos-opendata-edubase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fos-opendata-edubase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fos-opendata-edubase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fos-opendata-edubase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleder","download_url":"https://codeload.github.com/cleder/os-opendata-edubase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleder%2Fos-opendata-edubase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002620,"owners_count":26083425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T11:10:03.724Z","updated_at":"2025-10-10T03:34:33.413Z","avatar_url":"https://github.com/cleder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nIntroduction\n============\n\nThis application was built to enable a quick overview and import of existing\nopen data into OpenStreetMap_. It tries to demonstrate a possible approach\nand can serve as a blueprint to build your own Application.\n\nGetting Started\n----------------\n\nClone this repository with `git clone https://github.com/cleder/os-opendata-edubase.git`\n\n`Download Vagrant\u003chttps://www.vagrantup.com/downloads.html\u003e`_ and\n`install it\u003chttps://www.vagrantup.com/docs/installation/\u003e`_ on your machine.\n\nChange into the cloned directory and execute `vagrant up`\n\nThis will build the virtual machine and set up the database.\n\n\nData\n----\n\nThe Data is derived from:\n\n'Code-Point' Open and 'OS Open Map - Local' from ordnancesurvey_\n'All EduBase data.csv' from edubase_\n'School Contact Details' from the  Scottish Government seed_\n\nFrom https://www.ordnancesurvey.co.uk/opendatadownload/products.html\nyou have to download the\n**`OS Open Map - Local`** (all squares) and **`Code-Point Open`** Products.\n\nYou will also need the csv files from EduBase and seed for the schooldata\n**`All EduBase data.csv`** from http://www.education.gov.uk/edubase/home.xhtml\nand **`School contact details`** from\nhttp://www.gov.scot/Topics/Statistics/Browse/School-Education/Datasets/contactdetails\n\nThe latter is in excel format and has to be converted into csv before\nusing it.\nRemove the first 5 Rows so that the column titles ar in the top row.\nThe headers must be:\n'SeedCode',\n'LA Name',\n'Centre Type',\n'School Name',\n'Address 1',\n'Address 2',\n'Address 3',\n'Post code',\n'E-mail',\n'Phone',\n'Primary_school',\n'Secondary',\n'Special',\n'Primary roll',\n'Secondary roll',\n'Special roll',\n'Primary1',\n'Secondary1',\n'Special1',\n'Denomination'\nso rename them accordingly and remove the columns (`6-Fold Urban/rural measure(1)` and following)\nnot included here.\n\nPut the data from the above sources into the `fabric/data` directory.\nIt should have these files in it::\n\n    seeddata2015.csv\n    edubasealldata20160308.csv\n    codepo_gb.zip\n    opmplc_essh_hp.zip\n    opmplc_essh_ht.zip\n    opmplc_essh_hu.zip\n    opmplc_essh_hw.zip\n    opmplc_essh_hx.zip\n    opmplc_essh_hy.zip\n    opmplc_essh_hz.zip\n    opmplc_essh_na.zip\n    opmplc_essh_nb.zip\n    opmplc_essh_nc.zip\n    opmplc_essh_nd.zip\n    opmplc_essh_nf.zip\n    opmplc_essh_ng.zip\n    opmplc_essh_nh.zip\n    opmplc_essh_nj.zip\n    opmplc_essh_nk.zip\n    opmplc_essh_nl.zip\n    opmplc_essh_nm.zip\n    opmplc_essh_nn.zip\n    opmplc_essh_no.zip\n    opmplc_essh_nr.zip\n    opmplc_essh_ns.zip\n    opmplc_essh_nt.zip\n    opmplc_essh_nu.zip\n    opmplc_essh_nw.zip\n    opmplc_essh_nx.zip\n    opmplc_essh_ny.zip\n    opmplc_essh_nz.zip\n    opmplc_essh_ov.zip\n    opmplc_essh_sd.zip\n    opmplc_essh_se.zip\n    opmplc_essh_sh.zip\n    opmplc_essh_sj.zip\n    opmplc_essh_sk.zip\n    opmplc_essh_sm.zip\n    opmplc_essh_sn.zip\n    opmplc_essh_so.zip\n    opmplc_essh_sp.zip\n    opmplc_essh_sr.zip\n    opmplc_essh_st.zip\n    opmplc_essh_su.zip\n    opmplc_essh_sv.zip\n    opmplc_essh_sw.zip\n    opmplc_essh_sx.zip\n    opmplc_essh_sy.zip\n    opmplc_essh_sz.zip\n    opmplc_essh_ta.zip\n    opmplc_essh_tf.zip\n    opmplc_essh_tg.zip\n    opmplc_essh_tl.zip\n    opmplc_essh_tm.zip\n    opmplc_essh_tq.zip\n    opmplc_essh_tr.zip\n    opmplc_essh_tv.zip\n    oprvrs_essh_gb.zip\n\n\nImport\n------\n\nConnect to your vagrant box with `vagrant ssh`.\n\nInside the box execute the commands::\n\n    cd os-edu-server/fabric/\n    source venv/bin/activate\n    fab init_db\n    exit\n\n\nIf all goes well you can now connect to the database and inpect the\ndata. Leave the Box with\n\n\n\nStarting the Django application\n--------------------------------\n\nConnect to your vagrant box with `vagrant ssh`.\n\n\nActivate the virtual environment and start django::\n\n    vagrant@vagrant-ubuntu-trusty-64:~$ cd os-edu-server/django/\n    vagrant@vagrant-ubuntu-trusty-64:~/os-edu-server/django$ source venv/bin/activate\n    (venv)vagrant@vagrant-ubuntu-trusty-64:~/os-edu-server/django$ python manage.py migrate\n    (venv)vagrant@vagrant-ubuntu-trusty-64:~/os-edu-server/django$ python manage.py createsuperuser\n    (venv)vagrant@vagrant-ubuntu-trusty-64:~/os-edu-server/django$ python manage.py runserver 0.0.0.0:8000\n\n\nGoto `http://localhost:8017/` in your browser.\n\nClick on login to start\n\n.. image:: https://raw.github.com/cleder/os-opendata-edubase/master/docs/login.png\n\nOnce authenticated start by clicking on *start*\n\n.. image:: https://raw.github.com/cleder/os-opendata-edubase/master/docs/logged_in.png\n\nIf data from OSM is available it will display as an amber polygon, The Data from\nOrdnancesurvey is displayed as a blue polygon and the data from seed/edubase as\na blue marker. Below the map details of this data is displayed.\n\n.. image:: https://raw.github.com/cleder/os-opendata-edubase/master/docs/assign.png\n\nIf there is no openstreetmap data only the Ordnancesurvey data is displayed.\n\n.. image:: https://raw.github.com/cleder/os-opendata-edubase/master/docs/assign-nosm.png\n\nIf there is no data from edubase or seed (i.e. outdated OS-Open data - school is closed):\n\n.. image:: https://raw.github.com/cleder/os-opendata-edubase/master/docs/assign-no-school.png\n\nThe below image indicates that the school that once existed here was closed:\n\n.. image:: https://raw.github.com/cleder/os-opendata-edubase/master/docs/assign-osm-no-edudata.png\n\nYou can switch between OpenStreetMap\n\n.. image:: https://raw.github.com/cleder/os-opendata-edubase/master/docs/bg-osm.png\n\nand satellite imagery.\n\n.. image:: https://raw.github.com/cleder/os-opendata-edubase/master/docs/bg-sat.png\n\n\nTODO\n----\n\n.. _ordnancesurvey: https://www.ordnancesurvey.co.uk/opendatadownload/products.html\n.. _edubase: http://www.education.gov.uk/edubase/home.xhtml\n.. _seed: http://www.gov.scot/Topics/Statistics/Browse/School-Education/Datasets/contactdetails\n.. _OpenStreetMap: https://www.openstreetmap.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleder%2Fos-opendata-edubase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleder%2Fos-opendata-edubase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleder%2Fos-opendata-edubase/lists"}