Harvester for the Office for Spatial Development of the Canton of Zurich | Read-only mirror of https://github.com/ogdch/ckanext-zhgis — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 95.8%
  • Shell 4.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefan Oderbolz 021f02eafe Merge pull request #10 from ogdch/fixed-licenceurl
Fixed licence url for GIS-ZH data
2015-07-16 12:11:38 +02:00
ckanext fixed licence url for gis-zh data 2015-07-16 11:58:38 +02:00
scripts OGDCH-166: Adapt harvester daemon scripts 2013-10-29 00:52:01 +01:00
.gitignore Initial commit (based on ckanext-swisstopo) 2013-10-07 15:07:04 +02:00
.travis.yml Add travis build 2014-01-15 16:51:35 +01:00
build.sh Add travis build 2014-01-15 16:51:35 +01:00
LICENSE Initial commit (based on ckanext-swisstopo) 2013-10-07 15:07:04 +02:00
pip-requirements.txt Add travis build 2014-01-15 16:51:35 +01:00
pre-commit.sh PEP8 code style 2014-01-15 15:09:23 +01:00
README.md Add travis build 2014-01-15 16:51:35 +01:00
setup.cfg PEP8 code style 2014-01-15 15:09:23 +01:00
setup.py Initial commit (based on ckanext-swisstopo) 2013-10-07 15:07:04 +02:00

ckanext-zhgis

Build Status

Harvester for the Office for Spatial Development of the Canton of Zurich

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-zhgis.git#egg=ckanext-zhgis --src /home/www-data
cd /home/www-data/ckanext-zhgis
pip install -r pip-requirements.txt
python setup.py develop

Make sure to add zhgis and zhgis_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-zhgis zhgis_harvest gather_consumer -c development.ini &
paster --plugin=ckanext-zhgis zhgis_harvest fetch_consumer -c development.ini &
paster --plugin=ckanext-zhgis zhgis_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-zhgis zhgis csw <query> -c development.ini

# Show output from CSW, 'id' being the unique identifier of a dataset like 'b3bd50ae-b026-40a0-8b39-1cbcd4c4ac98'
paster --plugin=ckanext-zhgis zhgis cswid <id> -c development.ini