https://github.com/francbartoli/gee-bridge
RESTful Web API bridge for Google Earth Engine calculations
https://github.com/francbartoli/gee-bridge
api django django-rest-framework gee google-earth-engine
Last synced: over 1 year ago
JSON representation
RESTful Web API bridge for Google Earth Engine calculations
- Host: GitHub
- URL: https://github.com/francbartoli/gee-bridge
- Owner: francbartoli
- License: other
- Created: 2017-06-02T14:15:01.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-06T17:23:08.000Z (over 7 years ago)
- Last Synced: 2025-03-01T04:41:37.814Z (over 1 year ago)
- Topics: api, django, django-rest-framework, gee, google-earth-engine
- Language: Python
- Homepage:
- Size: 4.51 MB
- Stars: 10
- Watchers: 5
- Forks: 4
- Open Issues: 24
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
**************************
Google Earth Engine Bridge
**************************
Rasterbuckets
=============
TODO
API
===
TODO
How to run
==========
Using Gunicorn
--------------
.. code-block:: console
(env)$ gunicorn gee_bridge.wsgi:application --bind 0.0.0.0:8000
Handle static assets
^^^^^^^^^^^^^^^^^^^^
Suppose your settings are configured as below:
.. code-block:: python
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'staticfiles')
STATIC_URL = '/static/'
# Extra places for collectstatic to find static files.
STATICFILES_DIRS = (
os.path.join(PROJECT_ROOT, 'static'),
)
Integrate Whitenoise
""""""""""""""""""""
Install the package:
.. code-block:: console
(env)$ pip install whitenoise
(env)$ pip freeze > requirements.txt
Embed this library in your application by editing the `wsgi.py` file:
.. code-block:: python
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
application = get_wsgi_application()
application = DjangoWhiteNoise(application)
Using Supervisord
-----------------
Create a configuration file:
.. code-block:: console
(env)$ echo_supervisord_conf > supervisord.conf
.. code-block:: console
(env)$ supervisord -c supervisord.conf