/** * {@inheritdoc} */ public function is3D() { if ($this->proxyGeometry === null) { $this->load(); } return $this->proxyGeometry->is3D(); }
/** * @param array $coords The expected coordinates of the MultiPoint as returned by toArray(). * @param boolean $is3D Whether the MultiPoint is expected to contain Z coordinates. * @param boolean $isMeasured Whether the MultiPoint is expected to contain M coordinates. * @param MultiPoint $multiPoint The MultiPoint to test. */ protected final function assertMultiPointEquals(array $coords, $is3D, $isMeasured, MultiPoint $multiPoint) { $this->castToFloat($coords); $this->assertSame($coords, $multiPoint->toArray()); $this->assertSame($is3D, $multiPoint->is3D()); $this->assertSame($isMeasured, $multiPoint->isMeasured()); }