コード例 #1
0
ファイル: LinearRing.php プロジェクト: h-sn/geophp
 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;
 }
コード例 #2
0
ファイル: MultiPoint.php プロジェクト: h-sn/geophp
 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;
 }