Commit fd2100c80ef337aee3222a3070d847eff77a2085
1 parent
bfe5162c
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
26 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,26 @@ |
1 | +<?php | |
2 | +include_once(dirname(__FILE__)."/../inicia.php"); | |
3 | +// | |
4 | +//faz a busca da função que deve ser executada | |
5 | +// | |
6 | +$retorno = ""; //string que será retornada ao browser via JSON | |
7 | +switch (strtoupper($funcao)) | |
8 | +{ | |
9 | + case "METADATA": | |
10 | + $mapa = ms_newMapObj($map_file); | |
11 | + $l = $mapa->getlayerbyname($tema); | |
12 | + if($l != ""){ | |
13 | + $l->setmetadata($meta,$valor); | |
14 | + $mapa->save($map_file); | |
15 | + } | |
16 | + $retorno = "ok"; | |
17 | + break; | |
18 | +} | |
19 | +if (!connection_aborted()){ | |
20 | + if(isset($map_file) && isset($postgis_mapa) && $map_file != "") | |
21 | + restauraCon($map_file,$postgis_mapa); | |
22 | + cpjson($retorno); | |
23 | +} | |
24 | +else | |
25 | +{exit();} | |
26 | +?> | |
0 | 27 | \ No newline at end of file | ... | ... |