From d7444c8d410899911eeb66ada666c2009f70f00b Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Thu, 6 Jun 2024 23:28:36 +0200 Subject: [PATCH] Remove GeometryEngine::boundingPolygons() We never had any implementation for this one. --- CHANGELOG.md | 1 + src/Engine/DatabaseEngine.php | 5 ----- src/Engine/GEOSEngine.php | 5 ----- src/Engine/GeometryEngine.php | 11 ----------- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cc5341..4b55d0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ 💥 **Breaking changes** - interface `GeometryEngine` has a new method: `split()` +- method `GeometryEngine::boundingPolygons()` has been removed ✨ **New features** diff --git a/src/Engine/DatabaseEngine.php b/src/Engine/DatabaseEngine.php index fc3796c..ac20059 100644 --- a/src/Engine/DatabaseEngine.php +++ b/src/Engine/DatabaseEngine.php @@ -424,11 +424,6 @@ public function maxDistance(Geometry $a, Geometry $b) : float return $this->queryFloat('ST_MaxDistance', $a, $b); } - public function boundingPolygons(Polygon $p) : MultiPolygon - { - throw GeometryEngineException::unimplementedMethod(__METHOD__); - } - public function transform(Geometry $g, int $srid) : Geometry { return $this->queryGeometry('ST_Transform', $g, $srid); diff --git a/src/Engine/GEOSEngine.php b/src/Engine/GEOSEngine.php index b747df5..7916237 100644 --- a/src/Engine/GEOSEngine.php +++ b/src/Engine/GEOSEngine.php @@ -366,11 +366,6 @@ public function maxDistance(Geometry $a, Geometry $b) : float throw GeometryEngineException::unimplementedMethod(__METHOD__); } - public function boundingPolygons(Polygon $p) : MultiPolygon - { - throw GeometryEngineException::unimplementedMethod(__METHOD__); - } - public function transform(Geometry $g, int $srid) : Geometry { throw GeometryEngineException::unimplementedMethod(__METHOD__); diff --git a/src/Engine/GeometryEngine.php b/src/Engine/GeometryEngine.php index 60aa034..d51c078 100644 --- a/src/Engine/GeometryEngine.php +++ b/src/Engine/GeometryEngine.php @@ -471,17 +471,6 @@ public function simplify(Geometry $g, float $tolerance) : Geometry; */ public function maxDistance(Geometry $a, Geometry $b) : float; - /** - * Returns the collection of polygons that bounds the given polygon 'p' for any polygon 'p' in the surface. - * - * @param Polygon $p - * - * @return MultiPolygon - * - * @throws GeometryEngineException If the operation is not supported by the engine. - */ - public function boundingPolygons(Polygon $p) : MultiPolygon; - /** * Returns a new geometry with its coordinates transformed to a different spatial reference system. */