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