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