• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

brick / geo / 14085541468

26 Mar 2025 02:15PM UTC coverage: 63.783% (+0.4%) from 63.411%
14085541468

push

github

BenMorel
Move docker compose to postgis image

1939 of 3040 relevant lines covered (63.78%)

1906.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Engine/SpatialiteEngine.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Brick\Geo\Engine;
6

7
use Brick\Geo\Engine\Database\Internal\AbstractDatabaseWkbEngine;
8
use Brick\Geo\Engine\Internal\TypeChecker;
9
use Brick\Geo\LineString;
10
use Brick\Geo\Point;
11
use Override;
12

13
/**
14
 * Database engine based on the SpatiaLite extension for SQLite.
15
 */
16
final readonly class SpatialiteEngine extends AbstractDatabaseWkbEngine
17
{
18
    #[Override]
19
    public function lineInterpolatePoint(LineString $lineString, float $fraction) : Point
20
    {
21
        $result = $this->queryGeometry('ST_Line_Interpolate_Point', $lineString, $fraction);
21✔
22
        TypeChecker::check($result, Point::class);
21✔
23

24
        return $result;
21✔
25
    }
26

27
    public function getSpatialiteVersion() : string
28
    {
29
        return $this->driver->executeQuery('SELECT spatialite_version()')->get(0)->asString();
2✔
30
    }
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc