/** * {@inheritdoc} */ public function coordinateSystem() { if ($this->proxyGeometry === null) { $this->load(); } return $this->proxyGeometry->coordinateSystem(); }
/** * Tests Countable and Traversable interfaces. */ public function testInterfaces() { $compoundCurve = CompoundCurve::fromText('COMPOUNDCURVE (CIRCULARSTRING(1 2, 3 4, 5 6), (5 6, 7 8))'); $this->assertInstanceOf(\Countable::class, $compoundCurve); $this->assertSame(2, count($compoundCurve)); $this->assertInstanceOf(\Traversable::class, $compoundCurve); $this->assertSame([$compoundCurve->curveN(1), $compoundCurve->curveN(2)], iterator_to_array($compoundCurve)); }