Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mangroveorg/georegistry
A RESTful Geospatial Health Index Service
https://github.com/mangroveorg/georegistry
Last synced: 5 days ago
JSON representation
A RESTful Geospatial Health Index Service
- Host: GitHub
- URL: https://github.com/mangroveorg/georegistry
- Owner: mangroveorg
- Created: 2011-04-01T15:41:30.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-07-13T14:57:14.000Z (over 13 years ago)
- Last Synced: 2024-08-02T12:48:45.155Z (3 months ago)
- Language: Python
- Homepage: http://api.georegistry.com
- Size: 954 KB
- Stars: 2
- Watchers: 38
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
- awesome-starred - mangroveorg/georegistry - A RESTful Geospatial Health Index Service (others)
README
georegistry - The Geospatial Health RESTful Webservice
=============================================================Written By: Alan Viars, et. al.
Copyright 2011 Columbia Univeristy / The Earth Institute
MongoDB Setup:
==============
Install MongoDB
::
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.8.2.tgz
tar zxvf mongodb-linux-x86_64-1.6.5.tgz
cd mongodb-linux-x86_64-1.6.5/binStart the database:
::
./mongod --dbpath=/home/alan/.data/
I like to add a line in my .basrc to easily start MongoDB
::
alias mgdb='/home/alan/.bin/mongodb-linux-x86_64-1.8.2/bin/mongod --dbpath=/home/alan/.data/'Enter the Mongo shell
::
>mongo
db = connect("localhost/georegistry02");
use ;
db..find();
db..find().forEach(printjson);Create Indexes
::
db..ensureIndex( { 'geometry_centroid' : "2d" } )
db..ensureIndex( { 'country_code' : 1 } )
db..ensureIndex( { 'id' : 1 } )Display everythin in the collection
::
db..find().forEach(printjson);Setup georegistry:
===========
These instruction may need to be modified based on your flavor/version of Linux/Unix.For example, you could install python-imaging with pip, by typing:
::
sudo pip install PILNoy you need to install
Setup on Ubuntu 10.10
::
sudo apt-get install lib-geos-c1 python-imaging git-core mercurlial build-essental python2.6-dev python-setuptools libdecodeqr0 libdecodeqr-dev libqrencode3 libqrencode-dev
sudo easy_install pip
git clone git://github.com/mvpdev/georegistry.git
cd georegistry
sudo pip install -r requirements.txt
python manage.py syncdb
python managae.py runserverNow that you have the server running, move on to the tutorial