public static function from_array($point_set_sets, $srid = null, $with_z = false, $with_m = false) { $mp = new self($srid, $with_z, $with_m); foreach ($point_set_sets as $point_set) { $mp->geometries[] = Polygon::from_array($point_set, $srid, $with_z, $with_m); } return $mp; }