Пример #1
0
 Desloca o centro do mapa para um ponto específico.
 
 <Navegacao->zoomPonto>
 */
 case "ZOOMPONTO":
     include_once "classe_navegacao.php";
     include_once "classe_temas.php";
     copiaSeguranca($map_file);
     $m = new Navegacao($map_file);
     $m->zoomPonto($_pg["xy"]);
     $m->salva();
     $m = new Temas($map_file, "");
     if (!isset($_pg["marca"])) {
         $_pg["marca"] = "ponto";
     }
     $m->insereFeature($marca, "POINT", $_pg["xy"], $_pg["texto"], $_pg["position"], $_pg["partials"], $_pg["offsetx"], $_pg["offsety"], $_pg["minfeaturesize"], $_pg["mindistance"], $_pg["force"], $_pg["shadowcolor"], $_pg["shadowsizex"], $_pg["shadowsizey"], $_pg["outlinecolor"], $_pg["cor"], $_pg["sombray"], $_pg["sombrax"], $_pg["sombra"], $_pg["fundo"], $_pg["angulo"], $_pg["tamanho"], $_pg["fonte"]);
     $m->salva();
     $_SESSION["contadorsalva"]++;
     redesenhaMapa();
     break;
     /*
      Section: Legenda
     
     Processa a legenda do mapa e de temas espec&iacute;ficos.
     
     <classe_legenda.php>
     */
     /*
      Valor: GERACORESCOLOURRAMP
     
     Retorna uma lista de valores RGB de cores geradas com base nsa grades de cores existentes (ver i3geo/symbols/colourramps)
Пример #2
0
     copiaSeguranca($map_file);
     $m = new Temas($map_file, "");
     if (!isset($_GET["marca"])) {
         $_GET["marca"] = "";
     }
     $shp = ms_shapeObjFromWkt($_GET["xy"]);
     if ($shp->type == MS_SHAPE_POINT) {
         $tipo = "POINT";
     }
     if ($shp->type == MS_SHAPE_LINE) {
         $tipo = "LINE";
     }
     if ($shp->type == MS_SHAPE_POLYGON) {
         $tipo = "POLYGON";
     }
     $m->insereFeature($_GET["marca"], $_GET["tipo"], $_GET["xy"], $_GET["texto"], $_GET["position"], $_GET["partials"], $_GET["offsetx"], $_GET["offsety"], $_GET["minfeaturesize"], $_GET["mindistance"], $_GET["force"], $_GET["shadowcolor"], $_GET["shadowsizex"], $_GET["shadowsizey"], $_GET["outlinecolor"], $_GET["cor"], $_GET["sombray"], $_GET["sombrax"], $_GET["sombra"], $_GET["fundo"], $_GET["angulo"], $_GET["tamanho"], $_GET["fonte"], $_GET["wrap"], true, $_GET["nometema"]);
     $m->salva();
     redesenhaMapa();
     break;
 case "SHAPEFILE":
     include_once "../../classesphp/classe_analise.php";
     $m = new Analise($map_file, "");
     $nomeLayer = $m->aplicaFuncaoListaWKT(array($_GET["xy"]), "converteSHP", $dir_tmp, $imgdir);
     $l = $m->mapa->getlayerbyname($nomeLayer);
     $l->setmetadata("tema", $_GET["nometema"]);
     //verifica projecao
     $shp = ms_shapeObjFromWkt($_GET["xy"]);
     $c = $shp->getCentroid();
     $c = $c->x;
     if ($c > -181 && $c < 181) {
         $l->setprojection(pegaProjecaoDefault("proj4"));