https://github.com/spbima/centerline-docker
Docker image with HTTP API for centerline command-line tool centerline.readthedocs.io
https://github.com/spbima/centerline-docker
centerline centerline-detection docker docker-image gis spatial-data
Last synced: 5 months ago
JSON representation
Docker image with HTTP API for centerline command-line tool centerline.readthedocs.io
- Host: GitHub
- URL: https://github.com/spbima/centerline-docker
- Owner: spbima
- License: mit
- Created: 2022-12-05T14:33:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-12T14:26:32.000Z (over 3 years ago)
- Last Synced: 2024-01-29T20:50:49.001Z (over 2 years ago)
- Topics: centerline, centerline-detection, docker, docker-image, gis, spatial-data
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Centerline in docker
Docker image with HTTP API for centerline command-line tool [**centerline.readthedocs.io**](https://centerline.readthedocs.io).
Roads, rivers and similar linear structures are often represented by long and complex polygons. Since one of the most important attributes
of a linear structure is its length, extracting that attribute from a polygon can prove to be more or less difficult.
This library tries to solve this problem by creating the the polygon's centerline using the Voronoi diagram.
## Installation
Pull docker image from Docker Hub and run container
```bash
$ docker pull spbima/centerline
$ docker run -d --name centerline spbima/centerline
```
Or you can use **docker-compose** for running
Create file ``docker-compose.yml``
```yaml
version: '3'
services:
centerline:
container_name: centerline
image: spbima/centerline:0.6.4
restart: always
ports:
- "8000:8000"
```
And run container by command
```bash
$ docker-compose -f docker-compose.yml up -d
```
## Usage