Commit 9504a00adc9537555f8f83444897375a65c20347
1 parent
5b2896c5
Exists in
master
and in
7 other branches
Correção na função identifica e complementação do manual de administração (inclu…
…são de restrição por grupo)
Showing
6 changed files
with
135 additions
and
156 deletions
Show diff stats
classesphp/classe_atributos.php
... | ... | @@ -41,46 +41,46 @@ class Atributos |
41 | 41 | { |
42 | 42 | /* |
43 | 43 | Variavel: $mapa |
44 | - | |
44 | + | |
45 | 45 | Objeto mapa |
46 | 46 | */ |
47 | 47 | public $mapa; |
48 | 48 | /* |
49 | 49 | Variavel: $arquivo |
50 | - | |
50 | + | |
51 | 51 | Arquivo map file |
52 | 52 | */ |
53 | 53 | protected $arquivo; |
54 | 54 | /* |
55 | 55 | Variavel: $layer |
56 | - | |
56 | + | |
57 | 57 | Objeto layer |
58 | 58 | */ |
59 | 59 | protected $layer; |
60 | 60 | /* |
61 | 61 | Variavel: $nome |
62 | - | |
62 | + | |
63 | 63 | Nome do layer |
64 | 64 | */ |
65 | 65 | protected $nome; |
66 | 66 | /* |
67 | 67 | Variavel: $qyfile |
68 | - | |
68 | + | |
69 | 69 | Nome do arquivo de seleção (.qy) |
70 | 70 | */ |
71 | 71 | public $qyfile; |
72 | 72 | /* |
73 | 73 | Variavel: $projO |
74 | - | |
74 | + | |
75 | 75 | Objeto projection original do mapa. Obtido apenas na interface Googlemaps |
76 | 76 | */ |
77 | 77 | public $projO; |
78 | 78 | /* |
79 | 79 | Variavel: $v |
80 | - | |
80 | + | |
81 | 81 | Versão atual do Mapserver (primeiro dígito) |
82 | 82 | */ |
83 | - public $v; | |
83 | + public $v; | |
84 | 84 | /* |
85 | 85 | Function: __construct |
86 | 86 | |
... | ... | @@ -126,15 +126,15 @@ $ext - (opcional) extensão geográfica que será aplicada ao |
126 | 126 | if($this->mapa->getmetadata("interface") == "googlemaps"){ |
127 | 127 | $this->projO = $this->mapa->getProjection(); |
128 | 128 | $this->mapa->setProjection("init=epsg:4618,a=6378137,b=6378137"); |
129 | - } | |
129 | + } | |
130 | 130 | } |
131 | 131 | } |
132 | 132 | /* |
133 | 133 | function: salva |
134 | 134 | |
135 | 135 | Salva o mapfile atual |
136 | - | |
137 | -*/ | |
136 | + | |
137 | +*/ | |
138 | 138 | function salva() |
139 | 139 | { |
140 | 140 | if (connection_aborted()){exit();} |
... | ... | @@ -171,7 +171,7 @@ xmin ymin xmax ymax separados por espaço. |
171 | 171 | $projInObj = ms_newprojectionobj($prjTema); |
172 | 172 | $projOutObj = ms_newprojectionobj($prjMapa); |
173 | 173 | $ret->project($projInObj, $projOutObj); |
174 | - } | |
174 | + } | |
175 | 175 | } |
176 | 176 | $ext = $ret->minx." ".$ret->miny." ".$ret->maxx." ".$ret->maxy; |
177 | 177 | if (($shape->type == MS_SHP_POINT) || ($shape->type == 0)) |
... | ... | @@ -207,7 +207,7 @@ $registro - Índice do registro que será consultado. |
207 | 207 | if($this->v == 6){ |
208 | 208 | $this->layer->open(); |
209 | 209 | $shape = $this->layer->getShape(new resultObj($registro)); |
210 | - } | |
210 | + } | |
211 | 211 | else{ |
212 | 212 | if (@$this->layer->open() == MS_SUCCESS) |
213 | 213 | { |
... | ... | @@ -218,7 +218,7 @@ $registro - Índice do registro que será consultado. |
218 | 218 | $shape = $this->layer->getfeature($registro,-1); |
219 | 219 | $fechou = $this->layer->close(); |
220 | 220 | } |
221 | - } | |
221 | + } | |
222 | 222 | } |
223 | 223 | $ext = $this->extensaoShape($shape); |
224 | 224 | return($ext); |
... | ... | @@ -274,7 +274,7 @@ $tipo - Tipo de busca brasil|null |
274 | 274 | $this->layer->setfilter(""); |
275 | 275 | //le o arquivo de query se existir e checa se existe seleção para o tema |
276 | 276 | $items = pegaItens($this->layer,$this->mapa); |
277 | - | |
277 | + | |
278 | 278 | $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa); |
279 | 279 | if(count($shapes) == 0){ |
280 | 280 | $shapes = retornaShapesMapext($this->layer,$this->mapa); |
... | ... | @@ -348,12 +348,12 @@ $dadosDaClasse - sim|nao Indica se serão obtidos os dados que descrevem a |
348 | 348 | if($this->layer->getmetadata("itensdesc") != ""){ |
349 | 349 | $alias = array(); |
350 | 350 | $aliasdesc = explode(",",$this->layer->getmetadata("itensdesc")); |
351 | - $aliasitens = explode(",",$this->layer->getmetadata("itens")); | |
351 | + $aliasitens = explode(",",$this->layer->getmetadata("itens")); | |
352 | 352 | $aliasc = array_combine($aliasitens,$aliasdesc); |
353 | 353 | if(strtoupper($this->layer->getmetadata("convcaracter")) == "NAO") |
354 | 354 | {$convC = false;} |
355 | 355 | else |
356 | - {$convC = true;} | |
356 | + {$convC = true;} | |
357 | 357 | foreach($items as $i){ |
358 | 358 | if($aliasc[$i]){ |
359 | 359 | if($convC) |
... | ... | @@ -377,14 +377,14 @@ $dadosDaClasse - sim|nao Indica se serão obtidos os dados que descrevem a |
377 | 377 | if(strtoupper($this->layer->getmetadata("convcaracter")) == "NAO") |
378 | 378 | {$convC = false;} |
379 | 379 | else |
380 | - {$convC = true;} | |
380 | + {$convC = true;} | |
381 | 381 | if ($tipolista == "selecionados") |
382 | 382 | { |
383 | 383 | $chk = "CHECKED"; |
384 | 384 | if ($fim != "") |
385 | 385 | { |
386 | 386 | if (($res_count >= $fim) && ($fim < $res_count)) |
387 | - {$res_count = $fim;} | |
387 | + {$res_count = $fim;} | |
388 | 388 | } |
389 | 389 | for ($i = $inicio; $i < $res_count; ++$i) |
390 | 390 | { |
... | ... | @@ -408,7 +408,7 @@ $dadosDaClasse - sim|nao Indica se ser&atilde;o obtidos os dados que descrevem a |
408 | 408 | } |
409 | 409 | $registros[] = array("indice"=>$indx,"valores"=>$valitem,"status"=>$chk,"classe"=>$classe); |
410 | 410 | } |
411 | - $resultadoFinal[] = array("registros"=>$registros); | |
411 | + $resultadoFinal[] = array("registros"=>$registros); | |
412 | 412 | } |
413 | 413 | if ($tipolista == "tudo") |
414 | 414 | { |
... | ... | @@ -425,7 +425,7 @@ $dadosDaClasse - sim|nao Indica se ser&atilde;o obtidos os dados que descrevem a |
425 | 425 | if ($fim != "") |
426 | 426 | { |
427 | 427 | if (($res_count >= $fim) && ($fim < $res_count)) |
428 | - {$res_count = $fim;} | |
428 | + {$res_count = $fim;} | |
429 | 429 | } |
430 | 430 | $sopen = $this->layer->open(); |
431 | 431 | if($sopen == MS_FAILURE){return "erro";} |
... | ... | @@ -439,10 +439,10 @@ $dadosDaClasse - sim|nao Indica se ser&atilde;o obtidos os dados que descrevem a |
439 | 439 | else{ |
440 | 440 | $result = $this->layer->getResult($i); |
441 | 441 | $indx = $result->shapeindex; |
442 | - $shape = $this->layer->getfeature($indx,-1); | |
443 | - } | |
442 | + $shape = $this->layer->getfeature($indx,-1); | |
443 | + } | |
444 | 444 | foreach ($items as $item) |
445 | - { | |
445 | + { | |
446 | 446 | $valori = ""; |
447 | 447 | if(@$shape->values[$item]) |
448 | 448 | { |
... | ... | @@ -528,7 +528,7 @@ $onde - Tipo de abrang&ecirc;ncia espacial (brasil ou mapa) |
528 | 528 | if(strtoupper($l->getmetadata("convcaracter")) == "NAO") |
529 | 529 | {$convC = false;} |
530 | 530 | else |
531 | - {$convC = true;} | |
531 | + {$convC = true;} | |
532 | 532 | $filtro = $l->getfilterstring(); |
533 | 533 | if ($filtro != ""){$l->setfilter("");} |
534 | 534 | $buscas = "ÁÃÓÕÔáàãâóòôõúûíéêç"; |
... | ... | @@ -649,7 +649,7 @@ $onde - Tipo de abrang&ecirc;ncia espacial (brasil ou mapa) |
649 | 649 | $ret = $this->extensaoShape($shape,$l); |
650 | 650 | if (($prjTema != "") && ($prjMapa != $prjTema)) |
651 | 651 | {$ret->project($projInObj, $projOutObj);} |
652 | - $novoreg["box"] = $ret; | |
652 | + $novoreg["box"] = $ret; | |
653 | 653 | $novoreg["valores"] = $r; |
654 | 654 | $encontrado = "nao"; |
655 | 655 | $fr[] = $novoreg; |
... | ... | @@ -687,7 +687,7 @@ Include: |
687 | 687 | $shapes = retornaShapesSelecionados($this->layer,$this->arquivo,$this->mapa); |
688 | 688 | if(count($shapes) == 0){ |
689 | 689 | $shapes = retornaShapesMapext($this->layer,$this->mapa); |
690 | - } | |
690 | + } | |
691 | 691 | //pega os valores |
692 | 692 | foreach($shapes as $shape) |
693 | 693 | { |
... | ... | @@ -715,7 +715,7 @@ Include: |
715 | 715 | //faz os calculos |
716 | 716 | if(file_exists($this->locaplic."/classe_estatistica.php")) |
717 | 717 | include_once($this->locaplic."/classe_estatistica.php"); |
718 | - else | |
718 | + else | |
719 | 719 | include_once("classe_estatistica.php"); |
720 | 720 | $estat = new estatistica(); |
721 | 721 | $resultado = $estat->calcula($valoresn); |
... | ... | @@ -873,34 +873,36 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
873 | 873 | */ |
874 | 874 | function identifica2($opcao,$xy,$resolucao,$ext="",$listaDeTemas="",$wkt="nao") |
875 | 875 | { |
876 | - if($listaDeTemas != "") | |
877 | - { | |
878 | - $listaDeTemas = str_replace(" ",",",$listaDeTemas); | |
879 | - $temas = explode(",",$listaDeTemas); | |
880 | - } | |
881 | - else | |
882 | - {$temas = $this->mapa->getalllayernames();} | |
883 | - foreach ($temas as $tem) | |
884 | - { | |
885 | - $vermultilayer = new vermultilayer(); | |
886 | - $vermultilayer->verifica($this->arquivo,$tem); | |
887 | - if ($vermultilayer->resultado == 1) // o tema e multi layer | |
876 | + if ($opcao != "tema"){ | |
877 | + if($listaDeTemas != "") | |
888 | 878 | { |
889 | - foreach (($vermultilayer->temasvisiveis) as $tv) | |
890 | - { | |
891 | - $l = $this->mapa->getlayerbyname($tv); | |
892 | - if ($l->getmetadata("identifica") != "nao") | |
893 | - {$listatemas[] = $tv;} | |
894 | - } | |
879 | + $listaDeTemas = str_replace(" ",",",$listaDeTemas); | |
880 | + $temas = explode(",",$listaDeTemas); | |
895 | 881 | } |
896 | 882 | else |
883 | + {$temas = $this->mapa->getalllayernames();} | |
884 | + foreach ($temas as $tem) | |
897 | 885 | { |
898 | - $l = $this->mapa->getlayerbyname($tem); | |
899 | - if (($l->getmetadata("escondido") == "") && ($l->getmetadata("identifica") != "nao")) | |
900 | - {$listatemas[] = $tem;} | |
886 | + $vermultilayer = new vermultilayer(); | |
887 | + $vermultilayer->verifica($this->arquivo,$tem); | |
888 | + if ($vermultilayer->resultado == 1) // o tema e multi layer | |
889 | + { | |
890 | + foreach (($vermultilayer->temasvisiveis) as $tv) | |
891 | + { | |
892 | + $l = $this->mapa->getlayerbyname($tv); | |
893 | + if ($l->getmetadata("identifica") != "nao") | |
894 | + {$listatemas[] = $tv;} | |
895 | + } | |
896 | + } | |
897 | + else | |
898 | + { | |
899 | + $l = $this->mapa->getlayerbyname($tem); | |
900 | + if (($l->getmetadata("escondido") == "") && ($l->getmetadata("identifica") != "nao")) | |
901 | + {$listatemas[] = $tem;} | |
902 | + } | |
901 | 903 | } |
904 | + $listatemas = array_unique($listatemas); | |
902 | 905 | } |
903 | - $listatemas = array_unique($listatemas); | |
904 | 906 | $xyarray = explode(",",$xy); |
905 | 907 | $resultados = array(); |
906 | 908 | //pesquisa um tema |
... | ... | @@ -1086,7 +1088,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1086 | 1088 | |
1087 | 1089 | $item - Item único que será identificado. |
1088 | 1090 | |
1089 | - $tiporetorno - Tipo de retorno dos dados. Se for vazio, o retorno é formatado como string, se for shape, retorna o objeto shape | |
1091 | + $tiporetorno - Tipo de retorno dos dados. Se for vazio, o retorno é formatado como string, se for shape, retorna o objeto shape | |
1090 | 1092 | */ |
1091 | 1093 | function identificaQBP($tema,$x,$y,$map_file,$resolucao,$item="",$tiporetorno="") |
1092 | 1094 | { |
... | ... | @@ -1131,7 +1133,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1131 | 1133 | if(strtoupper($f) == "TEXT/PLAIN") |
1132 | 1134 | {$formatoinfo = "text/plain";} |
1133 | 1135 | } |
1134 | - | |
1136 | + | |
1135 | 1137 | } |
1136 | 1138 | $srs = $layer->getmetadata("wms_srs"); |
1137 | 1139 | $srss = explode(" ",$srs); |
... | ... | @@ -1160,7 +1162,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1160 | 1162 | $resposta = str_ireplace(">","zzzzzzzzzz",$resposta); |
1161 | 1163 | } |
1162 | 1164 | $resultado[] = $resposta; |
1163 | - return $resultado; | |
1165 | + return $resultado; | |
1164 | 1166 | } |
1165 | 1167 | if(($layer->connectiontype != MS_WMS) && ($layer->type == MS_LAYER_RASTER)) |
1166 | 1168 | { |
... | ... | @@ -1223,7 +1225,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1223 | 1225 | { |
1224 | 1226 | $valori = array(); |
1225 | 1227 | $shape = $layer->getShape($layer->getResult($i)); |
1226 | - | |
1228 | + | |
1227 | 1229 | if ($tiporetorno == "shape") |
1228 | 1230 | { |
1229 | 1231 | $layer->close(); |
... | ... | @@ -1321,7 +1323,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1321 | 1323 | if(strtoupper($layer->getmetadata("convcaracter")) == "NAO") |
1322 | 1324 | {$convC = false;} |
1323 | 1325 | else |
1324 | - {$convC = true;} | |
1326 | + {$convC = true;} | |
1325 | 1327 | // |
1326 | 1328 | //operação especial para o caso de wms |
1327 | 1329 | // |
... | ... | @@ -1345,7 +1347,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1345 | 1347 | { |
1346 | 1348 | if(strtoupper($f) == "TEXT/PLAIN") |
1347 | 1349 | {$formatoinfo = "text/plain";} |
1348 | - } | |
1350 | + } | |
1349 | 1351 | } |
1350 | 1352 | else |
1351 | 1353 | { |
... | ... | @@ -1359,7 +1361,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1359 | 1361 | $res = str_replace("INFOFORMAT","INFO_FORMAT",$res); |
1360 | 1362 | $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); |
1361 | 1363 | $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); |
1362 | - | |
1364 | + | |
1363 | 1365 | $resposta = file($res); |
1364 | 1366 | $n = array(); |
1365 | 1367 | if(strtoupper($formatoinfo) == "TEXT/HTML") |
... | ... | @@ -1388,7 +1390,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1388 | 1390 | $resposta = file($res); |
1389 | 1391 | $cabecalho = str_replace('" "','"|"',$resposta[0]); |
1390 | 1392 | $cabecalho = explode("|",$cabecalho); |
1391 | - | |
1393 | + | |
1392 | 1394 | $linha = str_replace('" "','"|"',$resposta[1]); |
1393 | 1395 | $linha = explode("|",$linha); |
1394 | 1396 | for($i=0;$i < count($cabecalho);++$i) |
... | ... | @@ -1417,22 +1419,22 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1417 | 1419 | {$itens = $itensLayer;} |
1418 | 1420 | else |
1419 | 1421 | {$itens = explode(",",$itens);} |
1420 | - | |
1422 | + | |
1421 | 1423 | if($itensdesc == "") |
1422 | 1424 | {$itensdesc = $itensLayer;}//array_fill(0, $nitens-1,'');} |
1423 | 1425 | else |
1424 | 1426 | {$itensdesc = explode(",",$itensdesc);} |
1425 | - | |
1427 | + | |
1426 | 1428 | if($lks == "") |
1427 | 1429 | {$lks = array_fill(0, $nitens-1,'');} |
1428 | 1430 | else |
1429 | 1431 | {$lks = explode(",",$lks);} |
1430 | - | |
1432 | + | |
1431 | 1433 | if($itemimg == "") |
1432 | 1434 | {$itemimg = array_fill(0, $nitens-1,'');} |
1433 | 1435 | else |
1434 | - {$itemimg = explode(",",$itemimg);} | |
1435 | - | |
1436 | + {$itemimg = explode(",",$itemimg);} | |
1437 | + | |
1436 | 1438 | if($locimg == "") |
1437 | 1439 | {$locimg = array_fill(0, $nitens-1,'');} |
1438 | 1440 | else |
... | ... | @@ -1465,7 +1467,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1465 | 1467 | $wkt = "nao"; |
1466 | 1468 | $layer->set("toleranceunits",MS_PIXELS); |
1467 | 1469 | $layer->set("tolerance",$resolucao); |
1468 | - $ident = @$layer->queryByPoint($pt, 0, 0); //0.01); | |
1470 | + $ident = @$layer->queryByPoint($pt, 0, 0); //0.01); | |
1469 | 1471 | } |
1470 | 1472 | if (($layer->type == MS_LAYER_POINT) || ($layer->type == MS_LAYER_LINE) || ($layer->type == MS_LAYER_CHART)) |
1471 | 1473 | { |
... | ... | @@ -1487,7 +1489,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1487 | 1489 | if(strtoupper($layer->getmetadata("convcaracter")) == "NAO") |
1488 | 1490 | {$convC = false;} |
1489 | 1491 | else |
1490 | - {$convC = true;} | |
1492 | + {$convC = true;} | |
1491 | 1493 | if($sopen == MS_FAILURE){return "erro";} |
1492 | 1494 | for ($i = 0; $i < $res_count; ++$i) |
1493 | 1495 | { |
... | ... | @@ -1497,7 +1499,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1497 | 1499 | else{ |
1498 | 1500 | $result = $layer->getResult($i); |
1499 | 1501 | $shp_index = $result->shapeindex; |
1500 | - $shape = $layer->getfeature($shp_index,-1); | |
1502 | + $shape = $layer->getfeature($shp_index,-1); | |
1501 | 1503 | } |
1502 | 1504 | $conta = 0; |
1503 | 1505 | //var_dump($itens);exit; |
... | ... | @@ -1537,7 +1539,7 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1537 | 1539 | {$img = "<img src='".$locimg[$conta]."//".$shape->values[$itemimg[$conta]]."' //>";} |
1538 | 1540 | else |
1539 | 1541 | if($itemimg[$conta] != "") |
1540 | - {$img = "<img src='".$shape->values[$itemimg[$conta]]."' //>";} | |
1542 | + {$img = "<img src='".$shape->values[$itemimg[$conta]]."' //>";} | |
1541 | 1543 | //indica se o item é tbm uma etiqueta |
1542 | 1544 | $etiqueta = "nao"; |
1543 | 1545 | if(in_array($it,$tips)) |
... | ... | @@ -1572,15 +1574,15 @@ $wkt - (opcional) {boolean} inclui ou n&atilde;o o valor do wkt da geometria |
1572 | 1574 | } |
1573 | 1575 | /* |
1574 | 1576 | Function: converte |
1575 | - | |
1577 | + | |
1576 | 1578 | Converte uma string de ISO-8859-1 para UTF-8 |
1577 | - | |
1579 | + | |
1578 | 1580 | Parametro: |
1579 | - | |
1581 | + | |
1580 | 1582 | $texto - string que será convertida |
1581 | - | |
1583 | + | |
1582 | 1584 | Return: |
1583 | - | |
1585 | + | |
1584 | 1586 | {string} |
1585 | 1587 | */ |
1586 | 1588 | function converte($texto) | ... | ... |
documentacao/manual-admin-i3geo-4_7-pt.odt
No preview for this file type
ogc.htm
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> | |
1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
5 | 5 | <title>WMS</title> |
6 | -<meta name="description" content="OGC"> | |
7 | -<meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia"> | |
6 | +<meta name="description" content="OGC"> | |
7 | +<meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia"> | |
8 | 8 | <meta name="robots" content="index,follow"> |
9 | 9 | <script type="text/javascript" src="classesjs/i3geo.js"></script> |
10 | 10 | <style> |
11 | -P | |
11 | +P | |
12 | 12 | {padding-top:12px;COLOR: #2F4632;text-align: left;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;} |
13 | 13 | #arvoreTemas |
14 | 14 | {width:280px;} |
... | ... | @@ -86,7 +86,7 @@ function ogc_endereco(tema) |
86 | 86 | ins += "<p>"+servico |
87 | 87 | |
88 | 88 | ins += "<p>Bookmark: <span id=bm ></span>" |
89 | - ins += "<p><iframe src='http://www.facebook.com/plugins/like.php?href="+servico+"&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>"; | |
89 | + ins += "<p><iframe src='http://www.facebook.com/plugins/like.php?href="+servico+"&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>"; | |
90 | 90 | ins += "<p><a target=blank href='"+servico+"&SRS=EPSG:4618&WIDTH=500&HEIGHT=500&BBOX=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&FORMAT=image/png&service=wms&version=1.1.0&request=getmap&layers="+tema+"' />testar</a>" |
91 | 91 | ins += "<p><a target=blank href='ogc.php?temas="+tema+"&format=application/openlayers&bbox=-76.5125927,-39.3925675209,-29.5851853,9.49014852081' />visualizar</a>" |
92 | 92 | ... | ... |
pacotes/cswclient/csw.html
1 | -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <title>Buscar metadados na INDE</title> |
5 | -<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> | |
5 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
6 | 6 | |
7 | 7 | <link rel="stylesheet" type="text/css" href="lib/css/cswclient.css"/> |
8 | 8 | |
... | ... | @@ -16,10 +16,10 @@ |
16 | 16 | <div class="csw-main"> |
17 | 17 | <div class="csw-content"> |
18 | 18 | <div class="captioneddiv"> |
19 | - <form name="theForm" method="POST" action="javascript:void(csw_client.getRecords())"> | |
19 | + <form name="theForm" method="post" action="javascript:void(csw_client.getRecords())"> | |
20 | 20 | <select name="queryable"> |
21 | 21 | <option value="anytext">Qualquer lugar</option> |
22 | - <option value="title">Título</option> | |
22 | + <option value="title">Título</option> | |
23 | 23 | <option value="subject">Descrição</option> |
24 | 24 | </select> |
25 | 25 | <select name="operator"> |
... | ... | @@ -28,7 +28,7 @@ |
28 | 28 | </select> |
29 | 29 | <input type="text" name="query" value="" size="24"/> |
30 | 30 | <p/> |
31 | - Região (xmin ymin xmax ymax): <input disabled type="text" name="bbox" value="180 90 -180 -90" size="24"/> | |
31 | + Região (xmin ymin xmax ymax): <input disabled type="text" name="bbox" value="180 90 -180 -90" size="24"/> | |
32 | 32 | <p/> |
33 | 33 | <span id="csw-hosts"></span> |
34 | 34 | <select id="schema" name="schema"> |
... | ... | @@ -51,7 +51,7 @@ |
51 | 51 | <input type="button" value="pesquisar" onClick="javascript:void(csw_client.clearResposta());void(csw_client.getRecords())"/> |
52 | 52 | </form> |
53 | 53 | </div> |
54 | - | |
54 | + | |
55 | 55 | <div id="results-container"> |
56 | 56 | <div class="csw-main2" id="results"> |
57 | 57 | <div class="csw-contents"> |
... | ... | @@ -59,12 +59,12 @@ |
59 | 59 | </div> |
60 | 60 | </div> |
61 | 61 | </div> |
62 | - | |
62 | + | |
63 | 63 | </div> |
64 | 64 | </div><!-- main --> |
65 | - </div><!-- query-container --> | |
65 | + </div><!-- query-container --> | |
66 | 66 | <p/> |
67 | - <!-- | |
67 | + <!-- | |
68 | 68 | <div id="popup"> |
69 | 69 | <div class="close"> |
70 | 70 | <a href="javascript:void(csw_client.hideDiv(document.getElementById('popup')))">[close]</a> |
... | ... | @@ -74,18 +74,18 @@ |
74 | 74 | <div id="metadata"></div> |
75 | 75 | </div> |
76 | 76 | </div> |
77 | - </div>popup --> | |
77 | + </div>popup --> | |
78 | 78 | <div id="overlay" style="visibility:hidden"></div> |
79 | 79 | <script type="text/javascript"> |
80 | 80 | //var cswhost = "http://geomatics.nlr.nl/excat/csw";//default host |
81 | - //var host = "http://myhost.nlr.nl/cswclient/"; // path to proxy directory if different from path to csw.html | |
81 | + //var host = "http://myhost.nlr.nl/cswclient/"; // path to proxy directory if different from path to csw.html | |
82 | 82 | //var csw_client = new CSWClient(cswhost, host); // if not using default settings |
83 | - //var csw_client = new CSWClient("http://geonovum.nitg.tno.nl/geonetwork/srv/en/csw"); | |
83 | + //var csw_client = new CSWClient("http://geonovum.nitg.tno.nl/geonetwork/srv/en/csw"); | |
84 | 84 | var csw_client = new CSWClient("http://www.metadados.inde.gov.br/geonetwork/srv/br/csw"); |
85 | 85 | //var csw_client = new CSWClient("http://localhost:8080/geonetwork/srv/en/csw"); |
86 | 86 | csw_client.writeClient("csw-wrapper"); |
87 | 87 | //csw_client.useProxy(false); // default=true |
88 | 88 | </script> |
89 | - | |
89 | + | |
90 | 90 | </body> |
91 | 91 | </html> | ... | ... |
principal.htm
1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
... | ... | @@ -28,13 +28,13 @@ body,td |
28 | 28 | <div style="width:700px;text-align:left;" > |
29 | 29 | <table style="padding:2px"> |
30 | 30 | <tr> |
31 | - <td></td> | |
31 | + <td></td> | |
32 | 32 | <td> |
33 | 33 | <b>Documentação e sites relacionados</b> |
34 | 34 | </td> |
35 | 35 | </tr> |
36 | 36 | <tr> |
37 | - <td></td> | |
37 | + <td></td> | |
38 | 38 | <td> |
39 | 39 | <a href="guia_de_migracao.txt" target="_blank" > |
40 | 40 | Guia de migração para a versão mais recente (para desenvolvedores) |
... | ... | @@ -42,7 +42,7 @@ body,td |
42 | 42 | </td> |
43 | 43 | </tr> |
44 | 44 | <tr> |
45 | - <td></td> | |
45 | + <td></td> | |
46 | 46 | <td> |
47 | 47 | <a href="documentacao" target="_blank" > |
48 | 48 | Documentação dos códigos |
... | ... | @@ -51,7 +51,7 @@ body,td |
51 | 51 | </td> |
52 | 52 | </tr> |
53 | 53 | <tr> |
54 | - <td></td> | |
54 | + <td></td> | |
55 | 55 | <td> |
56 | 56 | <a href="http://pt.wikibooks.org/wiki/I3geo" target="_blank" > |
57 | 57 | Wikibook |
... | ... | @@ -59,7 +59,7 @@ body,td |
59 | 59 | </td> |
60 | 60 | </tr> |
61 | 61 | <tr> |
62 | - <td></td> | |
62 | + <td></td> | |
63 | 63 | <td> |
64 | 64 | <a href="http://www.softwarepublico.gov.br/spb/ver-comunidade?community_id=1444332" target="_blank" > |
65 | 65 | Portal do software público brasileiro |
... | ... | @@ -68,7 +68,7 @@ body,td |
68 | 68 | </td> |
69 | 69 | </tr> |
70 | 70 | <tr> |
71 | - <td></td> | |
71 | + <td></td> | |
72 | 72 | <td> |
73 | 73 | <a href="http://www.ohloh.net/p/i3geo?ref=WidgetProjectThinBadge" target="_blank" > |
74 | 74 | Rede OHLOH |
... | ... | @@ -77,13 +77,13 @@ body,td |
77 | 77 | </tr> |
78 | 78 | |
79 | 79 | <tr> |
80 | - <td></td> | |
80 | + <td></td> | |
81 | 81 | <td> |
82 | 82 | <b>Aplicativos de administração</b> |
83 | 83 | </td> |
84 | 84 | </tr> |
85 | 85 | <tr> |
86 | - <td></td> | |
86 | + <td></td> | |
87 | 87 | <td> |
88 | 88 | <a href="admin" target="_blank" > |
89 | 89 | Sistema de administração |
... | ... | @@ -92,7 +92,7 @@ body,td |
92 | 92 | </td> |
93 | 93 | </tr> |
94 | 94 | <tr> |
95 | - <td></td> | |
95 | + <td></td> | |
96 | 96 | <td> |
97 | 97 | <a href="testamapfile.php" target="_blank" > |
98 | 98 | Testa mapfile |
... | ... | @@ -101,7 +101,7 @@ body,td |
101 | 101 | </td> |
102 | 102 | </tr> |
103 | 103 | <tr> |
104 | - <td></td> | |
104 | + <td></td> | |
105 | 105 | <td> |
106 | 106 | <a href="testainstal.php" target="_blank" > |
107 | 107 | Testa instalação do i3geo |
... | ... | @@ -110,23 +110,23 @@ body,td |
110 | 110 | </td> |
111 | 111 | </tr> |
112 | 112 | <tr> |
113 | - <td></td> | |
113 | + <td></td> | |
114 | 114 | <td> |
115 | 115 | <a href="geraminiatura.php" target="_blank" > |
116 | 116 | Gerador de miniaturas |
117 | 117 | </a> |
118 | - Aplicativo para geração de imagens em miniatura para "preview" de cada tema existente em i3geo/temas. esse programa deve ser utilizado apenas pelos administradores do i3geo. | |
118 | + Aplicativo para geração de imagens em miniatura para "preview" de cada tema existente em i3geo/temas. esse programa deve ser utilizado apenas pelos administradores do i3geo. | |
119 | 119 | </td> |
120 | 120 | </tr> |
121 | 121 | |
122 | 122 | <tr> |
123 | - <td></td> | |
123 | + <td></td> | |
124 | 124 | <td> |
125 | 125 | <b>Interfaces de inicialização</b> |
126 | 126 | </td> |
127 | 127 | </tr> |
128 | 128 | <tr> |
129 | - <td></td> | |
129 | + <td></td> | |
130 | 130 | <td> |
131 | 131 | <a href="mashups/index.html" target="_blank" > |
132 | 132 | Mashups |
... | ... | @@ -134,7 +134,7 @@ body,td |
134 | 134 | </td> |
135 | 135 | </tr> |
136 | 136 | <tr> |
137 | - <td></td> | |
137 | + <td></td> | |
138 | 138 | <td> |
139 | 139 | <a href="ms_criamapa.php" target="_blank" > |
140 | 140 | Inicialização normal do i3geo |
... | ... | @@ -142,7 +142,7 @@ body,td |
142 | 142 | </td> |
143 | 143 | </tr> |
144 | 144 | <tr> |
145 | - <td></td> | |
145 | + <td></td> | |
146 | 146 | <td> |
147 | 147 | <a href="atlas" target="_blank" > |
148 | 148 | Atlas |
... | ... | @@ -151,7 +151,7 @@ body,td |
151 | 151 | </td> |
152 | 152 | </tr> |
153 | 153 | <tr> |
154 | - <td></td> | |
154 | + <td></td> | |
155 | 155 | <td> |
156 | 156 | <a href="ms_criamapa.php?interface=zerocalol.htm" target="_blank" > |
157 | 157 | Versão com menos recursos |
... | ... | @@ -160,7 +160,7 @@ body,td |
160 | 160 | </td> |
161 | 161 | </tr> |
162 | 162 | <tr> |
163 | - <td></td> | |
163 | + <td></td> | |
164 | 164 | <td> |
165 | 165 | <a href="ms_criamapa.php?interface=openlayers.htm" target="_blank" > |
166 | 166 | Versão com o uso do software Openlayers |
... | ... | @@ -169,7 +169,7 @@ body,td |
169 | 169 | </td> |
170 | 170 | </tr> |
171 | 171 | <tr> |
172 | - <td></td> | |
172 | + <td></td> | |
173 | 173 | <td> |
174 | 174 | <a href="interface/openlayers_t.htm" target="_blank" > |
175 | 175 | Versão com o uso do software Openlayers para tablets |
... | ... | @@ -178,7 +178,7 @@ body,td |
178 | 178 | </td> |
179 | 179 | </tr> |
180 | 180 | <tr> |
181 | - <td></td> | |
181 | + <td></td> | |
182 | 182 | <td> |
183 | 183 | <a href="ms_criamapa.php?interface=googlemaps.phtml" target="_blank" > |
184 | 184 | Versão com o uso do software Google Maps |
... | ... | @@ -187,7 +187,7 @@ body,td |
187 | 187 | </td> |
188 | 188 | </tr> |
189 | 189 | <tr> |
190 | - <td></td> | |
190 | + <td></td> | |
191 | 191 | <td> |
192 | 192 | <a href="ms_criamapa.php?interface=googleearth.phtml" target="_blank" > |
193 | 193 | Versão com o uso do software Google Earth (precisa de plugin) |
... | ... | @@ -196,7 +196,7 @@ body,td |
196 | 196 | </td> |
197 | 197 | </tr> |
198 | 198 | <tr> |
199 | - <td></td> | |
199 | + <td></td> | |
200 | 200 | <td> |
201 | 201 | <a href="mobile" target="_blank" > |
202 | 202 | Versão simplificada para dispositivos móveis |
... | ... | @@ -205,13 +205,13 @@ body,td |
205 | 205 | </td> |
206 | 206 | </tr> |
207 | 207 | <tr> |
208 | - <td></td> | |
208 | + <td></td> | |
209 | 209 | <td> |
210 | 210 | <b>Aplicativos</b> |
211 | 211 | </td> |
212 | 212 | </tr> |
213 | 213 | <tr> |
214 | - <td></td> | |
214 | + <td></td> | |
215 | 215 | <td> |
216 | 216 | <a href="pacotes/gvsig/gvsig2mapfile/upload.htm" target="_blank" > |
217 | 217 | gvsig2mapfile |
... | ... | @@ -220,7 +220,7 @@ body,td |
220 | 220 | </td> |
221 | 221 | </tr> |
222 | 222 | <tr> |
223 | - <td></td> | |
223 | + <td></td> | |
224 | 224 | <td> |
225 | 225 | <a href="twitter2geo.php" target="_blank" > |
226 | 226 | Twitter2geo |
... | ... | @@ -229,7 +229,7 @@ body,td |
229 | 229 | </td> |
230 | 230 | </tr> |
231 | 231 | <tr> |
232 | - <td></td> | |
232 | + <td></td> | |
233 | 233 | <td> |
234 | 234 | <a href="pacotes/arvorehiper/index.php" target="_blank" > |
235 | 235 | Árvore hiperbólica |
... | ... | @@ -238,7 +238,7 @@ body,td |
238 | 238 | </td> |
239 | 239 | </tr> |
240 | 240 | <tr> |
241 | - <td></td> | |
241 | + <td></td> | |
242 | 242 | <td> |
243 | 243 | <a href="datadownload.htm" target="_blank" > |
244 | 244 | Aplicativo para download de dados |
... | ... | @@ -247,7 +247,7 @@ body,td |
247 | 247 | </td> |
248 | 248 | </tr> |
249 | 249 | <tr> |
250 | - <td></td> | |
250 | + <td></td> | |
251 | 251 | <td> |
252 | 252 | <a href="wscliente.htm" target="_blank" > |
253 | 253 | Aplicativo para consulta a web services nos padrões OGC |
... | ... | @@ -256,7 +256,7 @@ body,td |
256 | 256 | </td> |
257 | 257 | </tr> |
258 | 258 | <tr> |
259 | - <td></td> | |
259 | + <td></td> | |
260 | 260 | <td> |
261 | 261 | <a href="geradordelinks.htm" target="_blank" > |
262 | 262 | Gerador de links |
... | ... | @@ -266,7 +266,7 @@ body,td |
266 | 266 | </tr> |
267 | 267 | |
268 | 268 | <tr> |
269 | - <td></td> | |
269 | + <td></td> | |
270 | 270 | <td> |
271 | 271 | <a href="ogc.htm" target="_blank" > |
272 | 272 | Gerador de endereços de web services |
... | ... | @@ -275,7 +275,7 @@ body,td |
275 | 275 | </td> |
276 | 276 | </tr> |
277 | 277 | <tr> |
278 | - <td></td> | |
278 | + <td></td> | |
279 | 279 | <td> |
280 | 280 | <a href="ogc.php?ajuda=" target="_blank" > |
281 | 281 | Gerador web services |
... | ... | @@ -284,7 +284,7 @@ body,td |
284 | 284 | </td> |
285 | 285 | </tr> |
286 | 286 | <tr> |
287 | - <td></td> | |
287 | + <td></td> | |
288 | 288 | <td> |
289 | 289 | <a href="ogc.php?lista=temas" target="_blank" > |
290 | 290 | Listagem compacta dos Web Services |
... | ... | @@ -293,7 +293,7 @@ body,td |
293 | 293 | </td> |
294 | 294 | </tr> |
295 | 295 | <tr> |
296 | - <td></td> | |
296 | + <td></td> | |
297 | 297 | <td> |
298 | 298 | <a href="kml.php" target="_blank" > |
299 | 299 | Gerador kml |
... | ... | @@ -303,13 +303,13 @@ body,td |
303 | 303 | </tr> |
304 | 304 | |
305 | 305 | <tr> |
306 | - <td></td> | |
306 | + <td></td> | |
307 | 307 | <td> |
308 | 308 | <b>RSS</b> |
309 | 309 | </td> |
310 | 310 | </tr> |
311 | 311 | <tr> |
312 | - <td></td> | |
312 | + <td></td> | |
313 | 313 | <td> |
314 | 314 | <a href="admin/xmlservicoswms.php" target="_blank" > |
315 | 315 | RSS com a lista de WMS cadastrados |
... | ... | @@ -317,7 +317,7 @@ body,td |
317 | 317 | </td> |
318 | 318 | </tr> |
319 | 319 | <tr> |
320 | - <td></td> | |
320 | + <td></td> | |
321 | 321 | <td> |
322 | 322 | <a href="admin/xmlkmlrss.php" target="_blank" > |
323 | 323 | RSS com a lista de KML cadastrados |
... | ... | @@ -325,7 +325,7 @@ body,td |
325 | 325 | </td> |
326 | 326 | </tr> |
327 | 327 | <tr> |
328 | - <td></td> | |
328 | + <td></td> | |
329 | 329 | <td> |
330 | 330 | <a href="admin/rsstemasdownload.php" target="_blank" > |
331 | 331 | RSS com a lista de dados disponíveis para download |
... | ... | @@ -334,7 +334,7 @@ body,td |
334 | 334 | </td> |
335 | 335 | </tr> |
336 | 336 | <tr> |
337 | - <td></td> | |
337 | + <td></td> | |
338 | 338 | <td> |
339 | 339 | <a href="admin/rsstemaskml.php" target="_blank" > |
340 | 340 | RSS com a lista de dados disponíveis em kml |
... | ... | @@ -343,7 +343,7 @@ body,td |
343 | 343 | </td> |
344 | 344 | </tr> |
345 | 345 | <tr> |
346 | - <td></td> | |
346 | + <td></td> | |
347 | 347 | <td> |
348 | 348 | <a href="admin/rsstemasogc.php" target="_blank" > |
349 | 349 | RSS com a lista de dados disponíveis em WMS |
... | ... | @@ -352,7 +352,7 @@ body,td |
352 | 352 | </td> |
353 | 353 | </tr> |
354 | 354 | <tr> |
355 | - <td></td> | |
355 | + <td></td> | |
356 | 356 | <td> |
357 | 357 | <a href="admin/rssgrupos.php" target="_blank" >Grupos </a> |
358 | 358 | <a href="admin/rsssubgrupos.php" target="_blank" >Sub-grupos </a> |
... | ... | @@ -364,7 +364,7 @@ body,td |
364 | 364 | <div id=gadgets ></div> |
365 | 365 | <table> |
366 | 366 | <tr> |
367 | - <td></td> | |
367 | + <td></td> | |
368 | 368 | <td> |
369 | 369 | <b>Bilbiotecas:</b> |
370 | 370 | </td> |
... | ... | @@ -401,7 +401,7 @@ http://localhost/i3geo/principal.htm |
401 | 401 | |
402 | 402 | File: principal.htm |
403 | 403 | */ |
404 | -//carrega a lista de gadgets registrados em | |
404 | +//carrega a lista de gadgets registrados em | |
405 | 405 | var ins = "<table><tr><td></td><td><b>Gadgets</b> (ferramentas do i3geo que também podem ser usadas de forma independente):</td></tr>" |
406 | 406 | var obj = g_traducao_ajuda.ferramentas |
407 | 407 | for(var k in obj){ | ... | ... |
temas/teste.map
... | ... | @@ -1,23 +0,0 @@ |
1 | -MAP | |
2 | - | |
3 | - | |
4 | -SYMBOLSET ../symbols/simbolos.sym | |
5 | -FONTSET "../symbols/fontes.txt" | |
6 | -LAYER | |
7 | - NAME "teste" | |
8 | - TYPE POINT | |
9 | - STATUS DEFAULT | |
10 | - CONNECTIONTYPE OGR | |
11 | - CONNECTION "/var/www/i3geo/aplicmap/dados/teste.kml" | |
12 | - DATA "Trovit" | |
13 | - CLASS | |
14 | - NAME "Meus lugares" | |
15 | - STYLE | |
16 | - COLOR 250 0 0 | |
17 | - OUTLINECOLOR 255 255 255 | |
18 | - SYMBOL 'ponto' | |
19 | - SIZE 6 | |
20 | - END | |
21 | - END | |
22 | -END | |
23 | -END |