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