Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function count()
 {
     if ($this->proxyGeometry === null) {
         $this->load();
     }
     return $this->proxyGeometry->count();
 }
Пример #2
0
 /**
  * @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;
 }