shapely-compute

Solid

Computational geometry with Shapely - create geometries, boolean operations, measurements, predicates

AI & Automation 496 stars 41 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
90
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Computational Geometry with Shapely ## When to Use - Creating geometric shapes (points, lines, polygons) - Boolean operations (intersection, union, difference) - Spatial predicates (contains, intersects, within) - Measurements (area, length, distance, centroid) - Geometry transformations (translate, rotate, scale) - Validating and fixing invalid geometries ## Quick Reference | I want to... | Command | Example | |--------------|---------|---------| | Create geometry | `create` | `create polygon --coords "0,0 1,0 1,1 0,1"` | | Intersection | `op intersection` | `op intersection --g1 "POLYGON(...)" --g2 "POLYGON(...)"` | | Check contains | `pred contains` | `pred contains --g1 "POLYGON(...)" --g2 "POINT(0.5 0.5)"` | | Calculate area | `measure area` | `measure area --geom "POLYGON(...)"` | | Distance | `distance` | `distance --g1 "POINT(0 0)" --g2 "POINT(3 4)"` | | Transform | `transform translate` | `transform translate --geom "..." --params "1,2"` | | Validate | `validate` | `validate --geom "POLYGON(...)"` | ## Commands ### create Create geometric objects from coordinates. ```bash # Point uv run python scripts/shapely_compute.py create point --coords "1,2" # Line (2+ points) uv run python scripts/shapely_compute.py create line --coords "0,0 1,1 2,0" # Polygon (3+ points, auto-closes) uv run python scripts/shapely_compute.py create polygon --coords "0,0 1,0 1,1 0,1" # Polygon with hole uv run python scripts/shapely_compute.py crea...

Details

Author
vibeeval
Repository
vibeeval/vibecosystem
Created
2 months ago
Last Updated
1 months ago
Language
C#
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category