Web server for val3dity/prepair
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
prepair
schemacitygml
val3dity
welcome
.gitignore
LICENSE
README.md
geovalidation.cfg
runserver.py
setup.py

README.md

geovalidation.server

Flask-based server for some of our geovalidation tools:

  1. val3dity
  2. prepair

These 2 should be installed and compiled, also the python scripts inside val3dity/resources/... are used (to convert GML to another format.)

Installation

First, Redis must be installed.

The recommended way to install the geovalidation server is using virtualenv and pip. Assuming you have working python (2.7.x) installation with these utilities, run these commands:

virtualenv venv
source venv/bin/activate
pip install git+https://github.com/tudelft3d/geovalidation.server.git

Edit the configuration file geovalidation.cfg for you server and export them:

export GEOVALIDATION_SETTINGS=/path/to/geovalidation.cfg

Folders to store (temporary) results and uploaded files

cd val3dity
mkdir uploads
mkdir reports
mkdir tmp

sqlite database

A small database (val3dity.sql) must be used to store the results:

sqlite3 val3dity.sqlite < schema.sql

Running the server

redis-server
celery -A val3dity.celery worker
python runserver.py

Although for production use, you should use a proper WSGI server such as gunicorn.