function for maximum inscribed rectangle
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 1k
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 4
Description
Feature request to add a function to calculate the maximum inscribed rectangle (the biggest rectangle that fits inside a polygon). This seems to be more computationally complex than calculating envelopes, even when axis-aligned. It could possible be adapted from this overly complex SQL query (although the code itself is GPL-licensed!).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing Turf's existing envelope-related functionality and the linked PostGeoSQL ST_MaximumAreaInscribedRectangleInPolygon query. Determine the appropriate Turf entry point, algorithm scope, licensing constraints, and tests needed. Done means a supported function calculates the maximum inscribed rectangle for a polygon.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100