public function __construct($components)
 {
     if (count($components) < 2) {
         throw new InvalidFeature(__CLASS__, "LineString must have at least 2 points");
     }
     parent::__construct($components);
 }
Example #2
0
 public function addHole(MultiPoint $multiPoints)
 {
     $this->coordinates[] = $multiPoints->getCoordinates();
     return $this;
 }