Example #1
0
 /**
  * {@inheritdoc}
  */
 public function coordinateSystem()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->coordinateSystem();
 }
Example #2
0
 /**
  * @dataProvider providerIsClosed
  *
  * @param string  $curve    The WKT of the MultiCurve to test.
  * @param boolean $isClosed Whether the MultiCurve is closed.
  */
 public function testIsClosed($curve, $isClosed)
 {
     $this->requiresGeometryEngine();
     $curve = MultiCurve::fromText($curve);
     $this->skipIfUnsupportedGeometry($curve);
     if ($this->isGEOS('< 3.5.0')) {
         // GEOS PHP bindings do not support isClosed() on MultiCurve in older versions.
         $this->setExpectedException(GeometryEngineException::class);
     }
     $this->assertSame($isClosed, $curve->isClosed());
 }