Read Sapelli project and load data from CSVs to GeoKey
Project description
geokey-sapelli
Sapelli support in GeoKey. This extension enables user to upload decision trees and data via the admin interfaces.
Installation instructions
Note: This guide assumes you have a working GeoKey installation.
Clone the repository:
git clone https://github.com/ExCiteS/geokey-sapelli.git
Install the package:
cd geokey-sapelli
pip install -e .
Go to your GeoKey installation and edit settings.py file (usually in local_settings\):
Add 'geokey_sapelli', to the INSTALLED_APPS list.
Add the absolute path to the Sapelli jar file: SAPELLI_JAR = '/path/to/sapelli-collector-cmdln-2.0.0-SNAPSHOT-jar-with-dependencies.jar'
To use the extension via the API, first register a new OAuth application with Authorisation type password. You will then get the Client ID. Add the Client ID to your settings.py (usually in local_settings\) as follows:
SAPELLI_CLIENT_ID = 'YOUR_CLIENT_ID'
Add the data base tables:
python manage.py migrate geokey_sapelli
Restart the server.
Open a browser and go to the /admin/sapelli/ path on your GeoKey server (e.g. http://localhost:8080). If you see a page titled “Sapelli” you have correctly installed the geokey-sapelli extension.
To run tests specific to this extension go to your GeoKey installation folder and run:
python manage.py test geokey_sapelli
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.