/** * {@inheritdoc} */ public function is3D() { if ($this->proxyGeometry === null) { $this->load(); } return $this->proxyGeometry->is3D(); }
/** * @param Point $point * @param boolean $is3D * @param boolean $isMeasured * @param integer $srid */ private function assertPointEmptyFactoryMethod(Point $point, $is3D, $isMeasured, $srid) { $this->assertTrue($point->isEmpty()); $this->assertNull($point->x()); $this->assertNull($point->y()); $this->assertNull($point->z()); $this->assertNull($point->m()); $this->assertSame($is3D, $point->is3D()); $this->assertSame($isMeasured, $point->isMeasured()); $this->assertSame($srid, $point->SRID()); }
/** * @param array $coords The expected coordinates of the Point as returned by toArray(). * @param boolean $is3D Whether the Point is expected to contain a Z coordinate. * @param boolean $isMeasured Whether the Point is expected to contain a M coordinate. * @param integer $srid The expected SRID. * @param Point $point The Point to test. */ protected final function assertPointEquals(array $coords, $is3D, $isMeasured, $srid, Point $point) { $this->castToFloat($coords); $this->assertSame($coords, $point->toArray()); $this->assertSame($is3D, $point->is3D()); $this->assertSame($isMeasured, $point->isMeasured()); $this->assertSame($srid, $point->SRID()); }