Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.44 KB

File metadata and controls

60 lines (41 loc) · 1.44 KB

ogc-client Examples

This directory contains example scripts demonstrating how to use the ogc-client library.

Prerequisites

Before running these examples, you need to build the library:

npm install
npm run build

Running Examples

STAC API Query Example

Demonstrates querying a STAC (SpatioTemporal Asset Catalog) API endpoint:

node examples/stac-query.js

This example shows how to:

  • Connect to a STAC API endpoint
  • Retrieve endpoint information and capabilities
  • List all available collections
  • Get detailed collection metadata (extent, providers, license, etc.)
  • Query items with various filters:
    • Limit (pagination)
    • Bounding box (spatial filtering)
    • DateTime (temporal filtering)
  • Retrieve a single item
  • Build custom query URLs

The example queries the public STAC API at:

WPS Example (Ifremer Sextant demo)

Demonstrates interacting with a WPS (Web Processing Service) 1.0.0 endpoint:

node examples/wps-sextant.mjs

This example shows how to:

  • Connect to a WPS endpoint (GetCapabilities) and read service info
  • List the advertised processes
  • Describe a process (inputs / outputs)
  • Execute a process asynchronously and poll its status until completion

The example queries the public py-qgis-wps demo server at: