shapely-compute

Perform Shapely geometry operations and output JSON with WKT results.

3.9k|296|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill shapely-compute-parcadei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shapely-compute
Source: https://github.com/parcadei/Continuous-Claude-v3/tree/main/.claude/skills/shapely-compute
Command: npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill shapely-compute-parcadei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires shapely, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a robust interface for performing complex computational geometry tasks, enabling precise spatial analysis and manipulation of geometric shapes.

Core Features & Use Cases

  • Geometry Creation: Define points, lines, polygons, and multi-geometries from coordinates.
  • Boolean Operations: Perform intersections, unions, differences, and other set operations on geometries.
  • Spatial Predicates: Test relationships like contains, intersects, within, and disjoint.
  • Measurements: Calculate area, length, distance, and centroids.
  • Transformations: Apply translate, rotate, and scale operations.
  • Validation: Check and fix invalid geometries.
  • Use Case: Determine if a given point lies within a specific geographic boundary, or calculate the overlapping area between two complex polygons.

Quick Start

Use the shapely-compute skill to create a polygon with coordinates "0,0 1,0 1,1 0,1".

Frequently Asked Questions about shapely-compute

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

FAQPage Schema
How do I perform boolean operations like intersection and union on polygons using Shapely?

Boolean operations on polygons using Shapely involve applying intersections, unions, and differences to geometric objects. The Skill executes these set operations and outputs the resulting geometry in JSON format with WKT and bounds.

Can I check if a point lies within a specific polygon boundary using computational geometry?

Checking if a point lies within a polygon boundary utilizes spatial predicates in computational geometry. The Skill tests relationships like contains, intersects, and within, returning the boolean results directly from the Shapely library.

What spatial measurements can I calculate for geometric shapes in Python?

Spatial measurements for geometric shapes in Python include calculating area, length, distance, and centroids. The Skill processes input coordinates or WKT to compute these measurements and returns them within a structured JSON response.

How do I handle and fix invalid geometries during spatial analysis?

Handling invalid geometries during spatial analysis requires validation checks before processing. The Skill checks geometric objects for validity and applies fixes to ensure accurate computational geometry operations.

Does this computational geometry Skill support input via WKT and coordinate strings?

This computational geometry Skill supports input via WKT and coordinate strings. It parses these formats to create points, lines, and polygons, then outputs the geometric results in JSON format with WKT and type information.

What transformations can I apply to geometric objects in Python?

Transformations applied to geometric objects in Python include translate, rotate, and scale operations. The Skill uses Shapely to execute these spatial transformations and outputs the modified geometry with updated bounds.