Location\Polyline::getPoints PHP Method

getPoints() public method

public getPoints ( ) : array
return array
    public function getPoints()
    {
        return $this->points;
    }

Usage Example

Beispiel #1
0
 /**
  * @param float $tolerance The maximum allowed deviation
  *
  * @return Polyline
  */
 public function simplify($tolerance)
 {
     $simplifiedLine = $this->douglasPeucker($this->polyline->getPoints(), $tolerance);
     $resultPolyline = new Polyline();
     foreach ($simplifiedLine as $point) {
         $resultPolyline->addPoint($point);
     }
     return $resultPolyline;
 }
All Usage Examples Of Location\Polyline::getPoints