Import results from GeoTag-X.
geokey-geotagx requires:
- Python version 2.7
- GeoKey version 1.0 or greater
Install the extension from PyPI:
pip install geokey-geotagxOr from cloned repository:
cd geokey-geotagx
pip install -e .Add the package to installed apps:
INSTALLED_APPS += (
...
'geokey_geotagx',
)You're now ready to go!
Update the geokey-dataimports from PyPI:
pip install -U geokey-geotagxRun tests:
python manage.py test geokey_geotagxCheck code coverage:
coverage run --source=geokey_geotagx manage.py test geokey_geotagx
coverage report -m --omit=*/tests/*,*/migrations/*To import results POST a feature collection:
POST /api/geotagx/:project_id/import/
Content-Type: application/json
{
"type": "FeatureCollection",
"features": []
}Returns (if successful):
HTTP/1.1 201 Created
Objects created