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