ckanext-ogcpreview
OGC (Open Geospatial Consortium) services preview extension for CKAN, developed for the National Geothermal Data System (NGDS).
Overview
This extension provides preview capabilities for OGC services including WMS (Web Map Service) and WFS (Web Feature Service) layers. Originally extracted from ckanext-geoserver.
Features
- WMS layer preview on map
- WFS feature preview
- Geoserver integration
- Secure access via proxy
- Layer information extraction from GetCapabilities
- Support for multiple OGC service versions
Requirements
- CKAN 2.x
- Geoserver
- OWSLib
Installation
Install the extension:
pip install -r requirements.txt
python setup.py develop
Add ogcpreview to your CKAN config plugins.
Configuration
Configure the ckan_web_map_service_url in tests_config.cfg for WMS server.
Run Tests
Step 1
Configure test files:
- ckanext-ogcpreview/test.ini: overrides ckan environment.ini variables
- ckanext-ogcpreview/ckanext/ogcpreview/tests/tests_config.cfg: configure ckan_web_map_service_url
Step 2
Run tests:
cd ckanext-ogcpreview/ckanext/ogcpreview
nosetests --ckan --with-pylons=../../test.ini tests/
Note
This repository was archived on April 15, 2021 and is now read-only.