Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 43 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ name: CI

on:
push:
branches:
- main
pull_request:
merge_group:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
Expand All @@ -15,7 +20,7 @@ jobs:
steps:
- name: Dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential pkg-config libclang-dev libgdal-dev

- name: Checkout
uses: actions/checkout@v4

Expand All @@ -27,9 +32,45 @@ jobs:

- name: Format
run: cargo fmt --all -- --check

- name: Clippy
run: cargo clippy --workspace --all-features --all-targets -- -D warnings

- name: Test
run: cargo test --workspace --all-features --all-targets

ogc-compliance:
name: Validate OGC API Compliance
runs-on: ubuntu-latest

steps:
- name: Dependencies
run: sudo apt-get update && sudo apt-get install -y libgdal-dev

- name: Checkout
uses: actions/checkout@v4

- name: Setup
run: docker compose up db -d

- name: Start service
run: |
cargo run -p demo-service &
npx wait-on http://localhost:8484/

- name: Validate service
uses: geo-engine/ogc-validator@v2
with:
service-url: http://localhost:8484/
ogc-api-processes: true
ogc-api-processes-container-tag: 1.3-teamengine-6.0.0-RC2
echoprocessid: echo
# cf. <https://github.com/opengeospatial/ets-ogcapi-processes10/issues/106>
ogc-api-processes-ignore: |-
testJobCreationInputValidation
testJobCreationInputRef
ogc-api-features: true
ogc-api-features-container-tag: 1.9-teamengine-6.0.0-RC2
ogc-api-features-ignore: |-
featureOperation
validateFeatureResponse
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Dynamic OpenAPI definition extration.
- Dynamic OpenAPI definition extraction.
- Async OGC API - Processes execution (jobs).
- Multipart/related response support for raw OGC API - Processes results with multiple outputs.
- Echo process for testing.

### Fixed

- Respect process execution `response` parameter
- Service URL for OGC API - Features

### Changed

- Make features opt-out rather than opt-in for released standards.
- Allow integers for feature id.
- Build documentation for all features.
- Output type for OGC API - Processes trait (execute).
- Changed fields to status database model for OGC API - Processes.

## [0.3.0] - 2025-04-05

Expand Down
69 changes: 62 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ cargo clippy --workspace --all-features --all-targets
```bash
podman run --network host docker.io/ogccite/ets-ogcapi-features10
# podman run --network host docker.io/ogccite/ets-ogcapi-edr10
# podman run --network host docker.io/ogccite/ets-ogcapi-processes10
```

Navigate to <http://localhost:8080/teamengine/> to execute the test suite. For documentation and more info see <https://cite.opengeospatial.org/teamengine/about/ogcapi-features-1.0/1.0/site>.
Expand Down
12 changes: 8 additions & 4 deletions examples/demo-service/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ use clap::Parser;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};

use ogcapi::{
processes::{gdal_loader::GdalLoader, geojson_loader::GeoJsonLoader, greeter::Greeter},
processes::{
echo::Echo,
// gdal_loader::GdalLoader, geojson_loader::GeoJsonLoader, greeter::Greeter
},
services::{AppState, Config, Service},
};

Expand All @@ -25,9 +28,10 @@ async fn main() {

// Register processes/processors
let state = state.processors(vec![
Box::new(Greeter),
Box::new(GeoJsonLoader),
Box::new(GdalLoader),
// Box::new(Greeter),
// Box::new(GeoJsonLoader),
// Box::new(GdalLoader),
Box::new(Echo),
]);

// Build & run with hyper
Expand Down
Loading
Loading