/** * {@inheritdoc} */ public function count() { if ($this->proxyGeometry === null) { $this->load(); } return $this->proxyGeometry->count(); }
/** * @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; }