Turfjs / Turfjs/turf

function for maximum inscribed rectangle

Open
#2,902 0 comments 0 reactions 0 assignees View on GitHub

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!).

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.