Commit c67bafb5b1a7496704b2e92735fc0f363696c53b
1 parent
3f4dd431
Exists in
master
v5 - correção nas ferramentas legenda e nptpol na interface OSM
Showing
3 changed files
with
36 additions
and
33 deletions
Show diff stats
ferramentas/legenda/index.js
... | ... | @@ -339,12 +339,12 @@ i3GEOF.legenda = { |
339 | 339 | var ins = '' + |
340 | 340 | '<div id=guiasYUI class="yui-navset" style="top:0px;cursor:pointer;left:0px;">'+ |
341 | 341 | ' <ul class="yui-nav" style="border-width:0pt 0pt 0px;border-color:rgb(240,240,240);border-bottom-color:white;">'+ |
342 | - ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia6" style="text-align:center;left:0px;" ><img class="ticPropriedades2" style="height:14px" title="'+$trad(2,i3GEOF.legenda.dicionario)+'" src="'+i3GEO.configura.locaplic+'/imagens/visual/default/branco.gif"></div></em></a></li>'+ | |
343 | - ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia1" style="text-align:center;left:0px;" >'+$trad(3,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
344 | - ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia2" style="text-align:center;left:0px;" >'+$trad(4,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
345 | - ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia3" style="text-align:center;left:0px;" >'+$trad(5,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
346 | - ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia4" style="text-align:center;left:0px;" >'+$trad(6,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
347 | - ' <li><a href="#ancora"><em><div id="i3GEOlegendaguia5" style="text-align:center;left:0px;" >'+$trad(7,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
342 | + ' <li><a ><em><div id="i3GEOlegendaguia6" style="text-align:center;left:0px;" ><img class="ticPropriedades2" style="height:14px" title="'+$trad(2,i3GEOF.legenda.dicionario)+'" src="'+i3GEO.configura.locaplic+'/imagens/visual/default/branco.gif"></div></em></a></li>'+ | |
343 | + ' <li><a ><em><div id="i3GEOlegendaguia1" style="text-align:center;left:0px;" >'+$trad(3,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
344 | + ' <li><a ><em><div id="i3GEOlegendaguia2" style="text-align:center;left:0px;" >'+$trad(4,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
345 | + ' <li><a ><em><div id="i3GEOlegendaguia3" style="text-align:center;left:0px;" >'+$trad(5,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
346 | + ' <li><a ><em><div id="i3GEOlegendaguia4" style="text-align:center;left:0px;" >'+$trad(6,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
347 | + ' <li><a ><em><div id="i3GEOlegendaguia5" style="text-align:center;left:0px;" >'+$trad(7,i3GEOF.legenda.dicionario)+'</div></em></a></li>'+ | |
348 | 348 | ' </ul>'+ |
349 | 349 | '</div><br>'+ |
350 | 350 | '<div id=i3GEOlegendaguia6obj style="width:99%;text-align:left;">'+ |
... | ... | @@ -654,7 +654,8 @@ i3GEOF.legenda = { |
654 | 654 | i3GEOF.legenda.mostralegenda(); |
655 | 655 | i3GEOF.legenda.aposAlterarLegenda(); |
656 | 656 | }; |
657 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=aplicacoresrgb&ext="+i3GEO.parametros.mapexten+"&tema="+i3GEOF.legenda.tema; | |
657 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); | |
658 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=aplicacoresrgb&ext="+ext+"&tema="+i3GEOF.legenda.tema; | |
658 | 659 | cp = new cpaint(); |
659 | 660 | cp.set_transfer_mode('POST'); |
660 | 661 | cp.set_response_type("JSON"); |
... | ... | @@ -758,7 +759,8 @@ i3GEOF.legenda = { |
758 | 759 | i3GEOF.legenda.aposAlterarLegenda(); |
759 | 760 | i3GEOF.legenda.aguarde.visibility = "hidden"; |
760 | 761 | }; |
761 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=alteraclasses&ext="+i3GEO.parametros.mapexten; | |
762 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); | |
763 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=alteraclasses&ext="+ext; | |
762 | 764 | cp = new cpaint(); |
763 | 765 | cp.set_transfer_mode('POST'); |
764 | 766 | cp.set_response_type("JSON"); |
... | ... | @@ -820,7 +822,8 @@ i3GEOF.legenda = { |
820 | 822 | adicionaClasse: function(){ |
821 | 823 | if(i3GEOF.legenda.aguarde.visibility === "visible") |
822 | 824 | {return;} |
823 | - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaclasse"+"&tema="+i3GEOF.legenda.tema+"&ext="+i3GEO.parametros.mapexten, | |
825 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); | |
826 | + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaclasse"+"&tema="+i3GEOF.legenda.tema+"&ext="+ext, | |
824 | 827 | cp = new cpaint(); |
825 | 828 | cp.set_response_type("JSON"); |
826 | 829 | cp.call(p,"alteraclasse",i3GEOF.legenda.mostralegenda); |
... | ... | @@ -842,7 +845,8 @@ i3GEOF.legenda = { |
842 | 845 | }; |
843 | 846 | if(i3GEOF.legenda.aguarde.visibility === "visible") |
844 | 847 | {return;} |
845 | - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaopacidade"+"&tema="+i3GEOF.legenda.tema+"&ext="+i3GEO.parametros.mapexten, | |
848 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); | |
849 | + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&opcao=adicionaopacidade"+"&tema="+i3GEOF.legenda.tema+"&ext="+ext, | |
846 | 850 | cp = new cpaint(); |
847 | 851 | cp.set_response_type("JSON"); |
848 | 852 | cp.call(p,"alteraclasse",retorna); |
... | ... | @@ -1018,7 +1022,8 @@ i3GEOF.legenda = { |
1018 | 1022 | if(i3GEOF.legenda.aguarde.visibility === "visible") |
1019 | 1023 | {return;} |
1020 | 1024 | i3GEOF.legenda.aguarde.visibility = "visible"; |
1021 | - var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&opcao=simbolounico&ext="+i3GEO.parametros.mapexten, | |
1025 | + var ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); | |
1026 | + var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&opcao=simbolounico&ext="+ext, | |
1022 | 1027 | cp = new cpaint(), |
1023 | 1028 | fim = function(){ |
1024 | 1029 | i3GEOF.legenda.aposAlterarLegenda(); |
... | ... | @@ -1050,11 +1055,12 @@ i3GEOF.legenda = { |
1050 | 1055 | i3GEOF.legenda.aguarde.visibility = "hidden"; |
1051 | 1056 | }; |
1052 | 1057 | if($i("i3GEOFlegendaaplicaextent").checked === true){ |
1053 | - p += "&ext="+i3GEO.parametros.mapexten; | |
1058 | + p += "&ext="+i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten); | |
1054 | 1059 | } |
1055 | 1060 | else{ |
1056 | - p += "&ext="+i3GEO.parametros.extentTotal; | |
1061 | + p += "&ext="+i3GEO.util.extOSM2Geo(i3GEO.parametros.extentTotal); | |
1057 | 1062 | } |
1063 | + | |
1058 | 1064 | if (item == "") |
1059 | 1065 | {i3GEO.janela.tempoMsg($trad(81,i3GEOF.legenda.dicionario));return;} |
1060 | 1066 | i3GEOF.legenda.aguarde.visibility = "visible"; |
... | ... | @@ -1079,7 +1085,8 @@ i3GEOF.legenda = { |
1079 | 1085 | {return;} |
1080 | 1086 | var item = $i("i3GEOlegendaSelItem").value, |
1081 | 1087 | nclasses = $i("i3GEOlegendanclasses").value, |
1082 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=intervalosiguais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, | |
1088 | + ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), | |
1089 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=intervalosiguais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+ext, | |
1083 | 1090 | cp = new cpaint(), |
1084 | 1091 | fim = function(){ |
1085 | 1092 | i3GEOF.legenda.aposAlterarLegenda(); |
... | ... | @@ -1107,7 +1114,8 @@ i3GEOF.legenda = { |
1107 | 1114 | if(i3GEOF.legenda.aguarde.visibility === "visible") |
1108 | 1115 | {return;} |
1109 | 1116 | var item = $i("i3GEOlegendaSelItem").value, |
1110 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quartis&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten+"&tipoLegenda="+$i("estiloClassesQuartis").value, | |
1117 | + ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), | |
1118 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quartis&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+ext+"&tipoLegenda="+$i("estiloClassesQuartis").value, | |
1111 | 1119 | cp = new cpaint(); |
1112 | 1120 | fim = function(){ |
1113 | 1121 | i3GEOF.legenda.aposAlterarLegenda(); |
... | ... | @@ -1136,7 +1144,8 @@ i3GEOF.legenda = { |
1136 | 1144 | {return;} |
1137 | 1145 | var item = $i("i3GEOlegendaSelItem").value, |
1138 | 1146 | nclasses = $i("i3GEOlegendanclasses").value, |
1139 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quantil&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, | |
1147 | + ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), | |
1148 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quantil&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+ext, | |
1140 | 1149 | cp = new cpaint(), |
1141 | 1150 | fim = function(){ |
1142 | 1151 | i3GEOF.legenda.aposAlterarLegenda(); |
... | ... | @@ -1165,7 +1174,8 @@ i3GEOF.legenda = { |
1165 | 1174 | {return;} |
1166 | 1175 | var item = $i("i3GEOlegendaSelItem").value, |
1167 | 1176 | nclasses = $i("i3GEOlegendanclasses").value, |
1168 | - p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quebrasnaturais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+i3GEO.parametros.mapexten, | |
1177 | + ext = i3GEO.util.extOSM2Geo(i3GEO.parametros.mapexten), | |
1178 | + p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=alteraclasse&nclasses="+nclasses+"&tema="+i3GEOF.legenda.tema+"&item="+item+"&opcao=quebrasnaturais&ignorar="+$i("i3GEOlegendaignorar").value+"&ext="+ext, | |
1169 | 1179 | cp = new cpaint(), |
1170 | 1180 | fim = function(){ |
1171 | 1181 | i3GEOF.legenda.aposAlterarLegenda(); | ... | ... |
ferramentas/nptpol/dicionario.js
... | ... | @@ -3,49 +3,41 @@ i3GEOF.nptpol.dicionario = { |
3 | 3 | 1: [{ |
4 | 4 | pt:"Ponto em polígono é uma operação que resulta em um novo tema contendo o cruzamento entre um tema com pontos e outro com polígonos considerando-se a extensão geográfica do mapa atual.", |
5 | 5 | en:"", |
6 | -es:"", | |
7 | -it:"" | |
6 | +es:"" | |
8 | 7 | }], |
9 | 8 | 2: [{ |
10 | 9 | pt:"O resultado será um novo tema do tipo poligonal, sendo que a tabela de atributos conterá o total de pontos que se sobrepõem ao polígono.", |
11 | 10 | en:"", |
12 | -es:"", | |
13 | -it:"" | |
11 | +es:"" | |
14 | 12 | }], |
15 | 13 | 3: [{ |
16 | 14 | pt:"Para gerar o cruzamento é necessário que no mapa exista pelo menos um tema poligonal e um com os pontos.", |
17 | 15 | en:"", |
18 | -es:"", | |
19 | -it:"" | |
16 | +es:"" | |
20 | 17 | }], |
21 | 18 | 4: [{ |
22 | 19 | pt:"Tema contendo os pontos", |
23 | 20 | en:"", |
24 | -es:"", | |
25 | -it:"" | |
21 | +es:"" | |
26 | 22 | }], |
27 | 23 | 5: [{ |
28 | 24 | pt:"Tema contendo os polígonos", |
29 | 25 | en:"", |
30 | -es:"", | |
31 | -it:"" | |
26 | +es:"" | |
32 | 27 | }], |
33 | 28 | 6: [{ |
34 | 29 | pt:"O tema com o cruzamento será adicionado ao mapa atual.", |
35 | 30 | en:"", |
36 | -es:"", | |
37 | -it:"" | |
31 | +es:"" | |
38 | 32 | }], |
39 | 33 | 7: [{ |
40 | 34 | pt:"Calcular", |
41 | 35 | en:"", |
42 | -es:"", | |
43 | -it:"" | |
36 | +es:"" | |
44 | 37 | }], |
45 | 38 | 8: [{ |
46 | 39 | pt:"(Opcional) Item da tabela que será somado", |
47 | 40 | en:"", |
48 | -es:"", | |
49 | -it:"" | |
41 | +es:"" | |
50 | 42 | }] |
51 | 43 | }; |
52 | 44 | \ No newline at end of file | ... | ... |
ferramentas/nptpol/index.js
... | ... | @@ -204,6 +204,7 @@ i3GEOF.nptpol = { |
204 | 204 | {ext = i3GEO.Interface.googlemaps.bbox();} |
205 | 205 | else |
206 | 206 | {ext = i3GEO.parametros.mapexten;} |
207 | + ext = i3GEO.util.extOSM2Geo(ext); | |
207 | 208 | p = i3GEO.configura.locaplic+"/ferramentas/nptpol/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=nptPol&temaPt="+$i("i3GEOnptpolPontos").value+"&temaPo="+$i("i3GEOnptpolPoligonos").value+"&ext="+ext; |
208 | 209 | p += "&somaritem="+somaritem; |
209 | 210 | cp = new cpaint(); | ... | ... |