shapely-compute

Perform Shapely computational geometry operations with WKT input and JSON output.

8|1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/scooter-lacroix/Maestro --skill shapely-compute
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shapely-compute
Source: https://github.com/scooter-lacroix/Maestro/tree/main/maestro/skills/math/shapely-compute
Command: npx skills add https://github.com/scooter-lacroix/Maestro --skill shapely-compute

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a robust set of tools 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.
  • Boolean Operations: Perform intersections, unions, differences, and more between geometries.
  • Spatial Predicates: Test relationships like contains, intersects, within, and touches.
  • Measurements: Calculate area, length, distance, and centroids.
  • Transformations: Apply translate, rotate, scale, and skew operations.
  • Validation: Check and fix invalid geometries.
  • Use Case: Determine if a given point falls within a specific geographic boundary, or calculate the overlapping area between two proposed development sites.

Quick Start

Create a polygon with coordinates "0,0 1,0 1,1 0,1" and then calculate its area.

Frequently Asked Questions about shapely-compute

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

FAQPage Schema
How do I calculate the intersection area between two polygons in Python?

To calculate the intersection area between two polygons, use Shapely boolean operations to intersect the geometries, then compute the area of the resulting overlapping geometry. This Skill outputs the resulting WKT geometry and its calculated area.

Can I check if a point is contained within a polygon using Well-Known Text?

Yes, you can check if a point is contained within a polygon using spatial predicates. Provide your geometries as WKT or coordinate strings, and the spatial predicate returns whether the containment relationship is true.

What is the best way to perform geometric transformations like rotate and scale on spatial data?

The best way to perform geometric transformations like rotate and scale on spatial data is using Shapely transformation functions. Input your WKT geometry, apply the affine transformations, and retrieve the modified geometry in JSON format.

Does Shapely support validating and fixing invalid polygon geometries?

Yes, Shapely supports validating and fixing invalid polygon geometries. This Skill includes validation features that check geometric shapes and attempt to fix structural issues, returning the validation status and corrected geometry.

How do I convert coordinate strings into measured geometries with area and length?

To convert coordinate strings into measured geometries, input the coordinates into this Skill to generate the geometric shape. It automatically calculates measurements like area, length, and centroid, returning the results alongside the geometry type and bounds in JSON.