コード例 #1
0
ファイル: CurveProxy.php プロジェクト: brick/geo
 /**
  * {@inheritdoc}
  */
 public function count()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->count();
 }
コード例 #2
0
ファイル: AbstractWKBWriter.php プロジェクト: brick/geo
 /**
  * @param Curve $curve
  *
  * @return string
  */
 private function packCurve(Curve $curve)
 {
     $wkb = $this->packUnsignedInteger($curve->count());
     foreach ($curve as $point) {
         $wkb .= $this->packPoint($point);
     }
     return $wkb;
 }