diff --git a/ferramentas/identifica/twitter.php b/ferramentas/identifica/twitter.php
index c1df653..27f043a 100755
--- a/ferramentas/identifica/twitter.php
+++ b/ferramentas/identifica/twitter.php
@@ -13,6 +13,7 @@ p {
insereSHP($xy,$projecao,$item,$valor);
+ if (!isset($_GET["projecao"])){$_GET["projecao"] = "";}
+ $m->insereSHP($_GET["xy"],$_GET["projecao"],$_GET["item"],$_GET["valor"]);
$_SESSION["contadorsalva"]++;
redesenhaMapa();
break;
}
-if (!connection_aborted()){
- if(isset($map_file) && isset($postgis_mapa) && $map_file != "")
+if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
restauraCon($map_file,$postgis_mapa);
- cpjson($retorno);
}
-else
-{exit();}
-
+cpjson($retorno);
?>
\ No newline at end of file
diff --git a/ferramentas/markercluster/.project b/ferramentas/markercluster/.project
deleted file mode 100755
index ceeee04..0000000
--- a/ferramentas/markercluster/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- ferramentas heatmap
-
-
-
-
-
- org.eclipse.wst.jsdt.core.javascriptValidator
-
-
-
-
-
- org.eclipse.wst.jsdt.core.jsNature
-
-
diff --git a/ferramentas/markercluster/.settings/.jsdtscope b/ferramentas/markercluster/.settings/.jsdtscope
deleted file mode 100755
index 0e4b119..0000000
--- a/ferramentas/markercluster/.settings/.jsdtscope
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/ferramentas/markercluster/.settings/org.eclipse.wst.jsdt.ui.superType.container b/ferramentas/markercluster/.settings/org.eclipse.wst.jsdt.ui.superType.container
deleted file mode 100755
index 49c8cd4..0000000
--- a/ferramentas/markercluster/.settings/org.eclipse.wst.jsdt.ui.superType.container
+++ /dev/null
@@ -1 +0,0 @@
-org.eclipse.wst.jsdt.launching.JRE_CONTAINER
\ No newline at end of file
diff --git a/ferramentas/markercluster/.settings/org.eclipse.wst.jsdt.ui.superType.name b/ferramentas/markercluster/.settings/org.eclipse.wst.jsdt.ui.superType.name
deleted file mode 100755
index 11006e2..0000000
--- a/ferramentas/markercluster/.settings/org.eclipse.wst.jsdt.ui.superType.name
+++ /dev/null
@@ -1 +0,0 @@
-Global
\ No newline at end of file
diff --git a/ferramentas/markercluster/exec.php b/ferramentas/markercluster/exec.php
index e9f1980..c5a4764 100755
--- a/ferramentas/markercluster/exec.php
+++ b/ferramentas/markercluster/exec.php
@@ -1,5 +1,5 @@
getlayerbyname($tema);
$novolayer = ms_newLayerObj($map, $layer);
$novolayer->setmetadata("tema",$titulo);
- $parametros = '{"plugin":"markercluster","parametros":{"tipoEstilos": "default","opacity":"'.$opacidade.'","gridSize":"'.$gridSize.'"}}';
+ $parametros = '{"plugin":"markercluster","parametros":{"tipoEstilos": "default","opacity":"'.$_GET["opacidade"].'","gridSize":"'.$_GET["gridSize"].'"}}';
$novolayer->setmetadata("PLUGINI3GEO",$parametros);
$novolayer->set("name",$nameLayer);
$novolayer->set("group","");
@@ -25,10 +25,8 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor
$retorno = $nameLayer;
break;
}
-if (!connection_aborted()){
- cpjson($retorno);
-}
-else{
- exit();
+if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
+ restauraCon($map_file,$postgis_mapa);
}
+cpjson($retorno);
?>
\ No newline at end of file
diff --git a/ferramentas/markercluster/funcoes.php b/ferramentas/markercluster/funcoes.php
index 06c024a..1b1d46f 100755
--- a/ferramentas/markercluster/funcoes.php
+++ b/ferramentas/markercluster/funcoes.php
@@ -20,9 +20,8 @@ function markerclusterDados($map_file){
$resultado[] = '{"lat":"'.$r["y"].'","lng":"'.$r["x"].'","count":"'.$r["valores"][0]["valor"].'"}';
}
}
- if (!connection_aborted()){
- if(isset($map_file) && isset($postgis_mapa) && $map_file != "")
- restauraCon($map_file,$postgis_mapa);
+ if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
+ restauraCon($map_file,$postgis_mapa);
}
return $resultado;
}
@@ -60,11 +59,9 @@ function markerclusterMapfile(){
$tempMapa = ms_newMapObj($dir."/../../temas/{$layer}.map");
$layern = $tempMapa->getlayer(0);
+ restauraConObj($mapa,$postgis_mapa);
ms_newLayerObj($mapa, $layern);
$mapa->save($map_file);
- if(!empty($postgis_mapa)){
- //substituiCon($map_file,$postgis_mapa);
- }
}
return $map_file;
}
diff --git a/ferramentas/markercluster/googlemaps_js.php b/ferramentas/markercluster/googlemaps_js.php
index 52464a4..c8e3226 100755
--- a/ferramentas/markercluster/googlemaps_js.php
+++ b/ferramentas/markercluster/googlemaps_js.php
@@ -17,10 +17,14 @@ nomevariavel nome da variavel javascript que sera retornada com os valores
*/
$dir = dirname(__FILE__);
//inicializa o programa verificando seguranca e pegando os parametros enviados pela URL e pela secao
-include_once($dir."/../inicia.php");
+include_once($dir."/../safe.php");
include_once($dir."/funcoes.php");
+$layer = $_GET["layer"];
+$tipoEstilos = $_GET["tipoEstilos"];
+$coluna = $_GET["coluna"];
+
$map_file = markerclusterMapfile();
$resultado = markerclusterDados($map_file);
$tipoEstilos = markerclusterEstilos($map_file,$layer,$tipoEstilos);
diff --git a/ferramentas/markercluster/openlayers_js.php b/ferramentas/markercluster/openlayers_js.php
index a0a1b65..153ad3c 100755
--- a/ferramentas/markercluster/openlayers_js.php
+++ b/ferramentas/markercluster/openlayers_js.php
@@ -18,34 +18,29 @@ nomevariavel nome da variavel javascript que sera retornada com os valores
$dir = dirname(__FILE__);
//inicializa o programa verificando seguranca e pegando os parametros enviados pela URL e pela secao
-include_once($dir."/../inicia.php");
+include_once($dir."/../safe.php");
include_once($dir."/funcoes.php");
+$layer = $_GET["layer"];
+$tipoEstilos = $_GET["tipoEstilos"];
+$coluna = $_GET["coluna"];
+
//o plugin pode ser chamado sem um mapfile criado
//usando apenas o mapfile existente em i3geo/temas
//nesse caso e necessario cirar um mapfile temporario
-if($g_sid != ""){
- session_name("i3GeoPHP");
- session_id($g_sid);
- session_start();
- if(!empty($_SESSION["map_file"])){
- $mapateste = ms_newMapObj($_SESSION["map_file"]);
- if($mapateste->getlayerbyname($layer) != ""){
- $map_file = $_SESSION["map_file"];
- }
+if(!empty($_SESSION["map_file"])){
+ $mapateste = ms_newMapObj($_SESSION["map_file"]);
+ if($mapateste->getlayerbyname($layer) != ""){
+ $map_file = $_SESSION["map_file"];
+ }
+ else{
+ $map_file = "";
}
}
$map_file = markerclusterMapfile();
//no caso do SAIKU, o nome do mapfile pode estar na sessao
if($map_file == ""){
- session_name("i3GeoPHP");
- session_start();
- if(!empty($_SESSION["map_file"])){
- $mapateste = ms_newMapObj($_SESSION["map_file"]);
- if($mapateste->getlayerbyname($layer) != ""){
- $map_file = $_SESSION["map_file"];
- }
- }
+ $map_file = $_SESSION["map_file"];
}
$resultado = markerclusterDados($map_file);
$tipoEstilos = markerclusterEstilos($map_file,$layer,$tipoEstilos);
diff --git a/ferramentas/mascara/exec.php b/ferramentas/mascara/exec.php
index bafd41d..f92b8ce 100755
--- a/ferramentas/mascara/exec.php
+++ b/ferramentas/mascara/exec.php
@@ -1,5 +1,5 @@
numlayers;
- $mascarar = explode(",",$mascarar);
+ $mascarar = explode(",",$_GET["mascarar"]);
for ($i=0;$i < $c;++$i) {
$l = $map->getlayer($i);
if($l->mask == $tema){
@@ -35,9 +35,8 @@ switch (strtoupper($funcao))
$map->save($map_file);
break;
}
-if (!connection_aborted()){
- cpjson($retorno);
+if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
+ restauraCon($map_file,$postgis_mapa);
}
-else
-{exit();}
+cpjson($retorno);
?>
\ No newline at end of file
diff --git a/ferramentas/melhorcaminho/exec.php b/ferramentas/melhorcaminho/exec.php
index dca7e5a..49a5106 100755
--- a/ferramentas/melhorcaminho/exec.php
+++ b/ferramentas/melhorcaminho/exec.php
@@ -1,5 +1,5 @@
getlayerbyname($raster);
+ $layer = $mapa->getlayerbyname($_GET["raster"]);
$cost_surface_path = $layer->data;
$prefixo = nomeRandomico(3);
//verifica se o mapa de custo existe
@@ -51,6 +51,8 @@ switch (strtoupper($funcao))
$pathresult = $dir_tmp."/melhorcaminho_".nomeRandomico();
//cria a pasta onde os resultados serao armazenados
mkdir ($pathresult,0744);
+ $pta = $_GET["pta"];
+ $ptb = $_GET["ptb"];
//parametros para o calculo de melhor caminho e linha reta
$best = array(
@@ -76,7 +78,7 @@ switch (strtoupper($funcao))
$buf = array(
"p3"=> array(
"calculation_type" =>"best_path_within_buffer",
- "buffer_km" => $buffer,
+ "buffer_km" => $_GET["buffer"],
"file_prefix" => $prefixo,
"start_coord" => "[$pta]",
"stop_coord" => "[$ptb]"
@@ -85,6 +87,7 @@ switch (strtoupper($funcao))
$processos[] = $buf;
}
//parametros para calculo com reclassificacao
+ $lut = $_GET["lut"];
if($lut != ""){
//pega os valores da lut
$lista = explode("|",$lut);
@@ -111,6 +114,7 @@ switch (strtoupper($funcao))
$processos[] = $lut;
}
//parametros para o calculo quando o usuario escolhe um layer que contem um shapefile
+ $temausuario = $_GET["temausuario"];
if($temausuario != ""){
//exporta o layer como um shapefile pois pode ser postgis
$shparq = downloadTema2($map_file,$temausuario,$locaplic,$dir_tmp,$postgis_mapa);
@@ -222,7 +226,7 @@ switch (strtoupper($funcao))
$retorno = $pathresult;
break;
case "RELATORIO":
- $yaml = yaml_parse_file($caminho."/result.yaml");
+ $yaml = yaml_parse_file($_GET["caminho"]."/result.yaml");
$resultados = $yaml["results"];
$retorno = array();
foreach($resultados as $r){
@@ -230,12 +234,8 @@ switch (strtoupper($funcao))
}
break;
}
-if (!connection_aborted()){
- if(isset($map_file) && isset($postgis_mapa) && $map_file != "")
+if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
restauraCon($map_file,$postgis_mapa);
- cpjson($retorno);
-}
-else{
- exit();
}
+cpjson($retorno);
?>
\ No newline at end of file
diff --git a/ferramentas/mmscale/exec.php b/ferramentas/mmscale/exec.php
index f25c2f9..7a21279 100755
--- a/ferramentas/mmscale/exec.php
+++ b/ferramentas/mmscale/exec.php
@@ -1,5 +1,5 @@
getlayerbyname($tema);
- if(empty($maxscaledenom)){
- $maxscaledenom = -1;
+ if(empty($_GET["maxscaledenom"])){
+ $_GET["maxscaledenom"] = -1;
}
- if(empty($minscaledenom)){
- $minscaledenom = -1;
+ if(empty($_GET["minscaledenom"])){
+ $_GET["minscaledenom"] = -1;
}
- $layer->set("maxscaledenom",$maxscaledenom);
- $layer->set("minscaledenom",$minscaledenom);
+ $layer->set("maxscaledenom",$_GET["maxscaledenom"]);
+ $layer->set("minscaledenom",$_GET["minscaledenom"]);
$layer->setmetadata("cache","");
$mapa->save($map_file);
$retorno = "ok";
@@ -34,12 +34,8 @@ Valor: MINMAX
);
break;
}
-if (!connection_aborted()){
- if(isset($map_file) && isset($postgis_mapa) && $map_file != "")
+if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
restauraCon($map_file,$postgis_mapa);
- cpjson($retorno);
-}
-else{
- exit();
}
+cpjson($retorno);
?>
diff --git a/ferramentas/nptpol/exec.php b/ferramentas/nptpol/exec.php
index 4612d30..c0c5cef 100755
--- a/ferramentas/nptpol/exec.php
+++ b/ferramentas/nptpol/exec.php
@@ -1,5 +1,5 @@
nptPol($temaPt,$temaPo,$locaplic,$somaritem);
+ $retorno = $m->nptPol($_GET["temaPt"],$_GET["temaPo"],$locaplic,$_GET["somaritem"]);
$m->salva();
$_SESSION["contadorsalva"]++;
break;
}
-if (!connection_aborted()){
- if(isset($map_file) && isset($postgis_mapa) && $map_file != "")
+if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
restauraCon($map_file,$postgis_mapa);
- cpjson($retorno);
}
-else
-{exit();}
+cpjson($retorno);
?>
\ No newline at end of file
diff --git a/ferramentas/nuvemtags/exec.php b/ferramentas/nuvemtags/exec.php
index fe98bd3..6a5f2cc 100755
--- a/ferramentas/nuvemtags/exec.php
+++ b/ferramentas/nuvemtags/exec.php
@@ -1,5 +1,5 @@
listatags($rss,$nrss);
+ $m = new Menutemas($map_file,$perfil,$locaplic,$_GET["urli3geo"]);
+ $retorno = $m->listatags($_GET["rss"],$_GET["nrss"]);
break;
}
-if (!connection_aborted()){
- if(isset($map_file) && isset($postgis_mapa) && $map_file != "")
+if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
restauraCon($map_file,$postgis_mapa);
- cpjson($retorno);
}
-else
-{exit();}
+cpjson($retorno);
?>
\ No newline at end of file
--
libgit2 0.21.2