An open API service indexing awesome lists of open source software.

https://github.com/eoxserver/http_access

Django app that enables http access to EOxServer data via multipart requests
https://github.com/eoxserver/http_access

django django-application raster

Last synced: 5 months ago
JSON representation

Django app that enables http access to EOxServer data via multipart requests

Awesome Lists containing this project

README

          

# http_access

An extension of `eoxserver` that allows direct http access and range requests to access
raster data.

## Install

To add to a django instance, edit the following files:

`settings.py`

```python
INSTALLED_APPS = (
...
'http_access'
)
```

`urls.py`

```python

urlpatterns = [
...
re_path(r'^http/', include('http_access.urls'))
]

```

## Usage

The files can directly be accessed with http range requests with the `Range` header, the
storage name (`STORAGE_NAME`) and the path to the file (`/PATH/TO/FILE`) in the storage.

```shell
curl -i -H "Range: bytes=15-60" http://host.com/http/storage//
```

When the file is not located on a storage, but on a local filesystem, the following request is to be used:

```shell
curl -i -H "Range: bytes=15-60" http://host.com/http/local/
```