Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flaviostutz/wfs-tiler
A Mapbox Vector Tile provider that uses a WFS3 service as data source
https://github.com/flaviostutz/wfs-tiler
Last synced: 18 days ago
JSON representation
A Mapbox Vector Tile provider that uses a WFS3 service as data source
- Host: GitHub
- URL: https://github.com/flaviostutz/wfs-tiler
- Owner: flaviostutz
- License: mit
- Created: 2019-06-26T02:34:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T21:22:02.000Z (over 1 year ago)
- Last Synced: 2024-10-10T23:19:03.045Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 85 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wfs-tiler
[](https://hub.docker.com/r/flaviostutz/wfs-tiler)
A Mapbox Vector Tile provider that uses a WFS3 service as data source.
Useful for exposing huge data from WFS3 servers using vector tiles to avoid waste of unnecessary bandwidth and resource usage.By using vector tiles, the map will fetch data only on the map portions that are meant to be rendered according to viewport and zoom level.
Any WFS3.0 compliant source can be used (ex.: http://github.com/flaviostutz/wfsgis)
Watch a complete demo at https://youtu.be/pRMtTHFqrX0
Check https://github.com/flaviostutz/map-demos for visualization examples.
## Usage
* Create a docker-compose.yml:
```yml
version: '3.7'services:
wfs-tiler:
image: flaviostutz/wfs-tiler
ports:
- 3000:3000
restart: always
environment:
- WFS3_API_URL=http://wfsgis:8080
- CACHE_CONTROL=public,max-age=3600map-demos:
image: flaviostutz/map-demos
ports:
- 8181:80
environment:
- MAPBOX_VECTOR_TILE_URL=http://wfs-tiler:3000/tiles/tests/{z}/{x}/{y}.mvtwfsgis:
image: flaviostutz/wfsgis
ports:
- 8080:8080
restart: always
environment:
- POSTGRES_HOST=postgis
- POSTGRES_USERNAME=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DBNAME=adminpostgis:
image: mdillon/postgis:11-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=admin
```* Run 'docker-compose up'
* Runtime diagram
* Open sample visualization of the tiles at http://localhost:8181/
## ENVs
* WFS3_API_URL - WFS3 server URL. ex.: http://wfsserver.com
* CACHE_CONTROL - Cache control header added to HTTP responses. defaults to 'no-cache'
* LOG_LEVEL - debug,info,warn,error. defaults to 'info'
* SIMPLIFY_LEVEL - level of geometry simplification to be applied. the wider the zoom, the more simplification is applied. 0 for no simplification. defaults to '10'
* MIN_GEOM_LENGTH - depending on zoom level of the tile, 'small' geometries are hidden. this parameter determines this sense of 'small'. defaults to '3600'
* MAX_ZOOM_LEVEL - max zoom level permited. defaults '20'