/** * {@inheritdoc} */ public function coordinateSystem() { if ($this->proxyGeometry === null) { $this->load(); } return $this->proxyGeometry->coordinateSystem(); }
/** * @dataProvider providerInteriorRingN * * @param string $curvePolygon The WKT of the CurvePolygon to test. * @param integer $n The ring number. * @param string|null $interiorRingN The WKT of the expected interior ring, or NULL if an exception is expected. * @param integer $srid The SRID of the geometries. */ public function testInteriorRingN($curvePolygon, $n, $interiorRingN, $srid) { if ($interiorRingN === null) { $this->setExpectedException(NoSuchGeometryException::class); } $ring = CurvePolygon::fromText($curvePolygon, $srid)->interiorRingN($n); $this->assertWktEquals($ring, $interiorRingN, $srid); }