Skip to content

Commit

Permalink
SpatiaLite now supports ST_Azimuth() and ST_MaxDistance()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Jan 22, 2024
1 parent c7fc225 commit b51ba68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |||||||
Expand Down
6 changes: 2 additions & 4 deletions tests/GeometryEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit b51ba68

Please sign in to comment.