コード例 #1
0
ファイル: PolygonProxy.php プロジェクト: brick/geo
 /**
  * {@inheritdoc}
  */
 public function coordinateSystem()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->coordinateSystem();
 }
コード例 #2
0
ファイル: PolyhedralSurface.php プロジェクト: brick/geo
 /**
  * Creates a non-empty PolyhedralSurface composed of the given patches.
  *
  * @param Polygon    $patch1 The first patch.
  * @param Polygon ...$patchN The subsequent patches, if any.
  *
  * @return PolyhedralSurface
  *
  * @throws CoordinateSystemException If the patches use different coordinate systems.
  */
 public static function of(Polygon $patch1, Polygon ...$patchN)
 {
     return new static($patch1->coordinateSystem(), $patch1, ...$patchN);
 }