Harvester for the Federal Office of Topography swisstopo | Read-only mirror of https://github.com/ogdch/ckanext-swisstopo — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 96.8%
  • Shell 3.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefan Oderbolz 5c9b89d4e2 Merge pull request #9 from ogdch/fix-bafu-url
Add http:// to BAFU website URL
2014-02-21 08:51:41 +01:00
ckanext Add http:// to BAFU website URL 2014-02-21 08:49:11 +01:00
scripts Fix name of swisstopo harvester in daemon script 2013-09-09 10:02:22 +02:00
.gitignore initial commit 2013-05-30 16:49:05 +02:00
.travis.yml Added travis build. 2014-02-17 14:56:28 +01:00
build.sh OGDCH-175: Add tests for ckan_wms 2014-02-20 11:13:39 +01:00
LICENSE Add LICENSE and README 2013-09-14 07:37:21 +02:00
pip-requirements.txt Add pre-commit hook to check PEP8 code style 2013-12-16 18:26:01 +01:00
pre-commit.sh Add pre-commit hook to check PEP8 code style 2013-12-16 18:26:01 +01:00
README.md Add pre-commit hook to check PEP8 code style 2013-12-16 18:26:01 +01:00
setup.cfg OGDCH-175: Add tests for ckan_wms 2014-02-20 11:13:39 +01:00
setup.py Fixed typo in setup.py 2013-08-04 19:18:11 +02:00

ckanext-swisstopo

Harvester for the Federal Office of Topography swisstopo

Installation

Use pip to install this plugin. This example installs it in /home/www-data

source /home/www-data/pyenv/bin/activate
pip install -e git+https://github.com/ogdch/ckanext-swisstopo.git#egg=ckanext-swisstopo --src /home/www-data
cd /home/www-data/ckanext-swisstopo
pip install -r pip-requirements.txt
python setup.py develop

Make sure to add swisstopo and swisstopo_harvest to ckan.plugins in your config file.

For development

  • install the pre-commit.sh script as a pre-commit hook in your local repositories: ** ln -s ../../pre-commit.sh .git/hooks/pre-commit

Run harvester

source /home/www-data/pyenv/bin/activate
paster --plugin=ckanext-swisstopo swisstopo_harvest gather_consumer -c development.ini &
paster --plugin=ckanext-swisstopo swisstopo_harvest fetch_consumer -c development.ini &
paster --plugin=ckanext-swisstopo swisstopo_harvest run -c development.ini

CSW query:

source /home/www-data/pyenv/bin/activate
# Show output from CSW, 'query' is typically the name of a dataset like 'swissboundaries3D'
paster --plugin=ckanext-swisstopo swisstopo csw <query> -c development.ini