BBOX OGC API Features Service
Asynchronous OGC API Features server implementation.
Features:
- OGC API - Features - Part 1: Core 1.0
- OGC API - Features - Part 2: Coordinate Reference Systems by Reference 1.0
- OpenAPI endpoint
- Builtin storage backends: PostGIS, GeoPackage
- Output formats: GeoJSON
Configuration
Datasources:
[[]]
= "t_rex_tests"
[]
= "postgresql://t_rex:t_rex@127.0.0.1:5439/t_rex_tests"
[[]]
= "ne_extracts"
[]
= "assets/ne_extracts.gpkg"
Collections with auto detection:
[[]]
= "postgresql://t_rex:t_rex@127.0.0.1:5439/t_rex_tests"
[[]]
= "assets"
Collections:
[[]]
= "populated_places"
= "populated places"
= "Natural Earth populated places"
[]
= "ne_extracts"
= "ne_10m_populated_places"
With custom SQL query:
[[]]
= "populated_places_names"
= "populated places names"
= "Natural Earth populated places"
[]
= "ne_extracts"
= "SELECT fid, name, geom FROM ne_10m_populated_places"
= "geom"
= "fid"
Usage
Run feature server with bbox.toml configuration:
cargo run serve
or with a custom configuration:
cargo run -- --config=bbox-pg.toml serve
Inspect collections:
x-www-browser http://127.0.0.1:8080/collections
Feature requests:
curl -s http://127.0.0.1:8080/collections/populated_places/items | jq .
curl -s http://127.0.0.1:8080/collections/populated_places_names/items/2 | jq .