https://github.com/angelodlfrtr/relevation
GRPC elevation server based on gdal data
https://github.com/angelodlfrtr/relevation
elevation gdal grpc
Last synced: 3 months ago
JSON representation
GRPC elevation server based on gdal data
- Host: GitHub
- URL: https://github.com/angelodlfrtr/relevation
- Owner: angelodlfrtr
- License: mit
- Created: 2021-12-06T11:46:27.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T21:00:55.000Z (over 3 years ago)
- Last Synced: 2024-04-15T00:19:07.394Z (over 1 year ago)
- Topics: elevation, gdal, grpc
- Language: Rust
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GRPC elevation service based on gdal data
Relevation expose a GRPC interface to retrieve elevation data from geo points from GDAL tiles.
# TODO
- [ ] LRU in memory cache
- [ ] Authentication
- [ ] HTTP api over grpc
- [ ] Tests
- [ ] Documentation# Usage
**Under active development**
## Run server
```
relevation run [path to toml config]
```## Example config
```toml
host = "127.0.0.1"
port = 50051[[sources]]
id = "some-source-id"
name = "Some Source"
link = "http://link-to-source-data.tld"
attributions = '''
Some authors attributions if needed
'''
resolution = 30
path = "/path/to/root/folder/some-source-folder"
```## Log level
Set the env variable `RELEVATION_LOG` to `debug`, `info`, `warn`, ...
## Test server
```sh
grpcurl -plaintext -import-path ./proto -proto ./proto/relevation.proto -d '' [::]:50051 relevation.Relevation/Ping
grpcurl -plaintext -import-path ./proto -proto relevation.proto -d '{"point": { "lat": 0, "lng": 0 }}' [::]:50051 relevation.Relevation/GetElevation# Query for Paris
grpcurl -plaintext -import-path ./proto -proto relevation.proto -d '{"point": { "lat": 48.864716, "lng": 2.349014 }}' [::]:50051 relevation.Relevation/GetElevation
```## Split geotiff data
```sh
./scripts/create-tiles.sh source.tif 10 10
```# LICENSE
See `LICENSE`.