From b51ba6895cbfa44ea787e58779d23edd62b284f3 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Mon, 22 Jan 2024 23:53:39 +0100 Subject: [PATCH] SpatiaLite now supports ST_Azimuth() and ST_MaxDistance() --- README.md | 2 +- tests/GeometryEngineTest.php | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0ed1df0..36d313f 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,7 @@ This table also shows which functions are part of the OpenGIS standard. | Function Name | GEOS | PostGIS | MySQL | MariaDB | SpatiaLite | OpenGIS standard | |------------------|------|---------|--------|---------|------------|------------------| | `area` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | -| `azimuth` | | ✓ | | | | | +| `azimuth` | | ✓ | | | ✓ | | | `boundary` | ✓ | ✓ | | | ✓ | ✓ | | `buffer` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | | `centroid` | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | diff --git a/tests/GeometryEngineTest.php b/tests/GeometryEngineTest.php index f26a025..9635e9b 100644 --- a/tests/GeometryEngineTest.php +++ b/tests/GeometryEngineTest.php @@ -219,9 +219,7 @@ public function testAzimuth(string $observerWkt, string $subjectWkt, ?float $azi { $geometryEngine = $this->getGeometryEngine(); - if (! $this->isPostGIS()) { - $this->expectException(GeometryEngineException::class); - } + $this->requireEngine(['SpatiaLite', 'PostGIS']); $observer = Point::fromText($observerWkt); $subject = Point::fromText($subjectWkt); @@ -1126,7 +1124,7 @@ public function testMaxDistance(string $geometry1, string $geometry2, float $max { $geometryEngine = $this->getGeometryEngine(); - if ($this->isGEOS() || $this->isMySQL() || $this->isMariaDB() || $this->isSpatiaLite()) { + if ($this->isGEOS() || $this->isMySQL() || $this->isMariaDB()) { $this->expectException(GeometryEngineException::class); }