コード例 #1
0
ファイル: PolygonProxy.php プロジェクト: brick/geo
 /**
  * {@inheritdoc}
  */
 public function toArray()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->toArray();
 }
コード例 #2
0
ファイル: AbstractTestCase.php プロジェクト: brick/geo
 /**
  * @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());
 }