ogcapi-proxy

Crates.ioogcapi-proxy
lib.rsogcapi-proxy
version0.2.0
created_at2025-10-31 11:38:52.750561+00
updated_at2025-12-12 16:30:02.875497+00
descriptionOGC API proxy service
homepage
repositoryhttps://codeberg.org/OpenGeoMesh/ogcapi-proxy
max_upload_size
id1909927
size87,109
(KrausMatthias)

documentation

https://docs.rs/ogcapi-proxy

README

ogcapi-proxy

This crate provides Tower Services for proxying OGC API Collections.

Status

This is still in early development, is not production ready and will have frequent breaking changes.

Example

use ogcapi_proxy::{CollectionsProxy, routes};

#[tokio::main]
async fn main() {
    let collections_proxy = CollectionsProxy::from(vec![
        (
            "proxied_lakes".to_string(),
            "https://demo.pygeoapi.io/stable/collections/lakes".to_string(),
        ),
        (
            "proxied_dutch_windmills_id".to_string(),
            "https://demo.pygeoapi.io/stable/collections/dutch_windmills".to_string(),
        ),
    ]);

    let router = routes(collections_proxy).await;

    let listener = tokio::net::TcpListener::bind("127.0.0.1:3000")
        .await
        .unwrap();
    println!("listening on {}", listener.local_addr().unwrap());
    axum::serve(listener, router).await.unwrap();
}
Commit count: 0

cargo fmt