geo-infer-api

Expose geospatial services via REST and GraphQL endpoints with FastAPI.

13|3|Updated May 13, 2025
One-click install
npx skills add https://github.com/ActiveInferenceInstitute/GEO-INFER --skill geo-infer-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geo-infer-api
Source: https://github.com/ActiveInferenceInstitute/GEO-INFER/tree/main/GEO-INFER-API
Command: npx skills add https://github.com/ActiveInferenceInstitute/GEO-INFER --skill geo-infer-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fastapi, uvicorn, pydantic, pydantic-settings, python-dotenv, python-multipart, httpx, pytest, pytest-cov, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides standardized, OGC-compliant REST and GraphQL APIs, enabling seamless interoperability between GEO-INFER modules and external systems, abstracting complexities and ensuring secure, efficient data access.

Core Features & Use Cases

  • OGC-Compliant APIs: Implements standards like OGC API Features for broad GIS compatibility.
  • Versatile API Paradigms: Supports RESTful services (FastAPI) and GraphQL for flexible data querying.
  • Real-time Data: Enables webhook and WebSocket integration for live data streams.
  • Use Case: Developers can easily integrate with the GEO-INFER ecosystem to build custom geospatial applications, access spatial data, or trigger analyses via a unified API gateway.

Quick Start

Use the geo-infer-api skill to list available feature collections.

Frequently Asked Questions about geo-infer-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create OGC-compliant geospatial API routes with FastAPI?

Geospatial REST and GraphQL APIs provide standardized endpoints for spatial data access, utilizing FastAPI for route creation and GeoJSON formatting to ensure seamless interoperability between external GIS systems.

Can I use GraphQL for spatial data querying alongside REST endpoints?

Yes, this skill supports both REST and GraphQL paradigms for spatial data querying, allowing developers to choose flexible data access methods while maintaining OGC API Features standards compliance.

How do I add JWT authentication and rate limiting to a geospatial API?

To add JWT authentication and rate limiting, integrate the skill's built-in JWT and API key middleware, which secures FastAPI spatial query routes and enforces traffic throttling for OGC-compliant endpoints.

Does this skill support real-time geospatial data streams via WebSocket?

Yes, the skill supports real-time geospatial data streaming via WebSocket and webhook integration, allowing live spatial data feeds alongside standard REST and GraphQL query endpoints.

What is the best way to expose geospatial analysis functionality as a web service?

The best way to expose geospatial analysis as a web service is using FastAPI to define spatial query routes, format responses as GeoJSON, and secure them with JWT middleware for broad interoperability.