-
Notifications
You must be signed in to change notification settings - Fork 1
Home
This extension provides the MapStore integration into the CKAN Data Portal. Two additional plugins are available in order to manage:
- WMS preview using MapStore: This replaces the standard CKAN WMS Preview (data in CKAN WMS format) allowing to show WMS resources inside the MapStore WebGIS.
- GeoStore Harvesting: This plugin can be used in order to manage Harvest operations to GeoStore. New Datasets are created in CKAN and populated from the GeoStore's resources (basically the MapStore's maps).
In this case a new MAPSTORE format in CKAN is used from the CKAN MapStore plugin in order to show manage and show the preview inside the MapStore WebGIS.
In order to install the ckanext-mapstore, copy (or clone using git) the ckanext-mapstore directory inside the CKAN src directory (i.e. ckan/default/src).
Before using the plugin, the extension must installed into the CKAN virtual environment. Make sure your virtualenv is activated, change to the extension’s directory, and run python > setup.py develop:
[ckan@localhost ~]$. /usr/lib/ckan/default/bin/activate
[ckan@localhost ~]$cd /usr/lib/ckan/default/src/ckanext-mapstore
[ckan@localhost ~]$python setup.py develop`
The ckanext-mapstore is a common CKAN extension that can be enabled in your CKAN installation as usual editing the mySite.ini configuration file, as an instance:
ckan.plugins = stats pdf_preview harvest mapstore_preview geostore_harvester
In this case both plugins (mapstore_preview and geostore_harvester) are enabled. You have to restart your CKAN when done.
NOTE: The geostore_harvester extends the basic CKAN 'harvest', so this must be included if you want to us it.
You should now be able to start CKAN in the development web server and have it start up without any problems:
[ckan@localhost ~]$paster serve /etc/ckan/default/development.ini
Starting server in PID 13961.
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000`