# H3 Hexagonal Spatial Indexing

> Indexes geographic points into Uber H3 hierarchical hexagonal spatial cells for aggregation and analysis. Use when performing spatial clustering, heatmapping, a

- Skill: `bishnucd/h3-hexagonal-spatial-indexing` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishnucd/h3-hexagonal-spatial-indexing`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishnucd/h3-hexagonal-spatial-indexing/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Bishnucd (https://skillmd.com/u/bishnucd)
- Updated: 2026-12-02
- Page: https://skillmd.com/skills/bishnucd/h3-hexagonal-spatial-indexing

---

---
name: h3-hexagonal-spatial-indexing
description: Indexes geographic points into Uber H3 hierarchical hexagonal spatial cells for aggregation and analysis. Use when performing spatial clustering, heatmapping, and spatial joins at scale.
license: MIT
metadata:
  author: Community List Maintainers
  version: "1.0.0"
  source: "https://h3geo.org/docs/"
---
# H3 Hexagonal Spatial Indexing

## Overview
Hexagons possess equal distance to all neighboring centroids, eliminating directional bias inherent in square grid systems. H3 assigns 64-bit integer index hashes to nested hexagonal cells.

## Operational Workflow

1. **Convert latitude/longitude coordinate points into H3 cell index hashes at specified resolution (res 7-9).**:
   - Convert latitude/longitude coordinate points into H3 cell index hashes at specified resolution (res 7-9).

2. **Aggregate metric counts and averages by H3 cell ID using standard hash map grouping.**:
   - Aggregate metric counts and averages by H3 cell ID using standard hash map grouping.

3. **Perform k-ring spatial smoothing to calculate regional density gradients.**:
   - Perform k-ring spatial smoothing to calculate regional density gradients.

4. **Render hexagonal choropleth heatmaps with color scales mapped to cell metric values.**:
   - Render hexagonal choropleth heatmaps with color scales mapped to cell metric values.

## Recommended Tools & Environments
- Uber H3
- Python / JavaScript
- GeoPandas
- Folium

## Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.

