gis-spatial-index

Convert coordinates into ten spatial index encodings for GIS queries.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/jumboly/gis-skills --skill gis-spatial-index
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gis-spatial-index
Source: https://github.com/jumboly/gis-skills/tree/main/gis-spatial-index
Command: npx skills add https://github.com/jumboly/gis-skills --skill gis-spatial-index

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires h3, openlocationcode, mgrs, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Efficiently index and query geospatial data by converting coordinates into a variety of spatial index codes (10 systems) and exposing a consistent API for batch and ad-hoc operations.

Core Features & Use Cases

  • Encode coordinates into multiple spatial index encodings (MESH/JIS X 0410, Geohash, H3, Plus Code, Quadkey, MGRS, Maidenhead, Morton code, XYZ tiles, Spatial ID).
  • Decode codes back to coordinates and polygons (center, bbox, and 3D extents where applicable) with nearest-neighbor, boundary, and polyfill support.
  • Batch CSV processing for bulk conversions, and a robust set of validation/error handling across all index types with auto-installation of required Python packages as needed.
  • Use cases include fast proximity searches, area filtering, 3D visualization, and countrywide Japan data support.

Quick Start

Encode a sample latitude/longitude to a H3 cell at a chosen resolution to observe the resulting code and metadata.

Frequently Asked Questions about gis-spatial-index

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

FAQPage Schema
How do I convert latitude and longitude coordinates into H3 and Geohash spatial indexes?

To convert coordinates into H3, Geohash, and other spatial indexes, you encode the latitude and longitude values to generate specific index codes along with metadata for proximity searches and area filtering.

What is the best way to batch process CSV files for spatial index conversions like MGRS and Plus Code?

Batch processing CSV files for MGRS and Plus Code conversions involves reading coordinate columns, encoding them into the desired spatial index systems, and writing the results back with robust error handling for invalid data.

Can I decode H3 or Quadkey codes back to geographic coordinates and polygons?

Decoding H3 or Quadkey codes back to geographic coordinates returns the center point, bounding box, and polygon boundaries, enabling nearest-neighbor searches and area-based spatial queries.

Does this spatial indexing approach support 3D visualization and countrywide Japan datasets?

Spatial indexing supports 3D visualization and countrywide Japan datasets by applying JIS X 0410 and Spatial ID encodings, which provide 3D extents for vertical spatial queries alongside standard 2D area filtering.

How do I perform polyfill operations to find all spatial index cells within a polygon boundary?

Polyfill operations find all spatial index cells within a polygon boundary by iterating across the defined area and generating matching codes, which is useful for comprehensive area-based filtering and proximity searches.

What should I do if my Python environment is missing required packages for spatial index generation?

If your Python environment is missing required packages for spatial index generation, the system features auto-installation of dependencies like h3, openlocationcode, and mgrs to ensure continuous batch processing.