Skip to content

Commit

Permalink
Remove GeometryEngine::boundingPolygons()
Browse files Browse the repository at this point in the history
We never had any implementation for this one.
  • Loading branch information
BenMorel committed Jun 6, 2024
1 parent 37996fa commit d7444c8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 21 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
💥 **Breaking changes**

- interface `GeometryEngine` has a new method: `split()`
- method `GeometryEngine::boundingPolygons()` has been removed

**New features**

Expand Down
5 changes: 0 additions & 5 deletions src/Engine/DatabaseEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 0 additions & 5 deletions src/Engine/GEOSEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down
11 changes: 0 additions & 11 deletions src/Engine/GeometryEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit d7444c8

Please sign in to comment.