===================================
OS Widgets for DGU - CKAN Extension
This extension contains the Map Based Search and Map Preview pages, seen on data.gov.uk and developed in the main by Ordnance Survey.
Licence
All of this code is [c] Crown Copyright. Ordnance Survey developed the search and preview widgets, which were integrated into this CKAN extension by Cabinet Office.
This software is licensed pursuant to the terms of the BSD 3 Clause License, which can be found at: http://opensource.org/licenses/BSD-3-Clause
Although the code is open source, the mapping and gazetteer services at osinspiremappingprod.ordnancesurvey.co.uk are provided by Ordnance Survey exclusively for data.gov.uk use in support of UKLII. Please contact Ordnance Survey for details of their commercially-provided mapping services.
Install & Configuration
To install this extension’s code into your pyenv::
pip install -e git+https://github.com/datagovuk/ckanext-os#egg=ckanext-os
Now configure the parts of the extension that you want to enable, using the instructions in the sections below.
Widgets
To enable the OS widgets, in your CKAN config add to ckan.plugins items, as follows::
ckan.plugins = os_search os_preview
To improve performance of the geoserver WFS calls (for boundary information) configure a proxy in the Apache config (osinspiremappingprod.ordnancesurvey.co.uk is used here as an example only - it is for data.gov.uk use only)::
ProxyPass /geoserver/ http://osinspiremappingprod.ordnancesurvey.co.uk/geoserver/
ProxyPassReverse /geoserver/ http://osinspiremappingprod.ordnancesurvey.co.uk/geoserver/
and enable Apache modules: mod_proxy and mod_proxy_http::
sudo a2enmod proxy_http
To configure the servers used in the widgets, put the following lines in your ckan configuration file and change the values from the defaults shown (osinspiremappingprod.ordnancesurvey.co.uk is used here as