mjaschen / phpgeo

Simple Yet Powerful Geo Library for PHP
https://phpgeo.marcusjaschen.de
MIT License
1.55k stars 195 forks source link

Bounds as polygon #88

Closed nilshoerrmann closed 2 years ago

nilshoerrmann commented 2 years ago

This pull request adds methods to retrieve the bounds of an object as polygon. This can be useful when comparing objects for intersections.

$myGeometry->getBounds()->getPolygon();
mjaschen commented 2 years ago

Integrated in 4.1.0. Thank you very much for contributing!