-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexec.modelagem.php_20170912
63 lines (45 loc) · 1.67 KB
/
exec.modelagem.php_20170912
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php session_start();
//error_reporting(E_ALL);
//ini_set('display_errors','1');
require_once('classes/experimento.class.php');
require_once('classes/conexao.class.php');
$conexao = new Conexao;
$conn = $conexao->Conectar();
$Experimento = new Experimento();
$Experimento->conn = $conn;
$operacao = $_REQUEST['op'];
$id = $_REQUEST['id'];
$extensao1 = $_REQUEST['edtextensao1_oeste'].';'.$_REQUEST['edtextensao1_leste'].';'.$_REQUEST['edtextensao1_norte'].';'.$_REQUEST['edtextensao1_sul'];
//$extensao2 = $_REQUEST['edtextensao2_oeste'].';'.$_REQUEST['edtextensao2_leste'].';'.$_REQUEST['edtextensao2_norte'].';'.$_REQUEST['edtextensao2_sul'];
$idfonte = $_REQUEST['cmboxfonte'];
$idtipoparticionamento = $_REQUEST['cmboxtipoparticionamento'];
$numpontos = $_REQUEST['edtnumpontos'];
$buffer = $_REQUEST['edtbuffer'];
$tss = $_REQUEST['edttss'];
$numparticoes = $_REQUEST['edtnumparticoes'];
$Experimento->idpartitiontype = $idtipoparticionamento;//integer,
$Experimento->num_partition = $numparticoes;//integer,
$Experimento->num_points = $numpontos ;//integer,
$Experimento->buffer = $buffer;//numeric(10,2),
$Experimento->tss = $tss;
$Experimento->extent_model = $extensao1;
//$Experimento->extent_projection = $extensao2;
$box=$_REQUEST['raster'];
while (list ($key,$val) = @each($box)) {
$result = $Experimento->incluirRaster($id,$val);
}
//print_r($_REQUEST);
//exit;
$box=$_REQUEST['algoritmo'];
while (list ($key,$val) = @each($box)) {
$result = $Experimento->incluirAlgoritmo($id,$val);
}
if ($result = $Experimento->alterar($id))
{
header("Location: consexperimento.php?op=A&MSGCODIGO=84&id=$id");
}
else
{
header("Location: consexperimento.php?op=A&MSGCODIGO=85&id=$id");
}
?>