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
- Host: GitHub
- URL: https://github.com/eoxserver/http_access
- Owner: EOxServer
- License: mit
- Created: 2021-04-26T13:24:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-11T16:38:20.000Z (over 4 years ago)
- Last Synced: 2025-06-15T08:02:18.376Z (about 1 year ago)
- Topics: django, django-application, raster
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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/
```