/** * {@inheritdoc} */ public function coordinateSystem() { if ($this->proxyGeometry === null) { $this->load(); } return $this->proxyGeometry->coordinateSystem(); }
/** * @dataProvider providerPointOnSurface * * @param string $multiMultiSurface The WKT of the MultiSurface to test. */ public function testPointOnSurface($multiMultiSurface) { $this->requiresGeometryEngine(); if ($this->isMySQL() || $this->isMariaDB()) { // MySQL and MariaDB do not support ST_PointOnSurface() $this->setExpectedException(GeometryEngineException::class); } $multiSurface = MultiSurface::fromText($multiMultiSurface); $this->skipIfUnsupportedGeometry($multiSurface); $pointOnSurface = $multiSurface->pointOnSurface(); $this->assertInstanceOf(Point::class, $pointOnSurface); $this->assertTrue($multiSurface->contains($pointOnSurface)); }