Exemple #1
0
 public static function from_array($points, $srid = null, $with_z = false, $with_m = false)
 {
     $line = new self($srid, $with_z, $with_m);
     foreach ($points as $point) {
         $line->points[] = Point::from_array($point, $srid, $with_z, $with_m);
     }
     return $line;
 }
Exemple #2
0
 public static function from_array($points, $srid = null, $with_z = false, $with_m = false)
 {
     $mp = new self($srid, $with_z, $with_m);
     foreach ($points as $point) {
         $mp->geometries[] = Point::from_array($point, $srid, $with_z, $with_m);
     }
     return $mp;
 }