Skip to content

Add minimum_rotated_rectangle function.#361

Merged
sgillies merged 1 commit intoshapely:masterfrom
georgeouzou:min-area-rectangle
Feb 13, 2016
Merged

Add minimum_rotated_rectangle function.#361
sgillies merged 1 commit intoshapely:masterfrom
georgeouzou:min-area-rectangle

Conversation

@georgeouzou
Copy link
Copy Markdown
Contributor

I tried adding the functionality requested in #354 to enhance the base geometry object.
This function enables the computation of a minimum bounding rectangle that is not constrained to be parallel to the axes but can be rotated.
The solution is based on the algorithm proposed in this link that was provided by @snorfalorpagus

@georgeouzou
Copy link
Copy Markdown
Contributor Author

mbr
Here is an example of the results of the function in matplotlib.

@sgillies sgillies added this to the 1.6 milestone Feb 13, 2016
@sgillies
Copy link
Copy Markdown
Contributor

@georgeouzou this is great! I really appreciate the clear code and tests 👏

sgillies added a commit that referenced this pull request Feb 13, 2016
Add minimum_rotated_rectangle function.
@sgillies sgillies merged commit 58c60c4 into shapely:master Feb 13, 2016
@georgeouzou
Copy link
Copy Markdown
Contributor Author

My pleasure to contribute to such an awesome library :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants