示例#1
0
 /**
  * {@inheritdoc}
  */
 public function coordinateSystem()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->coordinateSystem();
 }
示例#2
0
 /**
  * @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));
 }