Giter Club home page Giter Club logo

osmtm's Introduction

OpenStreetMap Tasking Manager

About

This application is intented to be used as a way to organize collaborative work on specific areas by defining workflows and tasks (tiles) to be achieved.

Installation

First clone the git repository:

git clone git://github.com/pgiraud/OSMTM.git

Update and load the submodules:

git submodule update --init

Installing OSMTM in a Virtual Python environment is recommended.

To create a virtual Python environment:

wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.tar.gz
tar xvzf virtualenv-1.7.tar.gz
python virtualenv-1.7/virtualenv.py --distribute --no-site-packages env
source env/bin/activate

To install OSMTM from source (the only option at this point) in the virtual Python environment execute the setup.py script:

cd OSMTM
python setup.py install

Previously, you may need to install some packages:

sudo apt-get install build-essential protobuf-compiler libprotobuf-dev libgeos-dev python-dev

Edit the development.ini file and change the admin_user variable to match your OSM username.

Run OSMTM

To run OSMTM the easiest is to use paster serve:

paster serve development.ini

Installation as a mod_wsgi Application

Install and enable mod_wsgi module in Apache:

sudo apt-get install libapache2-mod-wsgi

Create a new Apache config file with the following:

# Use only 1 Python sub-interpreter.  Multiple sub-interpreters                                                                                                                                                                                                                                                           
# play badly with C extensions.
WSGIPassAuthorization On
WSGIDaemonProcess OSMTM_process user=ubuntu group=ubuntu processes=1 \
   threads=4 \
   python-path=/home/ubuntu/env/lib/python2.6/site-packages
WSGIScriptAlias /OSMTM /home/ubuntu/env/OSMTM.wsgi
WSGIRestrictStdin Off

<Location /OSMTM>
    WSGIProcessGroup OSMTM_process
    WSGIApplicationGroup %{GLOBAL}
</Location>

You may need to adpat the user, group and paths values.

Create a new OSMTM.wsgi in your virtual env directory with the following:

import sys
sys.stdout = sys.stderr

from pyramid.paster import get_app    
application = get_app(
    '/home/ubuntu/OSMTM/production.ini', 'main')

You can then test config and restart Apache. Your application should be available at http://host.domain/OSMTM

osmtm's People

Contributors

elemoine avatar pmauduit avatar schuyler avatar tonio avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.