postgis

Enforce PostGIS 3.6.1 best practices for spatial queries and geometry operations.

10|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/troykelly/codex-skills --skill postgis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgis
Source: https://github.com/troykelly/codex-skills/tree/main/skills/postgis
Command: npx skills add https://github.com/troykelly/codex-skills --skill postgis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures the correct and efficient use of PostGIS 3.6.1 for all spatial data operations, preventing common errors and leveraging advanced features for location-based applications.

Core Features & Use Cases

  • Spatial Data Management: Enforces best practices for storing, querying, and manipulating geographic data.
  • Advanced Functions: Utilizes new features like ST_CoverageClean, SFCGAL 3D operations, and bigint topology support.
  • Use Case: When developing a real estate application that needs to find properties within a certain radius of a point of interest, this skill guides the optimal use of PostGIS functions and indexing for accurate and fast results.

Quick Start

Apply the postgis skill to ensure PostGIS 3.6.1 spatial best practices are followed for all geographic data operations.

Frequently Asked Questions about postgis

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

FAQPage Schema
How do I choose between geometry and geography data types for spatial queries in PostgreSQL?

PostGIS best practices enforce correct geometry versus geography data type usage for spatial queries, ensuring accurate geodetic measurements or planar calculations depending on your location-based application needs.

What is the best way to manage SRID for geographic data in PostGIS?

The best way to manage SRID for geographic data in PostGIS is to enforce consistent spatial reference system identifiers during ingestion and transformation operations, preventing mismatched coordinate system errors in spatial queries.

How do I optimize spatial indexing strategies for large-scale GIS datasets?

Optimizing spatial indexing strategies for large-scale GIS datasets requires enforcing efficient query patterns and proper spatial index creation in PostGIS 3.6.1, ensuring fast location-based feature retrieval and geometry operations.

Does PostGIS 3.6.1 support bigint topology for large-scale spatial datasets?

PostGIS 3.6.1 explicitly supports bigint topology for large-scale spatial datasets, allowing robust geometry operations and advanced spatial data management across extensive geographic data collections without identifier overflow.

How do I use ST_CoverageClean and SFCGAL 3D functions for geometry operations?

ST_CoverageClean and SFCGAL 3D functions are advanced PostGIS 3.6.1 features utilized for precise geometry operations, enabling complex 3D spatial data manipulation and clean polygon coverage management in geographic applications.

Why do my PostGIS spatial queries return inaccurate results for properties within a radius?

Inaccurate radius spatial queries in PostGIS often result from using the geometry data type instead of geography for geodetic distances, missing spatial indexes, or mismatched SRID management between queried geometry layers.