Ejemplo n.º 1
0
        $m = new Legenda($map_file, $locaplic, $tema);
        $r = $m->aplicaTodasClasses($_GET["parametro"], $_GET["valor"]);
        $m->salva();
        if (!$r) {
            $r = "erro.Erro legenda nao disponivel";
        }
        $retorno = $r;
        break;
    case "APLICARCLUSTER":
        include_once dirname(__FILE__) . "/../../classesphp/classe_temas.php";
        $m = new Temas($map_file, $tema);
        $l = $m->mapa->getlayerbyname($tema);
        if ($filter != "") {
            //$filter = base64decode($filter);
        }
        $m->criaCluster($_GET["group"], $_GET["filter"], $_GET["maxdistance"], $_GET["region"], $_GET["buffer"]);
        $m->salva();
        $retorno = "ok";
        break;
    case "REMOVERCLUSTER":
        include_once dirname(__FILE__) . "/../../classesphp/classe_temas.php";
        $m = new Temas($map_file, $tema);
        $l = $m->mapa->getlayerbyname($tema);
        $m->removeCluster();
        $m->salva();
        $retorno = "ok";
        break;
}
if (isset($map_file) && isset($postgis_mapa) && $map_file != "") {
    restauraCon($map_file, $postgis_mapa);
}