Skip to content
Back to skills

GEO INFER DATA

ASecurity

Data connectors, ETL pipelines, and data management for geospatial datasets. Use when loading spatial data from databases, APIs, files (GeoJSON, Shapefile, GeoParquet), or building data transformation pipelines.

  • 18 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 1, 2026
databasespythongosqlawsgitapidatabasebackend

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add ActiveInferenceInstitute/GEO-INFER --skill GEO-INFER-DATA --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of GEO INFER DATA?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for GEO INFER DATA
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/activeinferenceinstitute-geo-infer-data/badge)](https://www.skillsdirectory.com/skills/activeinferenceinstitute-geo-infer-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geo-infer-data
description: Data connectors, ETL pipelines, and data management for geospatial datasets. Use when loading spatial data from databases, APIs, files (GeoJSON, Shapefile, GeoParquet), or building data transformation pipelines.
prerequisites:
  required: []
  recommended:
    - geo-infer-math
difficulty: beginner
estimated_time: 30min
examples_dir: ../GEO-INFER-EXAMPLES/examples/
---

# GEO-INFER-DATA

## Instructions

### Core Capabilities

- **Connectors**: PostgreSQL/PostGIS, SQLite/SpatiaLite, MongoDB, REST/GraphQL APIs, MQTT/WebSocket streams, file I/O (GeoJSON, Shapefile, GeoPackage, GeoTIFF, CSV, Parquet), AWS S3 (boto3)
- **ETL pipelines**: `IntelligentETLPipeline` with dependency resolution and intelligent retry
- **Storage**: `AdaptiveDataStorage` with local-file, PostgreSQL, MinIO/S3, and Redis backends
- **Caching**: In-memory TTL caching and signed persistence (GISP1 HMAC envelopes)
- **Validation**: Geometry validity, WGS84 bounds, CRS, temporal, and completeness checks

### Key Imports

```python
from geo_infer_data import (
    MultiSourceDataIngestion,
    IntelligentETLPipeline,
    AdaptiveDataStorage,
    DataQualityManager,
)
from geo_infer_data.connectors.file import FileConnector
from geo_infer_data.connectors.database import DatabaseConnector
from geo_infer_data.connectors.cloud import S3Connector
from geo_infer_data.utils.validation import GeospatialValidator
from geo_infer_data.utils.indexing import SpatialIndexer
from geo_infer_data.models.schemas import DatasetMetadata, DataLineage
```

## Examples

Read and validate a GeoJSON file:

```python
import asyncio

from geo_infer_data.connectors.file import FileConnector
from geo_infer_data.utils.validation import GeospatialValidator


async def main() -> None:
    connector = FileConnector()
    gdf = await connector.read_geospatial("data/buildings.geojson")
    print(f"Loaded {len(gdf)} features")

    check = await GeospatialValidator().validate_data(gdf)
    print(f"Quality: {check.score:.2f} ({check.status})")


asyncio.run(main())
```

Store data and query it back with spatial/temporal filters:

```python
import asyncio

from geo_infer_data import AdaptiveDataStorage
from geo_infer_data.models.schemas import DatasetMetadata, DataLineage


async def main() -> None:
    storage = AdaptiveDataStorage(storage_backends=["local"])
    metadata = DatasetMetadata(
        title="sensor readings",
        lineage=DataLineage(source="demo", process="ingest", created_by="script"),
    )

    data_id = await storage.store_geospatial_data(gdf, metadata)
    results = await storage.adaptive_query(
        spatial_bounds=[-122.5, 37.7, -122.3, 37.9],
        temporal_range=(start, end),
    )
    print(f"Stored {data_id}; query returned {len(results)} rows")


asyncio.run(main())
```

Run the ETL pipeline:

```python
from geo_infer_data import IntelligentETLPipeline

pipeline = IntelligentETLPipeline(workflow_config=None, error_recovery="intelligent_retry")
result = await pipeline.execute_workflow(
    source_data=raw_data,
    target_storage=storage,
    transformation_rules={"reproject_to": "EPSG:4326", "validate_bounds": True},
)
```

### Agent interfaces

Use `uv run --frozen geo-infer catalog DATA` to discover public source
APIs, then `geo-infer describe` before calling a selected target. Scripts use
`geo_infer_api.agent_runtime.AgentSession`; the optional stdio MCP server is
`geo-infer-mcp`. See [requests, native objects and composition](../GEO-INFER-INTRA/docs/integration/agent_interfaces.md).
The adapter retains this module's dependencies and authorization requirements.

## Guidelines

- SQL uses parameterized queries (`:param` placeholders) — never string interpolation
- All coordinate data validated against WGS84 bounds
- H3 indexing uses the v4 API (`latlng_to_cell`, `cell_to_latlng`, `geo_to_cells`)
- Test: `uv run python GEO-INFER-TEST/run_unified_tests.py --module DATA`

### Integrations

- **SPACE** → Spatial indexing of loaded datasets
- **GIT** → Version control for spatial data
- **API** → Data source for spatial query endpoints
- **IOT** → Sensor data ingestion pipelines
- **EXAMPLES** → Example ETL workflows

Dataset/model and cache timestamps require explicit timezone offsets and normalize
to UTC through `geo_infer_time.core.timestamps.normalize_timestamp`. Select backend
extras explicitly: `postgres` (psycopg2 + asyncpg), `s3` (boto3), `minio`, `redis`,
and `raster` (rasterio). Base/local operations do not import those clients; an
unavailable selected backend raises an error naming its installation extra.
HTTP connector calls and downloads run off the event loop; requests are spaced
using a monotonic clock, and failed pagination does not return partial success.

### DuckDB Spatial verification

Provision official signed HTTPFS and Spatial matching the installed stable DuckDB
version and native platform with
`uv run python GEO-INFER-DATA/provision_duckdb_spatial.py`. Python HTTPS downloads
bootstrap HTTPFS without DuckDB's auto-install path. The product identifies
itself to the repository; TLS verification and official-origin redirect checks
remain enabled. Both gzip archives download and decompress before installation.
A separate, stdlib-only worker bounds DNS, TLS, headers, body and gzip parsing;
`--download-timeout 120` shares one monotonic download budget, and
`--max-extension-bytes 536870912` limits each compressed and decompressed archive.
DuckDB verifies signatures with unsigned extensions disabled. The success JSON
records runtime ABI, official URLs, decompressed sizes and SHA-256 hashes.
An ordinary failure returns failed JSON, full diagnostic stderr and exit 1;
no retry or cached extension can certify a failed download. Installation itself
is not a transaction across extensions: a later install failure can leave the
first signed extension installed. `read_cloud_native_vector(path, require_duckdb=True)` requires the
actual DuckDB path and propagates backend errors. Normal reads load an installed
extension without downloading one; GeoParquet uses native Parquet with declared
WKB geometry columns and preserves their names, null geometries and CRS.
GeoParquet is a hybrid reader: native DuckDB supplies geometry and compatible
Arrow fields; selective original Arrow reads retain physical index fields and
changed types such as timezone-aware nanosecond timestamps and ordered
categories. Original pandas metadata restores Index/MultiIndex/RangeIndex,
nullable/string dtypes and timezone labels. This operation lazily requires
`geo-infer-data[integrations]` (including PyArrow); source files are read only.
The native single-file scan explicitly preserves insertion order and validates
schema/row counts against the original Parquet file; reader layer/keyword options use GeoPandas
when they are unsupported by DuckDB.

Files in this skill

  • AGENTS.md1.9 KB
  • README.md1.1 KB
  • SKILL.md2.2 KB
  • config/AGENTS.md1.2 KB
  • config/README.md932 B
  • config/example.yaml2.2 KB
  • config/production.yaml6.7 KB
  • docs/AGENTS.md1.1 KB
  • docs/README.md911 B
  • docs/api_schema.yaml23.4 KB
  • etl/AGENTS.md1.2 KB
  • etl/README.md1.2 KB
  • etl/__init__.py1.2 KB
  • etl/airflow_dags.py15.1 KB
  • etl/custom_orchestrator.py3.2 KB
  • etl/quality_pipelines.py4 KB
  • etl/spark_processing.py5.2 KB
  • examples/AGENTS.md1.3 KB
  • examples/README.md1.7 KB
  • examples/api_example.py10.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.