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