Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->toArray();
 }
Exemple #2
0
 /**
  * @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());
 }