This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of /home/git/repositories/ogdsquad/ckanext-swi…
…sstopo
- Loading branch information
Showing
25 changed files
with
1,683 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
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` | ||
|
||
```bash | ||
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. | ||
|
||
## Run harvester | ||
|
||
```bash | ||
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: | ||
|
||
```bash | ||
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 | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.