Django web application to collect geospatial features and manage feature collection among groups of users
Django web application to collect geospatial features and manage feature collection among groups of users
GeoQ is an open source (MIT License) geographic tasking system that allows teams to collect geographic structured observations across a large area, but manage the work in smaller geographic regions. Large areas can be quickly broken up into small 1km squares and assigned to a team. System transparency informs all groups about workflow to avoid duplication of effort.
The GeoQ software was developed at the National Geospatial-Intelligence Agency (NGA) in collaboration with [The MITRE Corporation] (http://www.mitre.org). The government has "unlimited rights" and is releasing this software to increase the impact of government investments by providing developers with the opportunity to take things in new directions. The software use, modification, and distribution rights are stipulated within the [MIT] (http://choosealicense.com/licenses/mit/) license.
If you'd like to contribute to this project, please make a pull request. We'll review the pull request and discuss the changes. All pull request contributions to this project will be released under the MIT license.
Software source code previously released under an open source license and then modified by NGA staff is considered a "joint work" (see 17 USC § 101); it is partially copyrighted, partially public domain, and as a whole is protected by the copyrights of the non-government authors and must be released according to the terms of the original open source license.
For current news regarding GeoQ, see our Wiki Page
###This project relies heavily on open source packages, particularly:### Django under [BSD] (https://github.com/django/django/blob/master/LICENSE)
Leaflet under [BSD] (https://github.com/Leaflet/Leaflet/blob/master/LICENSE)
Postgres under [PostgreSQL license] (http://www.postgresql.org/about/licence/)
PostGIS under [GPL version 2] (http://opensource.org/licenses/gpl-2.0.php)
The geoq/settings.py file contains installation-specific settings. The Database name/pw and server URLs will need to be configured here.
Docker Installation::
Cloud Installation::
You can optionally deploy GeoQ with all dependencies to a Virtual Machine or a cloud VM (such as an Amazon Web Services EC2 box) by using the chef installer at https://github.com/ngageoint/geoq-chef-installer
Chef scripts are our preferred method of automating cloud builds
Mac OSX Development Build Instructions::
Install PostGIS 2.0 using instructions at https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#macosx. There are several options there, but for most, the easiest option is to follow the Homebrew instructions. If you don't have Homebrew installed, you can either buid it securely yourself or follow the quick (yet not secure) one line instruction at http://brew.sh.
Note for MITRE users: To install software by downloading from Internet, the computer should be connected to Outernet.
One exception: Instead of using brew to install postgres, it's usually easier to install Postgres.app from postgresapp.com. After installing, add the app's bin directory (/Applications/Postgres.app/Contents/Versions/X.Y/bin) to your PATH. After Postgres.app is installed, postGIS, gdal, and libgeoip need to be installed using the following commands:
$ brew install postgis
$ brew install gdal
$ brew install libgeoipNote: Homebrew needs to be installed to run these commands.
(Optional) Install a Geoserver (we recommend the OGC Geoserver at https://github.com/geoserver)
Make sure Python, Virtualenv, npm, and Git are installed
% Note that some distros (Debian) might need additional libraries:
% sudo pip install psycopg2
% (optional) sudo apt-get install sendmail
Install and setup geoq:
% mkdir -p ~/pyenv
% virtualenv --no-site-packages ~/pyenv/geoq
% source ~/pyenv/geoq/bin/activate
% git clone https://github.com/ngageoint/geoq
Create the database and sync dependencies and data:
% cd geoq
% pip install paver
% paver install_dependencies
% paver createdb
% paver create_db_user
% paver sync
Modify local settings (Modify entries below based on your system settings. Hit Ctl + D to save local settings file.):
% cd geoq
% cat > local_settings.py
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_PORT = 25
EMAIL_HOST = "localhost"
DEFAULT_FROM_EMAIL = "[email protected]"
MEDIA_ROOT = '/opt/src/pyenv/geoq/geoq-django'
STATIC_URL_FOLDER = ''
STATIC_ROOT = '{0}{1}'.format('/usr/src/static/', STATIC_URL_FOLDER)
GAMIFICATION_SERVER = ''
GAMIFICATION_PROJECT = ''
GEOSERVER_WFS_JOB_LAYER = ''Note: To test GeoQ front page after starting GeoQ server, set STATIC_ROOT as follows: STATIC_ROOT = '{0}{1}'.format('~/geoq-static/static/', STATIC_URL_FOLDER)
(Optional) Load development fixtures:
% paver install_dev_fixtures # creates an admin/admin superuser
Build user accounts:
% python manage.py createsuperuser
Install less and add its folder ("type -p less") to your bash profile:
% sudo npm install -g less
% sudo python manage.py collectstatic
Start it up!
% paver start_djangoCentOS Development build instructions (tested on CentOS 6.6)::
Dependencies
The following commands worked on a 64-bit CentOS 6.x system (as a privileged user):
% yum update
% yum localinstall https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-3.noarch.rpm
% rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
% yum install postgresql94-server postgresql94-plpython postgresql94-devel postgis2_94 postgis2_94-devel python-virtualenv python-pip nodejs nodejs-devel npm git mod_wsgi gcc
% service postgresql-9.4 initdb && service postgresql-9.4 startFrom a shell:
…All that's left is to create a super user account => python manage.py createsuperuser and then you're ready to start GEOQ!
paver start_djangoNo open issues yet, or sync has not completed.