/** * {@inheritdoc} */ public function isEmpty() { if ($this->proxyGeometry === null) { $this->load(); } return $this->proxyGeometry->isEmpty(); }
/** * @dataProvider providerConstructorEmpty * * @param boolean $is3D * @param boolean $isMeasured * @param integer $srid */ public function testConstructorEmpty($is3D, $isMeasured, $srid) { $cs = new CoordinateSystem($is3D, $isMeasured, $srid); $polygon = new Polygon($cs); $this->assertTrue($polygon->isEmpty()); $this->assertSame($is3D, $polygon->is3D()); $this->assertSame($isMeasured, $polygon->isMeasured()); $this->assertSame($srid, $polygon->SRID()); }