diff --git a/admin/admin (cópia).db b/admin/admin (cópia).db new file mode 100755 index 0000000..b4ab1b3 Binary files /dev/null and b/admin/admin (cópia).db differ diff --git a/admin/admin.db b/admin/admin.db old mode 100755 new mode 100644 index b4ab1b3..7eb1092 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/interface/openlayersdebug.htm b/interface/openlayersdebug.htm index bd98730..82e399c 100755 --- a/interface/openlayersdebug.htm +++ b/interface/openlayersdebug.htm @@ -52,10 +52,6 @@ -
- - -
@@ -67,7 +63,8 @@
-
+
+
@@ -99,6 +96,11 @@
X
+
diff --git a/js/compactados/maparef_compacto.js b/js/compactados/maparef_compacto.js index b2561f8..f61ad7f 100755 --- a/js/compactados/maparef_compacto.js +++ b/js/compactados/maparef_compacto.js @@ -1 +1 @@ -if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.maparef={fatorZoomDinamico:-3,SELETORTIPO:true,VALORSELETORTIPO:"mapa",PERMITEFECHAR:true,PERMITEDESLOCAR:true,TRANSICAOSUAVE:false,OPACIDADE:65,TOP:4,RIGHT:70,W:function(){var w=parseInt(i3GEO.parametros.w,10)/5;if(w<150){w=150}return parseInt(w,10)},H:function(){var h=parseInt(i3GEO.parametros.h,10)/5;if(i3GEO.maparef.W()<=150){return 150}else{return parseInt(h,10)}},inicia:function(){var r,pos,novoel,ins,temp,moveX,moveY,escondeRef,janela;if($i("i3geo_winRef")){janela=YAHOO.i3GEO.janela.manager.find("i3geo_winRef");janela.show();janela.bringToTop();return}if(navm){i3GEO.maparef.TRANSICAOSUAVE=false}if(!$i("i3geo_winRef")){novoel=document.createElement("div");novoel.id="i3geo_winRef";novoel.style.display="none";novoel.style.borderColor="gray";ins="";if(this.PERMITEDESLOCAR){ins+='
';ins+=' ";if(this.SELETORTIPO){ins+=""}ins+="
"}ins+='
';ins+='';ins+='
';novoel.innerHTML=ins;if(i3GEO.maparef.TRANSICAOSUAVE){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100);novoel.onmouseover=function(){$(novoel).css("opacity",1)};novoel.onmouseout=function(){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100)}}document.body.appendChild(novoel);if($i("refDinamico")){$i("refDinamico").value=i3GEO.maparef.VALORSELETORTIPO}}if($i("i3geo_winRef").style.display!=="block"){$i("i3geo_winRef").style.display="block";this.PERMITEDESLOCAR?temp="shadow":temp="none";janela=new YAHOO.widget.Panel("i3geo_winRef",{height:i3GEO.maparef.H()+27+"px",width:i3GEO.maparef.W()+6+"px",fixedcenter:false,constraintoviewport:false,underlay:temp,close:i3GEO.maparef.PERMITEFECHAR,visible:true,draggable:i3GEO.maparef.PERMITEDESLOCAR,modal:false,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);if(i3GEO.maparef.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.render();janela.show();try{janela.header.style.height="20px"}catch(e){};r=$i("i3geo_winRef_c");if(r){r.style.position="absolute"}pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));$i("mapaReferencia").style.height=i3GEO.maparef.H()+"px";$i("i3geo_winRef").style.border="0px solid gray";moveX=pos[0]+i3GEO.parametros.w-i3GEO.maparef.W()+3-i3GEO.maparef.RIGHT;moveY=pos[1]+i3GEO.maparef.TOP;if(i3GEO.Interface.ATUAL==="googlemaps"){moveY+=30}janela.moveTo(moveX,moveY);escondeRef=function(){$i("imagemReferencia").src="";janela.destroy();i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","none")};$(janela.close).click(escondeRef);i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block");if($i("localizarxygeoProjxg")){var temp=function(){i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx,objposicaocursor.dmsy,"localizarxygeoProj")};YAHOO.util.Event.addListener($i("imagemReferencia"),"mousemove",temp)}}i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"]);this.atualiza(true);$i("i3geo_winRef_h").className="hd2";if(navm){$i("i3geo_winRef_h").style.width=i3GEO.maparef.W()+6+"px"}},atualiza:function(forca){if(arguments.length===0){forca=false}var tiporef,temp;temp=$i("refDinamico")?tiporef=$i("refDinamico").value:tiporef="fixo";if($i("mapaReferencia")){temp=$i("maparefmaismenosZoom");if(tiporef==="dinamico"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}if(tiporef==="mapa"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}}else{i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"])}},processaImagem:function(retorno){var m,box,temp,tiporef="fixo";if((retorno.data!=="erro")&&(retorno.data!==undefined)){eval(retorno.data);i3GEO.parametros.celularef=g_celularef;i3GEO.parametros.extentref=extentref;temp=$i("imagemReferencia");if(temp){m=new Image();m.src=refimagem;temp.src=m.src}temp=$i("refDinamico");if(temp){tiporef=temp.value}if(tiporef!=="fixo"){box=$i("boxref");if(box){box.style.display="none"}return}i3GEO.maparef.atualizaBox()}},atualizaBox:function(){var box=i3GEO.maparef.criaBox(),w;i3GEO.calculo.ext2rect("boxref",i3GEO.parametros.extentref,i3GEO.parametros.mapexten,i3GEO.parametros.celularef,$i("mapaReferencia"));w=parseInt(box.style.width,10);if(w>120){box.style.display="none";return}box.style.display="block";box.style.top=parseInt(box.style.top,10)+4+"px";box.style.left=parseInt(box.style.left,10)+4+"px";if(w<3){box.style.width="3px";box.style.height="3px"}},criaBox:function(){var box=$i("boxref");if(!box){novoel=document.createElement("div");novoel.id="boxref";novoel.style.zIndex=10;novoel.style.position='absolute';novoel.style.cursor="move";novoel.style.backgroundColor="RGB(120,220,220)";novoel.style.borderWidth="3px";if(navm){novoel.style.filter='alpha(opacity=40)'}else{novoel.style.opacity=0.4}$i("mapaReferencia").appendChild(novoel);boxrefdd=new YAHOO.util.DD("boxref");novoel.onmouseup=function(){var rect,telaminx,telamaxx,telaminy,m,x,ext;rect=$i("boxref");telaminx=parseInt(rect.style.left,10);telamaxy=parseInt(rect.style.top,10);telamaxx=telaminx+parseInt(rect.style.width,10);telaminy=telamaxy+parseInt(rect.style.height,10);m=i3GEO.calculo.tela2dd(telaminx,telaminy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");x=i3GEO.calculo.tela2dd(telamaxx,telamaxy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");ext=m[0]+" "+m[1]+" "+x[0]+" "+x[1];i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,"",ext)};return novoel}else{return box}},click:function(){if(i3GEO.Interface.ATUAL==="openlayers"||i3GEO.Interface.ATUAL==="googlemaps"){i3GEO.Interface[i3GEO.Interface.ATUAL].pan2ponto(objposicaocursor.ddx,objposicaocursor.ddy)}}}; \ No newline at end of file +if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.maparef={fatorZoomDinamico:-3,SELETORTIPO:true,VALORSELETORTIPO:"mapa",PERMITEFECHAR:true,PERMITEDESLOCAR:true,TRANSICAOSUAVE:false,OPACIDADE:65,TOP:4,RIGHT:70,W:function(){var w=parseInt(i3GEO.parametros.w,10)/5;if(w<150){w=150}return parseInt(w,10)},H:function(){var h=parseInt(i3GEO.parametros.h,10)/5;if(i3GEO.maparef.W()<=150){return 150}else{return parseInt(h,10)}},inicia:function(){var r,pos,novoel,ins,temp,moveX,moveY,escondeRef,janela;if($i("i3geo_winRef")){janela=YAHOO.i3GEO.janela.manager.find("i3geo_winRef");janela.show();janela.bringToTop();return}if(navm){i3GEO.maparef.TRANSICAOSUAVE=false}if(!$i("i3geo_winRef")){novoel=document.createElement("div");novoel.id="i3geo_winRef";novoel.style.display="none";novoel.style.borderColor="gray";ins="";if(this.PERMITEDESLOCAR){ins+='
';ins+=' ";if(this.SELETORTIPO){ins+=""}ins+="
"}ins+='
';ins+='';ins+='
';novoel.innerHTML=ins;if(i3GEO.maparef.TRANSICAOSUAVE){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100);novoel.onmouseover=function(){$(novoel).css("opacity",1)};novoel.onmouseout=function(){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100)}}document.body.appendChild(novoel);if($i("refDinamico")){$i("refDinamico").value=i3GEO.maparef.VALORSELETORTIPO}}if($i("i3geo_winRef").style.display!=="block"){$i("i3geo_winRef").style.display="block";this.PERMITEDESLOCAR?temp="shadow":temp="none";janela=new YAHOO.widget.Panel("i3geo_winRef",{height:i3GEO.maparef.H()+27+"px",width:i3GEO.maparef.W()+6+"px",fixedcenter:false,constraintoviewport:false,underlay:temp,close:i3GEO.maparef.PERMITEFECHAR,visible:true,draggable:i3GEO.maparef.PERMITEDESLOCAR,modal:false,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);if(i3GEO.maparef.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.render();janela.show();try{janela.header.style.height="20px"}catch(e){};r=$i("i3geo_winRef_c");if(r){r.style.position="absolute"}pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));$i("mapaReferencia").style.height=i3GEO.maparef.H()+"px";$i("i3geo_winRef").style.border="0px solid gray";moveX=pos[0]+i3GEO.parametros.w-i3GEO.maparef.W()+3-i3GEO.maparef.RIGHT;moveY=pos[1]+i3GEO.maparef.TOP;if(i3GEO.Interface.ATUAL==="googlemaps"){moveY+=30}janela.moveTo(moveX,moveY);escondeRef=function(){$i("imagemReferencia").src="";janela.destroy();i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","none")};$(janela.close).click(escondeRef);i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block");if($i("localizarxygeoProjxg")){var temp=function(){i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx,objposicaocursor.dmsy,"localizarxygeoProj")};$("#imagemReferencia").mousemove(temp)}}i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"]);this.atualiza(true);$i("i3geo_winRef_h").className="hd2";if(navm){$i("i3geo_winRef_h").style.width=i3GEO.maparef.W()+6+"px"}},atualiza:function(forca){if(arguments.length===0){forca=false}var tiporef,temp;temp=$i("refDinamico")?tiporef=$i("refDinamico").value:tiporef="fixo";if($i("mapaReferencia")){temp=$i("maparefmaismenosZoom");if(tiporef==="dinamico"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}if(tiporef==="mapa"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}}else{i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"])}},processaImagem:function(retorno){var m,box,temp,tiporef="fixo";if((retorno.data!=="erro")&&(retorno.data!==undefined)){eval(retorno.data);i3GEO.parametros.celularef=g_celularef;i3GEO.parametros.extentref=extentref;temp=$i("imagemReferencia");if(temp){m=new Image();m.src=refimagem;temp.src=m.src}temp=$i("refDinamico");if(temp){tiporef=temp.value}if(tiporef!=="fixo"){box=$i("boxref");if(box){box.style.display="none"}return}i3GEO.maparef.atualizaBox()}},atualizaBox:function(){var box=i3GEO.maparef.criaBox(),w;i3GEO.calculo.ext2rect("boxref",i3GEO.parametros.extentref,i3GEO.parametros.mapexten,i3GEO.parametros.celularef,$i("mapaReferencia"));w=parseInt(box.style.width,10);if(w>120){box.style.display="none";return}box.style.display="block";box.style.top=parseInt(box.style.top,10)+4+"px";box.style.left=parseInt(box.style.left,10)+4+"px";if(w<3){box.style.width="3px";box.style.height="3px"}},criaBox:function(){var box=$i("boxref");if(!box){novoel=document.createElement("div");novoel.id="boxref";novoel.style.zIndex=10;novoel.style.position='absolute';novoel.style.cursor="move";novoel.style.backgroundColor="RGB(120,220,220)";novoel.style.borderWidth="3px";if(navm){novoel.style.filter='alpha(opacity=40)'}else{novoel.style.opacity=0.4}$i("mapaReferencia").appendChild(novoel);novoel.onmouseup=function(){var rect,telaminx,telamaxx,telaminy,m,x,ext;rect=$i("boxref");telaminx=parseInt(rect.style.left,10);telamaxy=parseInt(rect.style.top,10);telamaxx=telaminx+parseInt(rect.style.width,10);telaminy=telamaxy+parseInt(rect.style.height,10);m=i3GEO.calculo.tela2dd(telaminx,telaminy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");x=i3GEO.calculo.tela2dd(telamaxx,telamaxy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");ext=m[0]+" "+m[1]+" "+x[0]+" "+x[1];i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,"",ext)};return novoel}else{return box}},click:function(){if(i3GEO.Interface.ATUAL==="openlayers"||i3GEO.Interface.ATUAL==="googlemaps"){i3GEO.Interface[i3GEO.Interface.ATUAL].pan2ponto(objposicaocursor.ddx,objposicaocursor.ddy)}}}; \ No newline at end of file diff --git a/js/compactados/util_compacto.js b/js/compactados/util_compacto.js index bec4bc3..1ce0cd6 100755 --- a/js/compactados/util_compacto.js +++ b/js/compactados/util_compacto.js @@ -1 +1 @@ -if(typeof(i3GEO)==='undefined'){var i3GEO={}}var navm=false;var navn=false;var chro=navigator.userAgent.toLowerCase().indexOf('chrome')>-1;var opera=navigator.userAgent.toLowerCase().indexOf('opera')>-1;if(navigator.appName.substring(0,1)==='N'){navn=true}if(navigator.appName.substring(0,1)==='M'){navm=true}if(opera===true){navn=true}var g_operacao="";var g_tipoacao="zoomli";var $i=function(id){if(!id||id===""){return false}return document.getElementById(id)};Array.prototype.remove=function(s){try{var n=this.length,i;for(i=0;i"+titulo+"";d={html:titulo};tempNode=new YAHOO.widget.HTMLNode(d,root,true,true);tempNode.enableHighlight=true;criaNo=function(obj,noDestino){var trad,i,j,linha,conteudo,temaNode,c=obj.propriedades.length;for(i=0,j=c;i"+trad+""}else{conteudo=linha.text}d={html:conteudo};temaNode=new YAHOO.widget.HTMLNode(d,noDestino,false,true);temaNode.enableHighlight=false;if(obj.propriedades[i].propriedades){criaNo(obj.propriedades[i],temaNode)}}};criaNo(obj,tempNode);arvore.collapseAll();arvore.draw();return arvore},removeAcentos:function(str){var defaultDiacriticsRemovalMap=[{'base':'A','letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{'base':'C','letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{'base':'E','letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{'base':'I','letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{'base':'O','letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{'base':'U','letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{'base':'a','letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{'base':'c','letters':/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{'base':'e','letters':/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{'base':'i','letters':/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{'base':'o','letters':/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{'base':'u','letters':/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g}];for(var i=0;i';document.body.appendChild(novoel);novoel.onmouseover=function(){novoel.style.display='none'};novoel.onmouseout=function(){novoel.style.display='block'};i3GEO.util.BOXES.push(id)}else{$i(id).style.display="block"}},escondeBox:function(){var l,i;l=i3GEO.util.BOXES.length;for(i=0;i"},$inputTextMudaCor:function(obj){var n=obj.value.split(" ");obj.style.color="rgb("+n[0]+","+n[1]+","+n[2]+")"},$top:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelTop){document.getElementById(id).style.pixelTop=valor}else{document.getElementById(id).style.top=valor+"px"}}},$left:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelLeft){document.getElementById(id).style.pixelLeft=valor}else{document.getElementById(id).style.left=valor+"px"}}},adicionaSHP:function(path){var temp=path.split(".");if((temp[1]==="SHP")||(temp[1]==="shp")){i3GEO.php.adicionaTemaSHP(i3GEO.atualiza,path)}else{i3GEO.php.adicionaTemaIMG(i3GEO.atualiza,path)}},abreCor:function(janelaid,elemento,tipo){if(!i3GEO.configura){i3GEO.configura={locaplic:"../"}}if(arguments.length===2){tipo="rgb"}var janela,ins,novoel,wdocaiframe,wsrc=i3GEO.configura.locaplic+"/ferramentas/colorpicker/index.htm?doc="+janelaid+"&elemento="+elemento+"&tipo="+tipo,texto="Cor",id="i3geo_janelaCor",classe="hd";if($i(id)){YAHOO.i3GEO.janela.manager.find(id).show();return}ins='
';ins+="";ins+=texto;ins+='
';if(wsrc!==""){ins+=''}ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCor";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCori");if(wdocaiframe){wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="230px";wdocaiframe.style.width="325px";wdocaiframe.style.border="0px solid white"}janela=new YAHOO.widget.Panel(id,{height:"290px",modal:false,width:"350px",fixedcenter:true,constraintoviewport:false,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe},aparece:function(id,tempo,intervalo){var n,obj,opacidade,fadei=0,tempoFadei=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="block";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=0;if(navm){obj.style.filter='alpha(opacity=0)'}else{obj.style.opacity=0}obj.style.display="block";fadei=function(){opacidade+=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade<100){tempoFadei=setTimeout(fadei,tempo)}else{if(tempoFadei){clearTimeout(tempoFadei)}if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}};tempoFadei=setTimeout(fadei,tempo)},desaparece:function(id,tempo,intervalo,removeobj){var n,obj,opacidade,fade=0,p,tempoFade=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="none";if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}return}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=100;if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}obj.style.display="block";fade=function(){opacidade-=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade>0){tempoFade=setTimeout(fade,tempo)}else{if(tempoFade){clearTimeout(tempoFade)}obj.style.display="none";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}}};tempoFade=setTimeout(fade,tempo)},wkt2ext:function(wkt,tipo){var re,x,y,w,xMin,xMax,yMin,yMax,temp;tipo=tipo.toLowerCase();ext=false;if(tipo==="polygon"){try{re=new RegExp("POLYGON","g");wkt=wkt.replace(re,"");wkt=wkt.split("(")[2].split(")")[0];wkt=wkt.split(",");x=[];y=[];for(w=0;w';if(onde!==""){$i(onde).innerHTML=ins}else{return(ins)}},randomRGB:function(){var v=Math.random(),r=parseInt(255*v,10),g;v=Math.random();g=parseInt(255*v,10);v=Math.random();b=parseInt(255*v,10);return(r+","+g+","+b)},rgb2hex:function(str){var re=new RegExp(" ","g"),rgb=str.replace(re,',');return YAHOO.util.Dom.Color.toHex("rgb("+rgb+")")},comboTemas:function(id,funcao,onde,nome,multiplo,tipoCombo,estilo,yui,incluiVazio){if(onde&&onde!==""){i3GEO.util.defineValor(onde,"innerHTML","buscando temas...")}if(!nome){nome=""}if(!multiplo){multiplo=false}if(!estilo||estilo==""){estilo="font-size: 12px;width: 95%;"}if(!yui){yui=false}if(!incluiVazio){incluiVazio=false}var monta,temp,temp1,temp2;monta=function(retorno){var i,comboTemas='',n,nome="",tema;if(yui===true){comboTemas='';id=id+"select";nome=id}if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){if(multiplo){comboTemas+=""}if(yui===false||incluiVazio===true){comboTemas+=""}for(i=0;i"+nome+""}}comboTemas+="";temp={dados:comboTemas,tipo:"dados"}}else{if(tipoCombo==="poligonosSelecionados"||tipoCombo==="selecionados"||tipoCombo==="pontosSelecionados"){temp={dados:'
Nenhum tema encontrado. Selecionar...
',tipo:"mensagem"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")};if(tipoCombo==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="ligadosComTabela"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"menor",temp);temp2=i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"igual",temp);monta(temp1.concat(temp2))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="locais"){i3GEO.php.listaTemasEditaveis(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}if(tipoCombo==="editavel"){temp=i3GEO.arvoreDeCamadas.filtraCamadas("editavel","SIM","igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(temp)}if(tipoCombo==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="pontosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="pontos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naoraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",4,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",5,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",6,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",7,"diferente",temp);monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"diferente",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naolinearSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",1,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="linhaDoTempo"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("linhadotempo","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo===""){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type","","diferente",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}},checkCombo:function(id,nomes,valores,estilo,funcaoclick,ids,idschecked){var temp,i,combo="",n=valores.length;if(n>0){combo="

";for(i=0;i"}else{combo+=""}}combo+="
"+nomes[i]+"
"+nomes[i]+"
"}return combo},valoresCheckCombo:function(id){var el=$i(id),res=[],n,i;if(el){el=el.getElementsByTagName("input");n=el.length;for(i=0;i2){$i(onde).innerHTML="buscando temas..."}if(arguments.length===3){nome=""}var monta,temp,temp1,n,i;monta=function(retorno){try{var i,comboTemas,n,nome;if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){comboTemas="";for(i=0;i";comboTemas+=""}comboTemas+="
 
";temp={dados:comboTemas,tipo:"dados"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")}catch(e){}};if(tipoLista==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="polraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);n=temp1.length;for(i=0;i3&&$i(onde)){$i(onde).innerHTML="buscando itens..."}if(arguments.length!==5){nome=""}var monta=function(retorno){var ins,temp,i,nm;if(retorno.data!==undefined){ins=[];ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'

Ocorreu um erro
',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaItensTema(monta,tema)},comboValoresItem:function(id,tema,itemTema,funcao,onde){if(arguments.length===5){$i(onde).innerHTML="buscando valores..."}var monta=function(retorno){var ins=[],i,pares,j,valoresSort=[];if(retorno.data!==undefined){ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaValoresItensTema(monta,tema,itemTema)},comboFontes:function(id,onde){$i(onde).innerHTML="buscando fontes...";var monta=function(retorno){var ins="",temp,i,dados;if(retorno.data!==undefined){ins+=""}$i(onde).innerHTML=ins};i3GEO.php.listaFontesTexto(monta)},comboSimNao:function(id,selecionado){var combo="";return(combo)},checkItensEditaveis:function(tema,funcao,onde,size,prefixo,ordenacao){if(!ordenacao||ordenacao==""){ordenacao="nao"}if(onde!==""){$i(onde).innerHTML=""+$trad("x65")+""}var monta=function(retorno){var ins=[],i,temp,n;if(retorno.data!==undefined){if(ordenacao==="sim"){ins.push("")}else{ins.push("
"+$trad("x64")+"Ordem
")}n=retorno.data.valores.length;for(i=0;i");ins.push("");if(ordenacao==="sim"){ins.push("")}else{ins.push("")}ins.push("")}ins.push("
"+$trad("x64")+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
'+$trad("x66")+'
',tipo:"erro"}}funcao.call(this,temp)};i3GEO.php.listaItensTema(monta,tema)},radioEpsg:function(funcao,onde,prefixo,marcado){var c;if(arguments.length===2){$i(onde).innerHTML="buscando..."}c="checked";if(marcado&&marcado==="nao"){c=""}var monta=function(retorno){var ins=[],i,n,temp;if(retorno.data!==undefined){ins.push("");n=retorno.data.length;for(i=0;i");c="";ins.push("")}ins.push("
"+retorno.data[i].nome+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro
',tipo:"erro"}}funcao(temp)};i3GEO.php.listaEpsg(monta)},comboEpsg:function(idCombo,onde,funcaoOnChange,valorDefault){onde=$i(onde);onde.innerHTML="buscando...";var monta=function(retorno){var ins=[],i,n;if(retorno.data!==undefined){n=retorno.data.length;ins.push("");ins=ins.join('');onde.innerHTML=ins;$i(idCombo).value=valorDefault}else{onde.innerHTML='
Ocorreu um erro
'}};i3GEO.php.listaEpsg(monta)},proximoAnterior:function(anterior,proxima,texto,idatual,container,mantem,onde){var temp=$i(idatual),botoes="",ndiv=document.createElement("div"),nids,i;if(!mantem){mantem=false}if(temp&&mantem==false){$i(container).removeChild(temp)}$i(container).style.backgroundColor="white";botoes="";if(anterior!==""){botoes+=""}if(proxima!==""){botoes+=""}botoes+="
";var ativaBotoes=function(anterior,proxima,idatual){var i;new YAHOO.widget.Button(idatual+"anterior_",{onclick:{fn:function(){eval(anterior+"()")},lazyloadmenu:true}});new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn:function(){eval(proxima+"()")},lazyloadmenu:true}});i=$i(idatual+"proxima_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_avanca.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}i=$i(idatual+"anterior_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_volta.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}};if(onde){$i(onde).innerHTML=botoes}else{texto=texto+"

"+botoes}if(!document.getElementById(idatual)){ndiv.id=idatual;ndiv.innerHTML=texto;$i(container).appendChild(ndiv)}ativaBotoes(anterior,proxima,idatual);temp=$i(container).getElementsByTagName("div");nids=temp.length;for(i=0;i=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}box1=box1i;box2=box2i;coordx=box1[0]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}return false},abreColourRamp:function(janelaid,elemento,ncores,temaSel,displayComboTemas){var janela,ins,novoel,wdocaiframe,temp,fix=false,wsrc=i3GEO.configura.locaplic+"/ferramentas/colourramp/index.php?ncores="+ncores+"&doc="+janelaid+"&elemento="+elemento+"&locaplic="+i3GEO.configura.locaplic,nx="",texto="",id="i3geo_janelaCorRamp",classe="hd";if(!temaSel){temaSel=""}if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}ins='
';ins+="";if(i3GEO&&i3GEO.arvoreDeCamadas){ins+="
------
"}ins+="   "+texto;ins+='
';ins+='';ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCorRamp";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCorRampi");wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="380px";wdocaiframe.style.width="100%";wdocaiframe.style.border="0px solid white";if(nx===""||nx==="center"){fix=true}janela=new YAHOO.widget.Panel(id,{height:"430px",modal:false,width:"280px",fixedcenter:fix,constraintoviewport:true,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe;if($i("i3geo_janelaCorRampComboCabeca")){temp=function(){var p,tema=$i("i3geo_janelaCorRampComboCabecaSel").value,funcao=function(retorno){parent.frames["i3geo_janelaCorRampi"].document.getElementById("ncores").value=retorno.data.length};if(tema!==""){i3GEO.mapa.ativaTema(tema);p=i3GEO.configura.locaplic+"/ferramentas/legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=editalegenda&opcao=edita&tema="+tema;i3GEO.util.ajaxGet(p,funcao);cp=new cpaint()}};i3GEO.janela.comboCabecalhoTemas("i3geo_janelaCorRampComboCabeca","i3geo_janelaCorRampComboCabecaSel","none","ligados",temp,temaSel)}},localizai3GEO:function(){var scriptLocation="",scripts=document.getElementsByTagName('script'),i=0,index,ns=scripts.length,src;for(i=0;i-1)&&(index+"/js/i3geo.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geo.js".length);break}index=src.lastIndexOf("/js/i3geonaocompacto.js");if((index>-1)&&(index+"/js/i3geonaocompacto.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geonaocompacto.js".length);break}}}if(i3GEO.configura){i3GEO.configura.locaplic=scriptLocation}return scriptLocation},removeChild:function(id,el){var j=$i(id);if(j){if(!el){el=j.parentNode}el.removeChild(j)}},defineValor:function(id,prop,valor){var o=$i(id);if(o){try{$i(id)[prop]=valor}catch(e){}}},in_array:function(x,matriz){var txt=" "+matriz.join(" ")+" ";var er=new RegExp(" "+x+" ","gim");return((txt.match(er))?true:false)},timedProcessArray:function(items,process,callback){var todo=items.concat();setTimeout(function(){var start=+new Date();do{process(todo.shift())}while(todo.length>0&&(+new date()-start<50));if(todo.length>0){setTimeout(arguments.callee,25)}else{callback(items)}},25)},multiStep:function(steps,args,callback){var tasks=steps.concat();setTimeout(function(){var task=tasks.shift(),a=args.shift();task.apply(null,a||[]);if(tasks.length>0){setTimeout(arguments.callee,25)}else{callback()}},25)},tamanhoBrowser:function(){var viewportwidth,viewportheight;if(typeof window.innerWidth!='undefined'){viewportwidth=window.innerWidth,viewportheight=window.innerHeight}else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0){viewportwidth=document.documentElement.clientWidth,viewportheight=document.documentElement.clientHeight}else{viewportwidth=document.getElementsByTagName('body')[0].clientWidth,viewportheight=document.getElementsByTagName('body')[0].clientHeight}viewportwidth=viewportwidth-i3GEO.util.getScrollerWidth();return[viewportwidth,viewportheight]},detectaTablet:function(){var p,c=DetectaMobile("DetectTierTablet");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},detectaMobile:function(){var p,c=DetectaMobile("DetectMobileLong");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},calculaDPI:function(){var novoel=document.createElement("div"),valor=72;novoel.style.height="1in";novoel.style.left="-100%";novoel.style.position="absolute";novoel.style.top="-100%";novoel.style.width="1in";document.body.appendChild(novoel);if(novoel.offsetHeight){valor=novoel.offsetHeight}document.body.removeChild(novoel);return valor},ajustaDocType:function(){try{if(document.implementation.createDocumentType){var newDoctype=document.implementation.createDocumentType('html','-//W3C//DTD XHTML 1.0 Transitional//EN','http://www.w3.org/TR/html4/loose.dtd');if(document.doctype){document.doctype.parentNode.replaceChild(newDoctype,document.doctype)}}}catch(e){}},versaoNavegador:function(){if(navm&&navigator.userAgent.toLowerCase().indexOf('msie 8.')>-1){return"IE8"}if(navn&&navigator.userAgent.toLowerCase().indexOf('3.')>-1){return"FF3"}return""},decimalPlaces:function(f,l){var ret="",str=f.toString(),array=str.split("."),i;if(array.length==2){ret+=array[0]+".";for(i=0;i=array[1].length)ret+='0';else ret+=array[1][i]}}else if(array.length==1){ret+=array[0]+".";for(i=0;i=-180){point=new ol.geom.Point([temp[0]*1,temp[1]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext=metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2]*1,temp[3]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext+=sep+metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},extOSM2Geo:function(ext,retornaArray){var point,temp,sep;sep=" ";if(typeof ext=="object"){return i3GEO.util.projOSM2Geo(ext)}if(i3GEO.Interface.openlayers.googleLike===true){temp=ext.split(sep);if(temp===1){sep=",";temp=ext.split(sep)}if(temp[0]*1>=180||temp[0]*1<=-180){point=new ol.geom.Point([temp[0],temp[1]]);point.transform("EPSG:3857","EPSG:4326");ext=point.getCoordinates()[0]+sep+point.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2],temp[3]]);point.transform("EPSG:3857","EPSG:4326");ext+=sep+point.getCoordinates()[0]+sep+point.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},projOSM2Geo:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:3857","EPSG:4326");return clone}else{return obj}},projGeo2OSM:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:4326","EPSG:3857");return clone}else{return obj}},navegadorDir:function(obj,listaShp,listaImg,listaFig,retornaDir){if(!obj){listaShp=true;listaImg=true;listaFig=true;retornaDir=false}var temp=function(){i3GEOF.navegarquivos.iniciaDicionario(obj,listaShp,listaImg,listaFig,retornaDir)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorDir()","navegarquivos","navegarquivos","index.js",temp)},navegadorPostgis:function(obj,conexao,tipo){if(!obj){conexao=""}if(!tipo){tipo="sql"}var temp=function(){i3GEOF.navegapostgis.iniciaDicionario(obj,conexao,tipo)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorPostgis()","navegapostgis","navegapostgis","index.js",temp)},base64encode:function(str){var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out},base64decode:function(str){var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i-1;var opera=navigator.userAgent.toLowerCase().indexOf('opera')>-1;if(navigator.appName.substring(0,1)==='N'){navn=true}if(navigator.appName.substring(0,1)==='M'){navm=true}if(opera===true){navn=true}var g_operacao="";var g_tipoacao="zoomli";var $i=function(id){if(!id||id===""){return false}return document.getElementById(id)};Array.prototype.remove=function(s){try{var n=this.length,i;for(i=0;i"+titulo+"";d={html:titulo};tempNode=new YAHOO.widget.HTMLNode(d,root,true,true);tempNode.enableHighlight=true;criaNo=function(obj,noDestino){var trad,i,j,linha,conteudo,temaNode,c=obj.propriedades.length;for(i=0,j=c;i"+trad+""}else{conteudo=linha.text}d={html:conteudo};temaNode=new YAHOO.widget.HTMLNode(d,noDestino,false,true);temaNode.enableHighlight=false;if(obj.propriedades[i].propriedades){criaNo(obj.propriedades[i],temaNode)}}};criaNo(obj,tempNode);arvore.collapseAll();arvore.draw();return arvore},removeAcentos:function(str){var defaultDiacriticsRemovalMap=[{'base':'A','letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{'base':'C','letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{'base':'E','letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{'base':'I','letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{'base':'O','letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{'base':'U','letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{'base':'a','letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{'base':'c','letters':/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{'base':'e','letters':/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{'base':'i','letters':/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{'base':'o','letters':/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{'base':'u','letters':/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g}];for(var i=0;i';document.body.appendChild(novoel);novoel.onmouseover=function(){novoel.style.display='none'};novoel.onmouseout=function(){novoel.style.display='block'};i3GEO.util.BOXES.push(id)}else{$i(id).style.display="block"}},escondeBox:function(){var l,i;l=i3GEO.util.BOXES.length;for(i=0;i"},$inputTextMudaCor:function(obj){var n=obj.value.split(" ");obj.style.color="rgb("+n[0]+","+n[1]+","+n[2]+")"},$top:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelTop){document.getElementById(id).style.pixelTop=valor}else{document.getElementById(id).style.top=valor+"px"}}},$left:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelLeft){document.getElementById(id).style.pixelLeft=valor}else{document.getElementById(id).style.left=valor+"px"}}},adicionaSHP:function(path){var temp=path.split(".");if((temp[1]==="SHP")||(temp[1]==="shp")){i3GEO.php.adicionaTemaSHP(i3GEO.atualiza,path)}else{i3GEO.php.adicionaTemaIMG(i3GEO.atualiza,path)}},abreCor:function(janelaid,elemento,tipo){if(!i3GEO.configura){i3GEO.configura={locaplic:"../"}}if(arguments.length===2){tipo="rgb"}var janela,ins,novoel,wdocaiframe,wsrc=i3GEO.configura.locaplic+"/ferramentas/colorpicker/index.htm?doc="+janelaid+"&elemento="+elemento+"&tipo="+tipo,texto="Cor",id="i3geo_janelaCor",classe="hd";if($i(id)){YAHOO.i3GEO.janela.manager.find(id).show();return}ins='
';ins+="";ins+=texto;ins+='
';if(wsrc!==""){ins+=''}ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCor";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCori");if(wdocaiframe){wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="230px";wdocaiframe.style.width="325px";wdocaiframe.style.border="0px solid white"}janela=new YAHOO.widget.Panel(id,{height:"290px",modal:false,width:"350px",fixedcenter:true,constraintoviewport:false,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe},aparece:function(id,tempo,intervalo){var n,obj,opacidade,fadei=0,tempoFadei=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="block";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=0;if(navm){obj.style.filter='alpha(opacity=0)'}else{obj.style.opacity=0}obj.style.display="block";fadei=function(){opacidade+=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade<100){tempoFadei=setTimeout(fadei,tempo)}else{if(tempoFadei){clearTimeout(tempoFadei)}if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}};tempoFadei=setTimeout(fadei,tempo)},desaparece:function(id,tempo,intervalo,removeobj){var n,obj,opacidade,fade=0,p,tempoFade=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="none";if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}return}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=100;if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}obj.style.display="block";fade=function(){opacidade-=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade>0){tempoFade=setTimeout(fade,tempo)}else{if(tempoFade){clearTimeout(tempoFade)}obj.style.display="none";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}}};tempoFade=setTimeout(fade,tempo)},wkt2ext:function(wkt,tipo){var re,x,y,w,xMin,xMax,yMin,yMax,temp;tipo=tipo.toLowerCase();ext=false;if(tipo==="polygon"){try{re=new RegExp("POLYGON","g");wkt=wkt.replace(re,"");wkt=wkt.split("(")[2].split(")")[0];wkt=wkt.split(",");x=[];y=[];for(w=0;w';if(onde!==""){$i(onde).innerHTML=ins}else{return(ins)}},randomRGB:function(){var v=Math.random(),r=parseInt(255*v,10),g;v=Math.random();g=parseInt(255*v,10);v=Math.random();b=parseInt(255*v,10);return(r+","+g+","+b)},rgb2hex:function(str){var rgb=str.split(",");function hex(x){return("0"+parseInt(x).toString(16)).slice(-2)}return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2])},comboTemas:function(id,funcao,onde,nome,multiplo,tipoCombo,estilo,yui,incluiVazio){if(onde&&onde!==""){i3GEO.util.defineValor(onde,"innerHTML","buscando temas...")}if(!nome){nome=""}if(!multiplo){multiplo=false}if(!estilo||estilo==""){estilo="font-size: 12px;width: 95%;"}if(!yui){yui=false}if(!incluiVazio){incluiVazio=false}var monta,temp,temp1,temp2;monta=function(retorno){var i,comboTemas='',n,nome="",tema;if(yui===true){comboTemas='';id=id+"select";nome=id}if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){if(multiplo){comboTemas+=""}if(yui===false||incluiVazio===true){comboTemas+=""}for(i=0;i"+nome+""}}comboTemas+="";temp={dados:comboTemas,tipo:"dados"}}else{if(tipoCombo==="poligonosSelecionados"||tipoCombo==="selecionados"||tipoCombo==="pontosSelecionados"){temp={dados:'
Nenhum tema encontrado. Selecionar...
',tipo:"mensagem"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")};if(tipoCombo==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="ligadosComTabela"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"menor",temp);temp2=i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"igual",temp);monta(temp1.concat(temp2))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="locais"){i3GEO.php.listaTemasEditaveis(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}if(tipoCombo==="editavel"){temp=i3GEO.arvoreDeCamadas.filtraCamadas("editavel","SIM","igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(temp)}if(tipoCombo==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="pontosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="pontos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naoraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",4,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",5,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",6,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",7,"diferente",temp);monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"diferente",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naolinearSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",1,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="linhaDoTempo"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("linhadotempo","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo===""){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type","","diferente",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}},checkCombo:function(id,nomes,valores,estilo,funcaoclick,ids,idschecked){var temp,i,combo="",n=valores.length;if(n>0){combo="

";for(i=0;i"}else{combo+=""}}combo+="
"+nomes[i]+"
"+nomes[i]+"
"}return combo},valoresCheckCombo:function(id){var el=$i(id),res=[],n,i;if(el){el=el.getElementsByTagName("input");n=el.length;for(i=0;i2){$i(onde).innerHTML="buscando temas..."}if(arguments.length===3){nome=""}var monta,temp,temp1,n,i;monta=function(retorno){try{var i,comboTemas,n,nome;if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){comboTemas="";for(i=0;i";comboTemas+=""}comboTemas+="
 
";temp={dados:comboTemas,tipo:"dados"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")}catch(e){}};if(tipoLista==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="polraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);n=temp1.length;for(i=0;i3&&$i(onde)){$i(onde).innerHTML="buscando itens..."}if(arguments.length!==5){nome=""}var monta=function(retorno){var ins,temp,i,nm;if(retorno.data!==undefined){ins=[];ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'

Ocorreu um erro
',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaItensTema(monta,tema)},comboValoresItem:function(id,tema,itemTema,funcao,onde){if(arguments.length===5){$i(onde).innerHTML="buscando valores..."}var monta=function(retorno){var ins=[],i,pares,j,valoresSort=[];if(retorno.data!==undefined){ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaValoresItensTema(monta,tema,itemTema)},comboFontes:function(id,onde){$i(onde).innerHTML="buscando fontes...";var monta=function(retorno){var ins="",temp,i,dados;if(retorno.data!==undefined){ins+=""}$i(onde).innerHTML=ins};i3GEO.php.listaFontesTexto(monta)},comboSimNao:function(id,selecionado){var combo="";return(combo)},checkItensEditaveis:function(tema,funcao,onde,size,prefixo,ordenacao){if(!ordenacao||ordenacao==""){ordenacao="nao"}if(onde!==""){$i(onde).innerHTML=""+$trad("x65")+""}var monta=function(retorno){var ins=[],i,temp,n;if(retorno.data!==undefined){if(ordenacao==="sim"){ins.push("")}else{ins.push("
"+$trad("x64")+"Ordem
")}n=retorno.data.valores.length;for(i=0;i");ins.push("");if(ordenacao==="sim"){ins.push("")}else{ins.push("")}ins.push("")}ins.push("
"+$trad("x64")+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
'+$trad("x66")+'
',tipo:"erro"}}funcao.call(this,temp)};i3GEO.php.listaItensTema(monta,tema)},radioEpsg:function(funcao,onde,prefixo,marcado){var c;if(arguments.length===2){$i(onde).innerHTML="buscando..."}c="checked";if(marcado&&marcado==="nao"){c=""}var monta=function(retorno){var ins=[],i,n,temp;if(retorno.data!==undefined){ins.push("");n=retorno.data.length;for(i=0;i");c="";ins.push("")}ins.push("
"+retorno.data[i].nome+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro
',tipo:"erro"}}funcao(temp)};i3GEO.php.listaEpsg(monta)},comboEpsg:function(idCombo,onde,funcaoOnChange,valorDefault){onde=$i(onde);onde.innerHTML="buscando...";var monta=function(retorno){var ins=[],i,n;if(retorno.data!==undefined){n=retorno.data.length;ins.push("");ins=ins.join('');onde.innerHTML=ins;$i(idCombo).value=valorDefault}else{onde.innerHTML='
Ocorreu um erro
'}};i3GEO.php.listaEpsg(monta)},proximoAnterior:function(anterior,proxima,texto,idatual,container,mantem,onde){var temp=$i(idatual),botoes="",ndiv=document.createElement("div"),nids,i;if(!mantem){mantem=false}if(temp&&mantem==false){$i(container).removeChild(temp)}$i(container).style.backgroundColor="white";botoes="";if(anterior!==""){botoes+=""}if(proxima!==""){botoes+=""}botoes+="
";var ativaBotoes=function(anterior,proxima,idatual){var i;new YAHOO.widget.Button(idatual+"anterior_",{onclick:{fn:function(){eval(anterior+"()")},lazyloadmenu:true}});new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn:function(){eval(proxima+"()")},lazyloadmenu:true}});i=$i(idatual+"proxima_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_avanca.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}i=$i(idatual+"anterior_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_volta.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}};if(onde){$i(onde).innerHTML=botoes}else{texto=texto+"

"+botoes}if(!document.getElementById(idatual)){ndiv.id=idatual;ndiv.innerHTML=texto;$i(container).appendChild(ndiv)}ativaBotoes(anterior,proxima,idatual);temp=$i(container).getElementsByTagName("div");nids=temp.length;for(i=0;i=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}box1=box1i;box2=box2i;coordx=box1[0]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}return false},abreColourRamp:function(janelaid,elemento,ncores,temaSel,displayComboTemas){var janela,ins,novoel,wdocaiframe,temp,fix=false,wsrc=i3GEO.configura.locaplic+"/ferramentas/colourramp/index.php?ncores="+ncores+"&doc="+janelaid+"&elemento="+elemento+"&locaplic="+i3GEO.configura.locaplic,nx="",texto="",id="i3geo_janelaCorRamp",classe="hd";if(!temaSel){temaSel=""}if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}ins='
';ins+="";if(i3GEO&&i3GEO.arvoreDeCamadas){ins+="
------
"}ins+="   "+texto;ins+='
';ins+='';ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCorRamp";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCorRampi");wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="380px";wdocaiframe.style.width="100%";wdocaiframe.style.border="0px solid white";if(nx===""||nx==="center"){fix=true}janela=new YAHOO.widget.Panel(id,{height:"430px",modal:false,width:"280px",fixedcenter:fix,constraintoviewport:true,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe;if($i("i3geo_janelaCorRampComboCabeca")){temp=function(){var p,tema=$i("i3geo_janelaCorRampComboCabecaSel").value,funcao=function(retorno){parent.frames["i3geo_janelaCorRampi"].document.getElementById("ncores").value=retorno.data.length};if(tema!==""){i3GEO.mapa.ativaTema(tema);p=i3GEO.configura.locaplic+"/ferramentas/legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=editalegenda&opcao=edita&tema="+tema;i3GEO.util.ajaxGet(p,funcao);cp=new cpaint()}};i3GEO.janela.comboCabecalhoTemas("i3geo_janelaCorRampComboCabeca","i3geo_janelaCorRampComboCabecaSel","none","ligados",temp,temaSel)}},localizai3GEO:function(){var scriptLocation="",scripts=document.getElementsByTagName('script'),i=0,index,ns=scripts.length,src;for(i=0;i-1)&&(index+"/js/i3geo.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geo.js".length);break}index=src.lastIndexOf("/js/i3geonaocompacto.js");if((index>-1)&&(index+"/js/i3geonaocompacto.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geonaocompacto.js".length);break}}}if(i3GEO.configura){i3GEO.configura.locaplic=scriptLocation}return scriptLocation},removeChild:function(id,el){var j=$i(id);if(j){if(!el){el=j.parentNode}el.removeChild(j)}},defineValor:function(id,prop,valor){var o=$i(id);if(o){try{$i(id)[prop]=valor}catch(e){}}},in_array:function(x,matriz){var txt=" "+matriz.join(" ")+" ";var er=new RegExp(" "+x+" ","gim");return((txt.match(er))?true:false)},timedProcessArray:function(items,process,callback){var todo=items.concat();setTimeout(function(){var start=+new Date();do{process(todo.shift())}while(todo.length>0&&(+new date()-start<50));if(todo.length>0){setTimeout(arguments.callee,25)}else{callback(items)}},25)},multiStep:function(steps,args,callback){var tasks=steps.concat();setTimeout(function(){var task=tasks.shift(),a=args.shift();task.apply(null,a||[]);if(tasks.length>0){setTimeout(arguments.callee,25)}else{callback()}},25)},tamanhoBrowser:function(){var viewportwidth,viewportheight;if(typeof window.innerWidth!='undefined'){viewportwidth=window.innerWidth,viewportheight=window.innerHeight}else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0){viewportwidth=document.documentElement.clientWidth,viewportheight=document.documentElement.clientHeight}else{viewportwidth=document.getElementsByTagName('body')[0].clientWidth,viewportheight=document.getElementsByTagName('body')[0].clientHeight}viewportwidth=viewportwidth-i3GEO.util.getScrollerWidth();return[viewportwidth,viewportheight]},detectaTablet:function(){var p,c=DetectaMobile("DetectTierTablet");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},detectaMobile:function(){var p,c=DetectaMobile("DetectMobileLong");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},calculaDPI:function(){var novoel=document.createElement("div"),valor=72;novoel.style.height="1in";novoel.style.left="-100%";novoel.style.position="absolute";novoel.style.top="-100%";novoel.style.width="1in";document.body.appendChild(novoel);if(novoel.offsetHeight){valor=novoel.offsetHeight}document.body.removeChild(novoel);return valor},ajustaDocType:function(){try{if(document.implementation.createDocumentType){var newDoctype=document.implementation.createDocumentType('html','-//W3C//DTD XHTML 1.0 Transitional//EN','http://www.w3.org/TR/html4/loose.dtd');if(document.doctype){document.doctype.parentNode.replaceChild(newDoctype,document.doctype)}}}catch(e){}},versaoNavegador:function(){if(navm&&navigator.userAgent.toLowerCase().indexOf('msie 8.')>-1){return"IE8"}if(navn&&navigator.userAgent.toLowerCase().indexOf('3.')>-1){return"FF3"}return""},decimalPlaces:function(f,l){var ret="",str=f.toString(),array=str.split("."),i;if(array.length==2){ret+=array[0]+".";for(i=0;i=array[1].length)ret+='0';else ret+=array[1][i]}}else if(array.length==1){ret+=array[0]+".";for(i=0;i=-180){point=new ol.geom.Point([temp[0]*1,temp[1]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext=metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2]*1,temp[3]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext+=sep+metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},extOSM2Geo:function(ext,retornaArray){var point,temp,sep;sep=" ";if(typeof ext=="object"){return i3GEO.util.projOSM2Geo(ext)}if(i3GEO.Interface.openlayers.googleLike===true){temp=ext.split(sep);if(temp===1){sep=",";temp=ext.split(sep)}if(temp[0]*1>=180||temp[0]*1<=-180){point=new ol.geom.Point([temp[0],temp[1]]);point.transform("EPSG:3857","EPSG:4326");ext=point.getCoordinates()[0]+sep+point.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2],temp[3]]);point.transform("EPSG:3857","EPSG:4326");ext+=sep+point.getCoordinates()[0]+sep+point.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},projOSM2Geo:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:3857","EPSG:4326");return clone}else{return obj}},projGeo2OSM:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:4326","EPSG:3857");return clone}else{return obj}},navegadorDir:function(obj,listaShp,listaImg,listaFig,retornaDir){if(!obj){listaShp=true;listaImg=true;listaFig=true;retornaDir=false}var temp=function(){i3GEOF.navegarquivos.iniciaDicionario(obj,listaShp,listaImg,listaFig,retornaDir)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorDir()","navegarquivos","navegarquivos","index.js",temp)},navegadorPostgis:function(obj,conexao,tipo){if(!obj){conexao=""}if(!tipo){tipo="sql"}var temp=function(){i3GEOF.navegapostgis.iniciaDicionario(obj,conexao,tipo)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorPostgis()","navegapostgis","navegapostgis","index.js",temp)},base64encode:function(str){var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out},base64decode:function(str){var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i
', + template2: '', + click : function() { + i3GEO.guias.mostra("ferramentas"); + //verifica se ja foi criada + if(i3GEO.guias.CONFIGURA.ferramentas.status === true){ + return; + } + i3GEO.guias.CONFIGURA.ferramentas.status = true; + + ondeFerramentas = "listaFerramentas"; + if (!$i("listaFerramentas")) { + ondeFerramentas = "guia8obj"; + } + + var t,n, i, sub, nomeMenu = "", confm = i3GEO.configura.oMenuData, ins = "", subs = + i3GEO.configura.oMenuData.submenus, onde; + + n = confm.menu.length; + onde = $( "#listaFerramentas" ); + + for (i = 0; i < n; i += 1) { + var t = Mustache.to_html( + i3GEO.guias.CONFIGURA.ferramentas.template1, + {"nome":confm.menu[i].nome} + ); + t = $(t); + + t.find(".list-group-item-text") + .data({"nivel":0,"nome":confm.menu[i].nome,"id":confm.menu[i].id}) + .click(function(){ + var t = Mustache.to_html( + i3GEO.guias.CONFIGURA.ferramentas.template2, + $(this).data() + ); + $("#migalhaFerramentas").html(t); + }); + + onde + .append(t); + } + //$( "#listaFerramentas" ).append(ins); + + /* + for (nomeMenu in subs) { + if ($i("menulista_" + nomeMenu)) { + sub = subs[nomeMenu]; + n = sub.length; + ins = ""; + for (i = 0; i < n; i++) { + ins += "

" + sub[i].text + ""; + } + $i("menulista_" + nomeMenu).innerHTML += ins; + } + } + */ + } } }, /** diff --git a/js/i3geo_tudo_compacto7.js b/js/i3geo_tudo_compacto7.js index 68a7385..fabab3f 100755 --- a/js/i3geo_tudo_compacto7.js +++ b/js/i3geo_tudo_compacto7.js @@ -219,7 +219,7 @@ var i3GEOF=[];var i3GEOadmin=[];if(typeof YAHOO!="undefined"){YAHOO.namespace("i (function(global,factory){if(typeof exports==="object"&&exports){factory(exports)}else if(typeof define==="function"&&define.amd){define(['exports'],factory)}else{factory(global.Mustache={})}}(this,function(mustache){var Object_toString=Object.prototype.toString;var isArray=Array.isArray||function(object){return Object_toString.call(object)==='[object Array]'};function isFunction(object){return typeof object==='function'}function escapeRegExp(string){return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var RegExp_test=RegExp.prototype.test;function testRegExp(re,string){return RegExp_test.call(re,string)}var nonSpaceRe=/\S/;function isWhitespace(string){return!testRegExp(nonSpaceRe,string)}var entityMap={"&":"&","<":"<",">":">",'"':'"',"'":''',"/":'/'};function escapeHtml(string){return String(string).replace(/[&<>"'\/]/g,function(s){return entityMap[s]})}var whiteRe=/\s*/;var spaceRe=/\s+/;var equalsRe=/\s*=/;var curlyRe=/\s*\}/;var tagRe=/#|\^|\/|>|\{|&|=|!/;function parseTemplate(template,tags){if(!template)return[];var sections=[];var tokens=[];var spaces=[];var hasTag=false;var nonSpace=false;function stripSpace(){if(hasTag&&!nonSpace){while(spaces.length)delete tokens[spaces.pop()]}else{spaces=[]}hasTag=false;nonSpace=false}var openingTagRe,closingTagRe,closingCurlyRe;function compileTags(tags){if(typeof tags==='string')tags=tags.split(spaceRe,2);if(!isArray(tags)||tags.length!==2)throw new Error('Invalid tags: '+tags);openingTagRe=new RegExp(escapeRegExp(tags[0])+'\\s*');closingTagRe=new RegExp('\\s*'+escapeRegExp(tags[1]));closingCurlyRe=new RegExp('\\s*'+escapeRegExp('}'+tags[1]))}compileTags(tags||mustache.tags);var scanner=new Scanner(template);var start,type,value,chr,token,openSection;while(!scanner.eos()){start=scanner.pos;value=scanner.scanUntil(openingTagRe);if(value){for(var i=0,valueLength=value.length;i0?sections[sections.length-1][4]:nestedTokens;break;default:collector.push(token)}}return nestedTokens}function Scanner(string){this.string=string;this.tail=string;this.pos=0}Scanner.prototype.eos=function(){return this.tail===""};Scanner.prototype.scan=function(re){var match=this.tail.match(re);if(!match||match.index!==0)return'';var string=match[0];this.tail=this.tail.substring(string.length);this.pos+=string.length;return string};Scanner.prototype.scanUntil=function(re){var index=this.tail.search(re),match;switch(index){case-1:match=this.tail;this.tail="";break;case 0:match="";break;default:match=this.tail.substring(0,index);this.tail=this.tail.substring(index)}this.pos+=match.length;return match};function Context(view,parentContext){this.view=view==null?{}:view;this.cache={'.':this.view};this.parent=parentContext}Context.prototype.push=function(view){return new Context(view,this)};Context.prototype.lookup=function(name){var cache=this.cache;var value;if(name in cache){value=cache[name]}else{var context=this,names,index;while(context){if(name.indexOf('.')>0){value=context.view;names=name.split('.');index=0;while(value!=null&&index':if(!partials)continue;value=isFunction(partials)?partials(token[1]):partials[token[1]];if(value!=null)buffer+=this.renderTokens(this.parse(value),context,partials,value);break;case'&':value=context.lookup(token[1]);if(value!=null)buffer+=value;break;case'name':value=context.lookup(token[1]);if(value!=null)buffer+=mustache.escape(value);break;case'text':buffer+=token[1];break}}return buffer};mustache.name="mustache.js";mustache.version="0.8.1";mustache.tags=["{{","}}"];var defaultWriter=new Writer();mustache.clearCache=function(){return defaultWriter.clearCache()};mustache.parse=function(template,tags){return defaultWriter.parse(template,tags)};mustache.render=function(template,view,partials){return defaultWriter.render(template,view,partials)};mustache.to_html=function(template,view,partials,send){var result=mustache.render(template,view,partials);if(isFunction(send)){send(result)}else{return result}};mustache.escape=escapeHtml;mustache.Scanner=Scanner;mustache.Context=Context;mustache.Writer=Writer})); // //compactados/util_compacto.js -if(typeof(i3GEO)==='undefined'){var i3GEO={}}var navm=false;var navn=false;var chro=navigator.userAgent.toLowerCase().indexOf('chrome')>-1;var opera=navigator.userAgent.toLowerCase().indexOf('opera')>-1;if(navigator.appName.substring(0,1)==='N'){navn=true}if(navigator.appName.substring(0,1)==='M'){navm=true}if(opera===true){navn=true}var g_operacao="";var g_tipoacao="zoomli";var $i=function(id){if(!id||id===""){return false}return document.getElementById(id)};Array.prototype.remove=function(s){try{var n=this.length,i;for(i=0;i"+titulo+"";d={html:titulo};tempNode=new YAHOO.widget.HTMLNode(d,root,true,true);tempNode.enableHighlight=true;criaNo=function(obj,noDestino){var trad,i,j,linha,conteudo,temaNode,c=obj.propriedades.length;for(i=0,j=c;i"+trad+""}else{conteudo=linha.text}d={html:conteudo};temaNode=new YAHOO.widget.HTMLNode(d,noDestino,false,true);temaNode.enableHighlight=false;if(obj.propriedades[i].propriedades){criaNo(obj.propriedades[i],temaNode)}}};criaNo(obj,tempNode);arvore.collapseAll();arvore.draw();return arvore},removeAcentos:function(str){var defaultDiacriticsRemovalMap=[{'base':'A','letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{'base':'C','letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{'base':'E','letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{'base':'I','letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{'base':'O','letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{'base':'U','letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{'base':'a','letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{'base':'c','letters':/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{'base':'e','letters':/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{'base':'i','letters':/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{'base':'o','letters':/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{'base':'u','letters':/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g}];for(var i=0;i';document.body.appendChild(novoel);novoel.onmouseover=function(){novoel.style.display='none'};novoel.onmouseout=function(){novoel.style.display='block'};i3GEO.util.BOXES.push(id)}else{$i(id).style.display="block"}},escondeBox:function(){var l,i;l=i3GEO.util.BOXES.length;for(i=0;i"},$inputTextMudaCor:function(obj){var n=obj.value.split(" ");obj.style.color="rgb("+n[0]+","+n[1]+","+n[2]+")"},$top:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelTop){document.getElementById(id).style.pixelTop=valor}else{document.getElementById(id).style.top=valor+"px"}}},$left:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelLeft){document.getElementById(id).style.pixelLeft=valor}else{document.getElementById(id).style.left=valor+"px"}}},adicionaSHP:function(path){var temp=path.split(".");if((temp[1]==="SHP")||(temp[1]==="shp")){i3GEO.php.adicionaTemaSHP(i3GEO.atualiza,path)}else{i3GEO.php.adicionaTemaIMG(i3GEO.atualiza,path)}},abreCor:function(janelaid,elemento,tipo){if(!i3GEO.configura){i3GEO.configura={locaplic:"../"}}if(arguments.length===2){tipo="rgb"}var janela,ins,novoel,wdocaiframe,wsrc=i3GEO.configura.locaplic+"/ferramentas/colorpicker/index.htm?doc="+janelaid+"&elemento="+elemento+"&tipo="+tipo,texto="Cor",id="i3geo_janelaCor",classe="hd";if($i(id)){YAHOO.i3GEO.janela.manager.find(id).show();return}ins='

';ins+="";ins+=texto;ins+='
';if(wsrc!==""){ins+=''}ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCor";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCori");if(wdocaiframe){wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="230px";wdocaiframe.style.width="325px";wdocaiframe.style.border="0px solid white"}janela=new YAHOO.widget.Panel(id,{height:"290px",modal:false,width:"350px",fixedcenter:true,constraintoviewport:false,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe},aparece:function(id,tempo,intervalo){var n,obj,opacidade,fadei=0,tempoFadei=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="block";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=0;if(navm){obj.style.filter='alpha(opacity=0)'}else{obj.style.opacity=0}obj.style.display="block";fadei=function(){opacidade+=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade<100){tempoFadei=setTimeout(fadei,tempo)}else{if(tempoFadei){clearTimeout(tempoFadei)}if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}};tempoFadei=setTimeout(fadei,tempo)},desaparece:function(id,tempo,intervalo,removeobj){var n,obj,opacidade,fade=0,p,tempoFade=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="none";if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}return}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=100;if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}obj.style.display="block";fade=function(){opacidade-=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade>0){tempoFade=setTimeout(fade,tempo)}else{if(tempoFade){clearTimeout(tempoFade)}obj.style.display="none";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}}};tempoFade=setTimeout(fade,tempo)},wkt2ext:function(wkt,tipo){var re,x,y,w,xMin,xMax,yMin,yMax,temp;tipo=tipo.toLowerCase();ext=false;if(tipo==="polygon"){try{re=new RegExp("POLYGON","g");wkt=wkt.replace(re,"");wkt=wkt.split("(")[2].split(")")[0];wkt=wkt.split(",");x=[];y=[];for(w=0;w';if(onde!==""){$i(onde).innerHTML=ins}else{return(ins)}},randomRGB:function(){var v=Math.random(),r=parseInt(255*v,10),g;v=Math.random();g=parseInt(255*v,10);v=Math.random();b=parseInt(255*v,10);return(r+","+g+","+b)},rgb2hex:function(str){var re=new RegExp(" ","g"),rgb=str.replace(re,',');return YAHOO.util.Dom.Color.toHex("rgb("+rgb+")")},comboTemas:function(id,funcao,onde,nome,multiplo,tipoCombo,estilo,yui,incluiVazio){if(onde&&onde!==""){i3GEO.util.defineValor(onde,"innerHTML","buscando temas...")}if(!nome){nome=""}if(!multiplo){multiplo=false}if(!estilo||estilo==""){estilo="font-size: 12px;width: 95%;"}if(!yui){yui=false}if(!incluiVazio){incluiVazio=false}var monta,temp,temp1,temp2;monta=function(retorno){var i,comboTemas='',n,nome="",tema;if(yui===true){comboTemas='';id=id+"select";nome=id}if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){if(multiplo){comboTemas+=""}if(yui===false||incluiVazio===true){comboTemas+=""}for(i=0;i"+nome+""}}comboTemas+="";temp={dados:comboTemas,tipo:"dados"}}else{if(tipoCombo==="poligonosSelecionados"||tipoCombo==="selecionados"||tipoCombo==="pontosSelecionados"){temp={dados:'
Nenhum tema encontrado. Selecionar...
',tipo:"mensagem"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")};if(tipoCombo==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="ligadosComTabela"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"menor",temp);temp2=i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"igual",temp);monta(temp1.concat(temp2))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="locais"){i3GEO.php.listaTemasEditaveis(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}if(tipoCombo==="editavel"){temp=i3GEO.arvoreDeCamadas.filtraCamadas("editavel","SIM","igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(temp)}if(tipoCombo==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="pontosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="pontos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naoraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",4,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",5,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",6,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",7,"diferente",temp);monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"diferente",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naolinearSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",1,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="linhaDoTempo"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("linhadotempo","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo===""){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type","","diferente",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}},checkCombo:function(id,nomes,valores,estilo,funcaoclick,ids,idschecked){var temp,i,combo="",n=valores.length;if(n>0){combo="

";for(i=0;i"}else{combo+=""}}combo+="
"+nomes[i]+"
"+nomes[i]+"
"}return combo},valoresCheckCombo:function(id){var el=$i(id),res=[],n,i;if(el){el=el.getElementsByTagName("input");n=el.length;for(i=0;i2){$i(onde).innerHTML="buscando temas..."}if(arguments.length===3){nome=""}var monta,temp,temp1,n,i;monta=function(retorno){try{var i,comboTemas,n,nome;if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){comboTemas="";for(i=0;i";comboTemas+=""}comboTemas+="
 
";temp={dados:comboTemas,tipo:"dados"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")}catch(e){}};if(tipoLista==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="polraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);n=temp1.length;for(i=0;i3&&$i(onde)){$i(onde).innerHTML="buscando itens..."}if(arguments.length!==5){nome=""}var monta=function(retorno){var ins,temp,i,nm;if(retorno.data!==undefined){ins=[];ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'

Ocorreu um erro
',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaItensTema(monta,tema)},comboValoresItem:function(id,tema,itemTema,funcao,onde){if(arguments.length===5){$i(onde).innerHTML="buscando valores..."}var monta=function(retorno){var ins=[],i,pares,j,valoresSort=[];if(retorno.data!==undefined){ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaValoresItensTema(monta,tema,itemTema)},comboFontes:function(id,onde){$i(onde).innerHTML="buscando fontes...";var monta=function(retorno){var ins="",temp,i,dados;if(retorno.data!==undefined){ins+=""}$i(onde).innerHTML=ins};i3GEO.php.listaFontesTexto(monta)},comboSimNao:function(id,selecionado){var combo="";return(combo)},checkItensEditaveis:function(tema,funcao,onde,size,prefixo,ordenacao){if(!ordenacao||ordenacao==""){ordenacao="nao"}if(onde!==""){$i(onde).innerHTML=""+$trad("x65")+""}var monta=function(retorno){var ins=[],i,temp,n;if(retorno.data!==undefined){if(ordenacao==="sim"){ins.push("")}else{ins.push("
"+$trad("x64")+"Ordem
")}n=retorno.data.valores.length;for(i=0;i");ins.push("");if(ordenacao==="sim"){ins.push("")}else{ins.push("")}ins.push("")}ins.push("
"+$trad("x64")+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
'+$trad("x66")+'
',tipo:"erro"}}funcao.call(this,temp)};i3GEO.php.listaItensTema(monta,tema)},radioEpsg:function(funcao,onde,prefixo,marcado){var c;if(arguments.length===2){$i(onde).innerHTML="buscando..."}c="checked";if(marcado&&marcado==="nao"){c=""}var monta=function(retorno){var ins=[],i,n,temp;if(retorno.data!==undefined){ins.push("");n=retorno.data.length;for(i=0;i");c="";ins.push("")}ins.push("
"+retorno.data[i].nome+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro
',tipo:"erro"}}funcao(temp)};i3GEO.php.listaEpsg(monta)},comboEpsg:function(idCombo,onde,funcaoOnChange,valorDefault){onde=$i(onde);onde.innerHTML="buscando...";var monta=function(retorno){var ins=[],i,n;if(retorno.data!==undefined){n=retorno.data.length;ins.push("");ins=ins.join('');onde.innerHTML=ins;$i(idCombo).value=valorDefault}else{onde.innerHTML='
Ocorreu um erro
'}};i3GEO.php.listaEpsg(monta)},proximoAnterior:function(anterior,proxima,texto,idatual,container,mantem,onde){var temp=$i(idatual),botoes="",ndiv=document.createElement("div"),nids,i;if(!mantem){mantem=false}if(temp&&mantem==false){$i(container).removeChild(temp)}$i(container).style.backgroundColor="white";botoes="";if(anterior!==""){botoes+=""}if(proxima!==""){botoes+=""}botoes+="
";var ativaBotoes=function(anterior,proxima,idatual){var i;new YAHOO.widget.Button(idatual+"anterior_",{onclick:{fn:function(){eval(anterior+"()")},lazyloadmenu:true}});new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn:function(){eval(proxima+"()")},lazyloadmenu:true}});i=$i(idatual+"proxima_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_avanca.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}i=$i(idatual+"anterior_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_volta.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}};if(onde){$i(onde).innerHTML=botoes}else{texto=texto+"

"+botoes}if(!document.getElementById(idatual)){ndiv.id=idatual;ndiv.innerHTML=texto;$i(container).appendChild(ndiv)}ativaBotoes(anterior,proxima,idatual);temp=$i(container).getElementsByTagName("div");nids=temp.length;for(i=0;i=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}box1=box1i;box2=box2i;coordx=box1[0]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}return false},abreColourRamp:function(janelaid,elemento,ncores,temaSel,displayComboTemas){var janela,ins,novoel,wdocaiframe,temp,fix=false,wsrc=i3GEO.configura.locaplic+"/ferramentas/colourramp/index.php?ncores="+ncores+"&doc="+janelaid+"&elemento="+elemento+"&locaplic="+i3GEO.configura.locaplic,nx="",texto="",id="i3geo_janelaCorRamp",classe="hd";if(!temaSel){temaSel=""}if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}ins='
';ins+="";if(i3GEO&&i3GEO.arvoreDeCamadas){ins+="
------
"}ins+="   "+texto;ins+='
';ins+='';ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCorRamp";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCorRampi");wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="380px";wdocaiframe.style.width="100%";wdocaiframe.style.border="0px solid white";if(nx===""||nx==="center"){fix=true}janela=new YAHOO.widget.Panel(id,{height:"430px",modal:false,width:"280px",fixedcenter:fix,constraintoviewport:true,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe;if($i("i3geo_janelaCorRampComboCabeca")){temp=function(){var p,tema=$i("i3geo_janelaCorRampComboCabecaSel").value,funcao=function(retorno){parent.frames["i3geo_janelaCorRampi"].document.getElementById("ncores").value=retorno.data.length};if(tema!==""){i3GEO.mapa.ativaTema(tema);p=i3GEO.configura.locaplic+"/ferramentas/legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=editalegenda&opcao=edita&tema="+tema;i3GEO.util.ajaxGet(p,funcao);cp=new cpaint()}};i3GEO.janela.comboCabecalhoTemas("i3geo_janelaCorRampComboCabeca","i3geo_janelaCorRampComboCabecaSel","none","ligados",temp,temaSel)}},localizai3GEO:function(){var scriptLocation="",scripts=document.getElementsByTagName('script'),i=0,index,ns=scripts.length,src;for(i=0;i-1)&&(index+"/js/i3geo.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geo.js".length);break}index=src.lastIndexOf("/js/i3geonaocompacto.js");if((index>-1)&&(index+"/js/i3geonaocompacto.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geonaocompacto.js".length);break}}}if(i3GEO.configura){i3GEO.configura.locaplic=scriptLocation}return scriptLocation},removeChild:function(id,el){var j=$i(id);if(j){if(!el){el=j.parentNode}el.removeChild(j)}},defineValor:function(id,prop,valor){var o=$i(id);if(o){try{$i(id)[prop]=valor}catch(e){}}},in_array:function(x,matriz){var txt=" "+matriz.join(" ")+" ";var er=new RegExp(" "+x+" ","gim");return((txt.match(er))?true:false)},timedProcessArray:function(items,process,callback){var todo=items.concat();setTimeout(function(){var start=+new Date();do{process(todo.shift())}while(todo.length>0&&(+new date()-start<50));if(todo.length>0){setTimeout(arguments.callee,25)}else{callback(items)}},25)},multiStep:function(steps,args,callback){var tasks=steps.concat();setTimeout(function(){var task=tasks.shift(),a=args.shift();task.apply(null,a||[]);if(tasks.length>0){setTimeout(arguments.callee,25)}else{callback()}},25)},tamanhoBrowser:function(){var viewportwidth,viewportheight;if(typeof window.innerWidth!='undefined'){viewportwidth=window.innerWidth,viewportheight=window.innerHeight}else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0){viewportwidth=document.documentElement.clientWidth,viewportheight=document.documentElement.clientHeight}else{viewportwidth=document.getElementsByTagName('body')[0].clientWidth,viewportheight=document.getElementsByTagName('body')[0].clientHeight}viewportwidth=viewportwidth-i3GEO.util.getScrollerWidth();return[viewportwidth,viewportheight]},detectaTablet:function(){var p,c=DetectaMobile("DetectTierTablet");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},detectaMobile:function(){var p,c=DetectaMobile("DetectMobileLong");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},calculaDPI:function(){var novoel=document.createElement("div"),valor=72;novoel.style.height="1in";novoel.style.left="-100%";novoel.style.position="absolute";novoel.style.top="-100%";novoel.style.width="1in";document.body.appendChild(novoel);if(novoel.offsetHeight){valor=novoel.offsetHeight}document.body.removeChild(novoel);return valor},ajustaDocType:function(){try{if(document.implementation.createDocumentType){var newDoctype=document.implementation.createDocumentType('html','-//W3C//DTD XHTML 1.0 Transitional//EN','http://www.w3.org/TR/html4/loose.dtd');if(document.doctype){document.doctype.parentNode.replaceChild(newDoctype,document.doctype)}}}catch(e){}},versaoNavegador:function(){if(navm&&navigator.userAgent.toLowerCase().indexOf('msie 8.')>-1){return"IE8"}if(navn&&navigator.userAgent.toLowerCase().indexOf('3.')>-1){return"FF3"}return""},decimalPlaces:function(f,l){var ret="",str=f.toString(),array=str.split("."),i;if(array.length==2){ret+=array[0]+".";for(i=0;i=array[1].length)ret+='0';else ret+=array[1][i]}}else if(array.length==1){ret+=array[0]+".";for(i=0;i=-180){point=new ol.geom.Point([temp[0]*1,temp[1]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext=metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2]*1,temp[3]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext+=sep+metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},extOSM2Geo:function(ext,retornaArray){var point,temp,sep;sep=" ";if(typeof ext=="object"){return i3GEO.util.projOSM2Geo(ext)}if(i3GEO.Interface.openlayers.googleLike===true){temp=ext.split(sep);if(temp===1){sep=",";temp=ext.split(sep)}if(temp[0]*1>=180||temp[0]*1<=-180){point=new ol.geom.Point([temp[0],temp[1]]);point.transform("EPSG:3857","EPSG:4326");ext=point.getCoordinates()[0]+sep+point.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2],temp[3]]);point.transform("EPSG:3857","EPSG:4326");ext+=sep+point.getCoordinates()[0]+sep+point.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},projOSM2Geo:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:3857","EPSG:4326");return clone}else{return obj}},projGeo2OSM:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:4326","EPSG:3857");return clone}else{return obj}},navegadorDir:function(obj,listaShp,listaImg,listaFig,retornaDir){if(!obj){listaShp=true;listaImg=true;listaFig=true;retornaDir=false}var temp=function(){i3GEOF.navegarquivos.iniciaDicionario(obj,listaShp,listaImg,listaFig,retornaDir)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorDir()","navegarquivos","navegarquivos","index.js",temp)},navegadorPostgis:function(obj,conexao,tipo){if(!obj){conexao=""}if(!tipo){tipo="sql"}var temp=function(){i3GEOF.navegapostgis.iniciaDicionario(obj,conexao,tipo)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorPostgis()","navegapostgis","navegapostgis","index.js",temp)},base64encode:function(str){var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out},base64decode:function(str){var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i-1;var opera=navigator.userAgent.toLowerCase().indexOf('opera')>-1;if(navigator.appName.substring(0,1)==='N'){navn=true}if(navigator.appName.substring(0,1)==='M'){navm=true}if(opera===true){navn=true}var g_operacao="";var g_tipoacao="zoomli";var $i=function(id){if(!id||id===""){return false}return document.getElementById(id)};Array.prototype.remove=function(s){try{var n=this.length,i;for(i=0;i"+titulo+"";d={html:titulo};tempNode=new YAHOO.widget.HTMLNode(d,root,true,true);tempNode.enableHighlight=true;criaNo=function(obj,noDestino){var trad,i,j,linha,conteudo,temaNode,c=obj.propriedades.length;for(i=0,j=c;i"+trad+""}else{conteudo=linha.text}d={html:conteudo};temaNode=new YAHOO.widget.HTMLNode(d,noDestino,false,true);temaNode.enableHighlight=false;if(obj.propriedades[i].propriedades){criaNo(obj.propriedades[i],temaNode)}}};criaNo(obj,tempNode);arvore.collapseAll();arvore.draw();return arvore},removeAcentos:function(str){var defaultDiacriticsRemovalMap=[{'base':'A','letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{'base':'C','letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{'base':'E','letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{'base':'I','letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{'base':'O','letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{'base':'U','letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{'base':'a','letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{'base':'c','letters':/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{'base':'e','letters':/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{'base':'i','letters':/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{'base':'o','letters':/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{'base':'u','letters':/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g}];for(var i=0;i';document.body.appendChild(novoel);novoel.onmouseover=function(){novoel.style.display='none'};novoel.onmouseout=function(){novoel.style.display='block'};i3GEO.util.BOXES.push(id)}else{$i(id).style.display="block"}},escondeBox:function(){var l,i;l=i3GEO.util.BOXES.length;for(i=0;i"},$inputTextMudaCor:function(obj){var n=obj.value.split(" ");obj.style.color="rgb("+n[0]+","+n[1]+","+n[2]+")"},$top:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelTop){document.getElementById(id).style.pixelTop=valor}else{document.getElementById(id).style.top=valor+"px"}}},$left:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelLeft){document.getElementById(id).style.pixelLeft=valor}else{document.getElementById(id).style.left=valor+"px"}}},adicionaSHP:function(path){var temp=path.split(".");if((temp[1]==="SHP")||(temp[1]==="shp")){i3GEO.php.adicionaTemaSHP(i3GEO.atualiza,path)}else{i3GEO.php.adicionaTemaIMG(i3GEO.atualiza,path)}},abreCor:function(janelaid,elemento,tipo){if(!i3GEO.configura){i3GEO.configura={locaplic:"../"}}if(arguments.length===2){tipo="rgb"}var janela,ins,novoel,wdocaiframe,wsrc=i3GEO.configura.locaplic+"/ferramentas/colorpicker/index.htm?doc="+janelaid+"&elemento="+elemento+"&tipo="+tipo,texto="Cor",id="i3geo_janelaCor",classe="hd";if($i(id)){YAHOO.i3GEO.janela.manager.find(id).show();return}ins='
';ins+="";ins+=texto;ins+='
';if(wsrc!==""){ins+=''}ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCor";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCori");if(wdocaiframe){wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="230px";wdocaiframe.style.width="325px";wdocaiframe.style.border="0px solid white"}janela=new YAHOO.widget.Panel(id,{height:"290px",modal:false,width:"350px",fixedcenter:true,constraintoviewport:false,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe},aparece:function(id,tempo,intervalo){var n,obj,opacidade,fadei=0,tempoFadei=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="block";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=0;if(navm){obj.style.filter='alpha(opacity=0)'}else{obj.style.opacity=0}obj.style.display="block";fadei=function(){opacidade+=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade<100){tempoFadei=setTimeout(fadei,tempo)}else{if(tempoFadei){clearTimeout(tempoFadei)}if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}};tempoFadei=setTimeout(fadei,tempo)},desaparece:function(id,tempo,intervalo,removeobj){var n,obj,opacidade,fade=0,p,tempoFade=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="none";if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}return}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=100;if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}obj.style.display="block";fade=function(){opacidade-=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade>0){tempoFade=setTimeout(fade,tempo)}else{if(tempoFade){clearTimeout(tempoFade)}obj.style.display="none";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}}};tempoFade=setTimeout(fade,tempo)},wkt2ext:function(wkt,tipo){var re,x,y,w,xMin,xMax,yMin,yMax,temp;tipo=tipo.toLowerCase();ext=false;if(tipo==="polygon"){try{re=new RegExp("POLYGON","g");wkt=wkt.replace(re,"");wkt=wkt.split("(")[2].split(")")[0];wkt=wkt.split(",");x=[];y=[];for(w=0;w';if(onde!==""){$i(onde).innerHTML=ins}else{return(ins)}},randomRGB:function(){var v=Math.random(),r=parseInt(255*v,10),g;v=Math.random();g=parseInt(255*v,10);v=Math.random();b=parseInt(255*v,10);return(r+","+g+","+b)},rgb2hex:function(str){var rgb=str.split(",");function hex(x){return("0"+parseInt(x).toString(16)).slice(-2)}return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2])},comboTemas:function(id,funcao,onde,nome,multiplo,tipoCombo,estilo,yui,incluiVazio){if(onde&&onde!==""){i3GEO.util.defineValor(onde,"innerHTML","buscando temas...")}if(!nome){nome=""}if(!multiplo){multiplo=false}if(!estilo||estilo==""){estilo="font-size: 12px;width: 95%;"}if(!yui){yui=false}if(!incluiVazio){incluiVazio=false}var monta,temp,temp1,temp2;monta=function(retorno){var i,comboTemas='',n,nome="",tema;if(yui===true){comboTemas='';id=id+"select";nome=id}if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){if(multiplo){comboTemas+=""}if(yui===false||incluiVazio===true){comboTemas+=""}for(i=0;i"+nome+""}}comboTemas+="";temp={dados:comboTemas,tipo:"dados"}}else{if(tipoCombo==="poligonosSelecionados"||tipoCombo==="selecionados"||tipoCombo==="pontosSelecionados"){temp={dados:'
Nenhum tema encontrado. Selecionar...
',tipo:"mensagem"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")};if(tipoCombo==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="ligadosComTabela"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"menor",temp);temp2=i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"igual",temp);monta(temp1.concat(temp2))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="locais"){i3GEO.php.listaTemasEditaveis(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}if(tipoCombo==="editavel"){temp=i3GEO.arvoreDeCamadas.filtraCamadas("editavel","SIM","igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(temp)}if(tipoCombo==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="pontosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="pontos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naoraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",4,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",5,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",6,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",7,"diferente",temp);monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"diferente",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naolinearSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",1,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="linhaDoTempo"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("linhadotempo","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo===""){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type","","diferente",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}},checkCombo:function(id,nomes,valores,estilo,funcaoclick,ids,idschecked){var temp,i,combo="",n=valores.length;if(n>0){combo="

";for(i=0;i"}else{combo+=""}}combo+="
"+nomes[i]+"
"+nomes[i]+"
"}return combo},valoresCheckCombo:function(id){var el=$i(id),res=[],n,i;if(el){el=el.getElementsByTagName("input");n=el.length;for(i=0;i2){$i(onde).innerHTML="buscando temas..."}if(arguments.length===3){nome=""}var monta,temp,temp1,n,i;monta=function(retorno){try{var i,comboTemas,n,nome;if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){comboTemas="";for(i=0;i";comboTemas+=""}comboTemas+="
 
";temp={dados:comboTemas,tipo:"dados"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")}catch(e){}};if(tipoLista==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="polraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);n=temp1.length;for(i=0;i3&&$i(onde)){$i(onde).innerHTML="buscando itens..."}if(arguments.length!==5){nome=""}var monta=function(retorno){var ins,temp,i,nm;if(retorno.data!==undefined){ins=[];ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'

Ocorreu um erro
',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaItensTema(monta,tema)},comboValoresItem:function(id,tema,itemTema,funcao,onde){if(arguments.length===5){$i(onde).innerHTML="buscando valores..."}var monta=function(retorno){var ins=[],i,pares,j,valoresSort=[];if(retorno.data!==undefined){ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaValoresItensTema(monta,tema,itemTema)},comboFontes:function(id,onde){$i(onde).innerHTML="buscando fontes...";var monta=function(retorno){var ins="",temp,i,dados;if(retorno.data!==undefined){ins+=""}$i(onde).innerHTML=ins};i3GEO.php.listaFontesTexto(monta)},comboSimNao:function(id,selecionado){var combo="";return(combo)},checkItensEditaveis:function(tema,funcao,onde,size,prefixo,ordenacao){if(!ordenacao||ordenacao==""){ordenacao="nao"}if(onde!==""){$i(onde).innerHTML=""+$trad("x65")+""}var monta=function(retorno){var ins=[],i,temp,n;if(retorno.data!==undefined){if(ordenacao==="sim"){ins.push("")}else{ins.push("
"+$trad("x64")+"Ordem
")}n=retorno.data.valores.length;for(i=0;i");ins.push("");if(ordenacao==="sim"){ins.push("")}else{ins.push("")}ins.push("")}ins.push("
"+$trad("x64")+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
'+$trad("x66")+'
',tipo:"erro"}}funcao.call(this,temp)};i3GEO.php.listaItensTema(monta,tema)},radioEpsg:function(funcao,onde,prefixo,marcado){var c;if(arguments.length===2){$i(onde).innerHTML="buscando..."}c="checked";if(marcado&&marcado==="nao"){c=""}var monta=function(retorno){var ins=[],i,n,temp;if(retorno.data!==undefined){ins.push("");n=retorno.data.length;for(i=0;i");c="";ins.push("")}ins.push("
"+retorno.data[i].nome+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro
',tipo:"erro"}}funcao(temp)};i3GEO.php.listaEpsg(monta)},comboEpsg:function(idCombo,onde,funcaoOnChange,valorDefault){onde=$i(onde);onde.innerHTML="buscando...";var monta=function(retorno){var ins=[],i,n;if(retorno.data!==undefined){n=retorno.data.length;ins.push("");ins=ins.join('');onde.innerHTML=ins;$i(idCombo).value=valorDefault}else{onde.innerHTML='
Ocorreu um erro
'}};i3GEO.php.listaEpsg(monta)},proximoAnterior:function(anterior,proxima,texto,idatual,container,mantem,onde){var temp=$i(idatual),botoes="",ndiv=document.createElement("div"),nids,i;if(!mantem){mantem=false}if(temp&&mantem==false){$i(container).removeChild(temp)}$i(container).style.backgroundColor="white";botoes="";if(anterior!==""){botoes+=""}if(proxima!==""){botoes+=""}botoes+="
";var ativaBotoes=function(anterior,proxima,idatual){var i;new YAHOO.widget.Button(idatual+"anterior_",{onclick:{fn:function(){eval(anterior+"()")},lazyloadmenu:true}});new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn:function(){eval(proxima+"()")},lazyloadmenu:true}});i=$i(idatual+"proxima_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_avanca.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}i=$i(idatual+"anterior_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_volta.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}};if(onde){$i(onde).innerHTML=botoes}else{texto=texto+"

"+botoes}if(!document.getElementById(idatual)){ndiv.id=idatual;ndiv.innerHTML=texto;$i(container).appendChild(ndiv)}ativaBotoes(anterior,proxima,idatual);temp=$i(container).getElementsByTagName("div");nids=temp.length;for(i=0;i=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}box1=box1i;box2=box2i;coordx=box1[0]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}return false},abreColourRamp:function(janelaid,elemento,ncores,temaSel,displayComboTemas){var janela,ins,novoel,wdocaiframe,temp,fix=false,wsrc=i3GEO.configura.locaplic+"/ferramentas/colourramp/index.php?ncores="+ncores+"&doc="+janelaid+"&elemento="+elemento+"&locaplic="+i3GEO.configura.locaplic,nx="",texto="",id="i3geo_janelaCorRamp",classe="hd";if(!temaSel){temaSel=""}if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}ins='
';ins+="";if(i3GEO&&i3GEO.arvoreDeCamadas){ins+="
------
"}ins+="   "+texto;ins+='
';ins+='';ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCorRamp";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCorRampi");wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="380px";wdocaiframe.style.width="100%";wdocaiframe.style.border="0px solid white";if(nx===""||nx==="center"){fix=true}janela=new YAHOO.widget.Panel(id,{height:"430px",modal:false,width:"280px",fixedcenter:fix,constraintoviewport:true,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe;if($i("i3geo_janelaCorRampComboCabeca")){temp=function(){var p,tema=$i("i3geo_janelaCorRampComboCabecaSel").value,funcao=function(retorno){parent.frames["i3geo_janelaCorRampi"].document.getElementById("ncores").value=retorno.data.length};if(tema!==""){i3GEO.mapa.ativaTema(tema);p=i3GEO.configura.locaplic+"/ferramentas/legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=editalegenda&opcao=edita&tema="+tema;i3GEO.util.ajaxGet(p,funcao);cp=new cpaint()}};i3GEO.janela.comboCabecalhoTemas("i3geo_janelaCorRampComboCabeca","i3geo_janelaCorRampComboCabecaSel","none","ligados",temp,temaSel)}},localizai3GEO:function(){var scriptLocation="",scripts=document.getElementsByTagName('script'),i=0,index,ns=scripts.length,src;for(i=0;i-1)&&(index+"/js/i3geo.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geo.js".length);break}index=src.lastIndexOf("/js/i3geonaocompacto.js");if((index>-1)&&(index+"/js/i3geonaocompacto.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geonaocompacto.js".length);break}}}if(i3GEO.configura){i3GEO.configura.locaplic=scriptLocation}return scriptLocation},removeChild:function(id,el){var j=$i(id);if(j){if(!el){el=j.parentNode}el.removeChild(j)}},defineValor:function(id,prop,valor){var o=$i(id);if(o){try{$i(id)[prop]=valor}catch(e){}}},in_array:function(x,matriz){var txt=" "+matriz.join(" ")+" ";var er=new RegExp(" "+x+" ","gim");return((txt.match(er))?true:false)},timedProcessArray:function(items,process,callback){var todo=items.concat();setTimeout(function(){var start=+new Date();do{process(todo.shift())}while(todo.length>0&&(+new date()-start<50));if(todo.length>0){setTimeout(arguments.callee,25)}else{callback(items)}},25)},multiStep:function(steps,args,callback){var tasks=steps.concat();setTimeout(function(){var task=tasks.shift(),a=args.shift();task.apply(null,a||[]);if(tasks.length>0){setTimeout(arguments.callee,25)}else{callback()}},25)},tamanhoBrowser:function(){var viewportwidth,viewportheight;if(typeof window.innerWidth!='undefined'){viewportwidth=window.innerWidth,viewportheight=window.innerHeight}else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0){viewportwidth=document.documentElement.clientWidth,viewportheight=document.documentElement.clientHeight}else{viewportwidth=document.getElementsByTagName('body')[0].clientWidth,viewportheight=document.getElementsByTagName('body')[0].clientHeight}viewportwidth=viewportwidth-i3GEO.util.getScrollerWidth();return[viewportwidth,viewportheight]},detectaTablet:function(){var p,c=DetectaMobile("DetectTierTablet");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},detectaMobile:function(){var p,c=DetectaMobile("DetectMobileLong");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},calculaDPI:function(){var novoel=document.createElement("div"),valor=72;novoel.style.height="1in";novoel.style.left="-100%";novoel.style.position="absolute";novoel.style.top="-100%";novoel.style.width="1in";document.body.appendChild(novoel);if(novoel.offsetHeight){valor=novoel.offsetHeight}document.body.removeChild(novoel);return valor},ajustaDocType:function(){try{if(document.implementation.createDocumentType){var newDoctype=document.implementation.createDocumentType('html','-//W3C//DTD XHTML 1.0 Transitional//EN','http://www.w3.org/TR/html4/loose.dtd');if(document.doctype){document.doctype.parentNode.replaceChild(newDoctype,document.doctype)}}}catch(e){}},versaoNavegador:function(){if(navm&&navigator.userAgent.toLowerCase().indexOf('msie 8.')>-1){return"IE8"}if(navn&&navigator.userAgent.toLowerCase().indexOf('3.')>-1){return"FF3"}return""},decimalPlaces:function(f,l){var ret="",str=f.toString(),array=str.split("."),i;if(array.length==2){ret+=array[0]+".";for(i=0;i=array[1].length)ret+='0';else ret+=array[1][i]}}else if(array.length==1){ret+=array[0]+".";for(i=0;i=-180){point=new ol.geom.Point([temp[0]*1,temp[1]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext=metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2]*1,temp[3]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext+=sep+metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},extOSM2Geo:function(ext,retornaArray){var point,temp,sep;sep=" ";if(typeof ext=="object"){return i3GEO.util.projOSM2Geo(ext)}if(i3GEO.Interface.openlayers.googleLike===true){temp=ext.split(sep);if(temp===1){sep=",";temp=ext.split(sep)}if(temp[0]*1>=180||temp[0]*1<=-180){point=new ol.geom.Point([temp[0],temp[1]]);point.transform("EPSG:3857","EPSG:4326");ext=point.getCoordinates()[0]+sep+point.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2],temp[3]]);point.transform("EPSG:3857","EPSG:4326");ext+=sep+point.getCoordinates()[0]+sep+point.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},projOSM2Geo:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:3857","EPSG:4326");return clone}else{return obj}},projGeo2OSM:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:4326","EPSG:3857");return clone}else{return obj}},navegadorDir:function(obj,listaShp,listaImg,listaFig,retornaDir){if(!obj){listaShp=true;listaImg=true;listaFig=true;retornaDir=false}var temp=function(){i3GEOF.navegarquivos.iniciaDicionario(obj,listaShp,listaImg,listaFig,retornaDir)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorDir()","navegarquivos","navegarquivos","index.js",temp)},navegadorPostgis:function(obj,conexao,tipo){if(!obj){conexao=""}if(!tipo){tipo="sql"}var temp=function(){i3GEOF.navegapostgis.iniciaDicionario(obj,conexao,tipo)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorPostgis()","navegapostgis","navegapostgis","index.js",temp)},base64encode:function(str){var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out},base64decode:function(str){var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(iaqui. Qrcode mobile",en:"I3geo is a open source software! Click to download.",es:"I3Geo es software libre!. Descargar"}],"p2":[{pt:"Filtro de cores",en:"Image type",es:"Tipo de imagen"}],"p3":[{pt:"Legenda",en:"Legend",es:"Leyenda"}],"p4":[{pt:"Escala",en:"Scale",es:"Escala"}],"p5":[{pt:"Tamanho",en:"Size",es:"Tamaño"}],"p6":[{pt:"Ativa/desativa entorno",en:"Enable/Disable Border",es:"Activar/desactivar entorno"}],"p7":[{pt:"Ativa/desativa logo",en:"Enable/Disable Logo",es:"Activar/desactivar Logo"}],"p8":[{pt:"Cor da selecao",en:"Color of Selection",es:"Color de la selección"}],"p9":[{pt:"Cor do fundo",en:"Background color",es:"Color de fondo"}],"p10":[{pt:"Grade de coordenadas",en:"Graticule",es:"Gratíla"}],"p11":[{pt:"Template",en:"Template",es:"Plantilla"}],"p12":[{pt:"Temporizador",en:"Timer",es:"Temporizador"}],"p13":[{pt:"Propriedades",en:"Properties",es:"Propiedades"}],"p14":[{pt:"Aplicar",en:"Apply",es:"Aplicar"}],"p15":[{pt:"Formato da imagem do mapa",en:"Format of Image Map",es:"Formato de la imagen del mapa"}],"p16":[{pt:"Fundo",en:"Base layers",es:"Capas Base"}],"p17":[{pt:"Imprime legenda",en:"Enable legend",es:"Activar Leyenda"}],"p18":[{pt:"Não imprime a legenda",en:"Disable legend",es:"Desactivar Leyenda"}],"p19":[{pt:"Ativa ou desativa a legenda de um tema na opção de impressão do mapa",en:"Enable or disable the legend of a theme in the print option of the map",es:"Activa o desactiva la leyenda de un tema en la opción de impresión del mapa"}],"p20":[{pt:"Tela remota",en:"Remote screen",es:"Pantalla remota"}],"p21":[{pt:"Animação",en:"Animation",es:"Animación"}],"s1":[{pt:"Ajuda",en:"Help",es:"Ayuda"}],"s2":[{pt:"Análise",en:"Analysis",es:"Análisis"}],"s3":[{pt:"Janelas",en:"Windows",es:"Ventanas"}],"s4":[{pt:"Arquivo",en:"Files",es:"Archivo"}],"s5":[{pt:"Propriedades",en:"Properties",es:"Propiedades"}],"u1":[{pt:"Sobre o i3Geo",en:"About i3Geo",es:"Acerca de i3Geo"}],"u2":[{pt:"Doc. dos códigos",en:"Doc. of the codes",es:"Doc. de los códigos"}],"u3":[{pt:"WikiBook",en:"WikiBook",es:"WikiBook"}],"u4":[{pt:"Tutoriais",en:"Tutorials",es:"Tutoriales"}],"u4a":[{pt:"Manual do usuário",en:"User manual",es:"Manual de usuario"}],"u5":[{pt:"Blog",en:"Blog",es:"Blog"}],"u5a":[{pt:"Software público",en:"Software público Brazil",es:"Software público Brasil"}],"u5b":[{pt:"Lista de funções",en:"Function list",es:"Lista de funciones"}],"u5c":[{pt:"Redes sociais",en:"Social networks",es:"Redes sociales"}],"u6":[{pt:"Geometrias",en:"Geometries",es:"Geometrías"}],"u7":[{pt:"Grade de polígonos",en:"Polygon grid",es:"Grado de polígonos"}],"u8":[{pt:"Grade de pontos",en:"Grid of Points",es:"Gratíla de puntos"}],"u9":[{pt:"Grade de hexágonos",en:"Grid of Hexagons",es:"Gratíla de hexágonos"}],"u10":[{pt:"Entorno(Buffer)",en:"Buffer",es:"Area Influencia (Buffer)"}],"u11":[{pt:"Centróide",en:"Centroid",es:"Centroide"}],"u11a":[{pt:"Distância entre pontos",en:"Distance between points",es:"Distancia entre puntos"}],"u12":[{pt:"N pontos em poligono",en:"N points in polygon",es:"N puntos en polígono"}],"u13":[{pt:"Ponto em poligono/raster",en:"Point in polygon/raster",es:"Punto en polígono/raster"}],"u14":[{pt:"Distribuição de pontos",en:"Points distribution",es:"Distribución de puntos"}],"u15":[{pt:"Barras de ferramentas",en:"Toolbars",es:"Barras de herramientas"}],"u15a":[{pt:"Ferramentas",en:"Tools",es:"Herramientas"}],"u16":[{pt:"Janela de mensagens",en:"Message window",es:"Ventana de mensajes"}],"u17":[{pt:"Salvar mapa",en:"Save map",es:"Guardar mapa"}],"u18":[{pt:"Carregar mapfile local",en:"Load mapfile",es:"Cargar mapfile"}],"u19":[{pt:"Pegar imagens",en:"Get pictures",es:"Captar imágenes"}],"u20":[{pt:"Converter em WMS e WMC",en:"Convert to WMS and WMC",es:"Convertir en WMS y WMC"}],"u20a":[{pt:"Converter em KML",en:"Convert to KML",es:"Convertir en KML"}],"u21":[{pt:"Gerador de links",en:"Link generator",es:"Generador de enlaces"}],"u22":[{pt:"Grade",en:"Graticule",es:"Gratíla"}],"u23":[{pt:"Ponto",en:"Point",es:"Punto"}],"u24":[{pt:"Polígono",en:"Polygon",es:"Polígonos"}],"u25":[{pt:"Dissolve",en:"Dissolve",es:"Disolver"}],"u26":[{pt:"Agrupa",en:"Group",es:"Agrupar"}],"u27":[{pt:"Outros",en:"Others",es:"Otros"}],"u28":[{pt:"Centro médio",en:"Middle center",es:"Centro medio"}],"u29":[{pt:"Editor vetorial",en:"Vector editor",es:"Editor vetorial"}],"t1":[{pt:"Camadas",en:"Layers",es:"Capas"}],"t2":[{pt:"Arraste o tema aqui ou clique para excluir",en:"Drag the layer here or make click to remove",es:"Arrastre el tema aquí ó haga clic para excluir"}],"t2a":[{pt:"Filtra a lista de camadas",en:"Filters the list of layers",es:"Filtra la lista de capas"}],"t2b":[{pt:"Abre a legenda do mapa",en:"Opens the map legend",es:"Despliega la leyenda del mapa"}],"t3":[{pt:"Clique para ligar ou desligar esse tema, mostrando-o ou não no mapa. Após alterar o estado do tema, aguarde alguns instantes para o mapa ser redesenhado, ou clique no botão aplicar que será mostrado.",en:"Click to enable or disable this theme, showing it or not on the map. After changing the status of the theme, wait a few moments to get the map to be reloaded, or click the Apply button that will be display.",es:"Haga clic para activar o desactivar este tema, mostrándolo o no en el mapa. Después de cambiar el estado del tema, espere algunos instantes para que el mapa sea recargado, o haga clic en el botón aplicar que se mostrará."}],"t3a":[{pt:"Ligar todos os temas",en:"Turn on all layers",es:"Activar todos los temas"}],"t3b":[{pt:"Desligar todos os temas",en:"Turn off all layers",es:"Desactivar todos los temas"}],"t4":[{pt:"Limpa seleção",en:"Clear selection",es:"Limpia la selección"}],"t4a":[{pt:"Zoom para a seleção",en:"Zoom to selection",es:"Zoom a la selección"}],"t5":[{pt:"Limpa seleção existente nesse tema",en:"Clear selection existing in this theme",es:"Limpia la selección existente en este tema"}],"t6":[{pt:"Clique para fazer o download desse tema no formato shapefile",en:"Click to download this theme in shapefile format",es:"Haga clic para descargar este tema en formato shape"}],"t7":[{pt:"clique e arraste",en:"Dragging",es:"Haga clic y arrastre"}],"t7a":[{pt:"Clique e arraste para mudar a ordem. Arraste e solte na lixeira para remover. Aguarde para ver a legenda.",en:"Click and Dragg to rearrange order. Drag and drop to remove. Please to wait to see the legend",es:"Haga clic y arrastre para cambiar el orden. Arrastre y suelte remover. Aguarde para ver la leyenda."}],"t8":[{pt:"arraste para mudar a ordem",en:"drag to change the order",es:"Arrastre para cambiar el orden"}],"t9":[{pt:"Compatível com a escala",en:"The scale of the theme is compatible with the scale of the map",es:"La escala del tema es compatible con la escala del mapa"}],"t10":[{pt:"Incompatível com a escala",en:"The scale of the theme is incompatible with the scale of the map",es:"La escala del tema es incompatible con la escala del mapa"}],"t11":[{pt:"Escala não conhecida",en:"The scale of the layer is unknown",es:"La escala del tema no es conocida"}],"t12":[{pt:"Excluir",en:"Delete",es:"Eliminar"}],"t12a":[{pt:"Clique para excluir esse tema do mapa.",en:"Delete this layer of the map.",es:"Haga clic para excluir este tema del mapa"}],"t13":[{pt:"Sobe",en:"Up",es:"Subir"}],"t14":[{pt:"Clique para subir esse tema na ordem de desenho",en:"Click to move up the layer in design order",es:"Haga clic para subir ese tema en la orden de diseño"}],"t15":[{pt:"Desce",en:"Down",es:"Bajar"}],"t16":[{pt:"Clique para descer esse tema na ordem de desenho",en:"Click to move down the layer in design order",es:"Haga clic para bajar este tema en la orden de diseño"}],"t17":[{pt:"Zoom para o tema",en:"Zoom to layer",es:"Zoom al tema"}],"t18":[{pt:"Clique para ajustar o mapa de forma a mostrar todo o tema",en:"Zoom all",es:"Zoom a todo"}],"t18a":[{pt:"Opções e propriedades",en:"Options",es:"Opciones"}],"t18b":[{pt:"Legenda",en:"Legend",es:"Leyenda"}],"t19":[{pt:"Altera a transparência do tema, possibilitando que as camadas inferiores possam ser vistas.",en:"Change the layer transparency. It make possible to see inferior layers",es:"Altera la transparencia del tema, haciendo posible que las capas inferiores puedan verse"}],"t20":[{pt:"Opacidade",en:"Opacity",es:"Opacidad"}],"t22":[{pt:"Localize elementos no tema com base em seus atributos descritivos.",en:"Find elements on the layer based on their descriptive attributes.",es:"Ubique elementos en el tema en base a sus atributos descriptivos"}],"t23":[{pt:"Procurar",en:"Search...",es:"Buscar..."}],"t24":[{pt:"Crie uma nova camada no mapa para apresentar textos descritivos sobre esse tema, tendo como base a tabela de atributos.",en:"Create a new layer to display descriptive texts about this theme, based on table of attributes.",es:"Crear una nueva capa en el mapa para presentar textos descriptivos sobre este tema, teniendo como base la tabla de atributos"}],"t25":[{pt:"Etiquetas baseadas em atributos",en:"Label...",es:"Etiquetas.."}],"t26":[{pt:"Defina as etiquetas que serão mostradas quando o mouse é estacionado sobre um elemento desse tema.",en:"Define the label that will be shown when the mouse is over one element of this theme.",es:"Defina las etiquetas que se mostrarán cuando el ratón se estaciona sobre un elemento de este tema"}],"t27":[{pt:"Ativar etiquetas",en:"Label...",es:"Etiquetas..."}],"t28":[{pt:"Insira um filtro nesse tema para mostrar apenas determinadas informações, com base na tabela de atributos.",en:"Insert a Filter in this theme for show specific information, based on the table of attributes.",es:"Inserte un filtro en este tema para mostrar solo determinadas informaciones, con base en la tabla de atributos"}],"t29":[{pt:"Filtrar",en:"Filter...",es:"Filtrar..."}],"t30":[{pt:"Veja a tabela de atributos relacionada a esse tema.",en:"See the table of attributes related to this theme.",es:"Vea la tabla de atributos relacionada con este tema"}],"t31":[{pt:"Tabela com os dados",en:"Table of attributes...",es:"Tabla de atributos..."}],"t32":[{pt:"Abre o editor de legenda, permitindo a alteração da forma de representação desse tema.",en:"Opens the legend editor, allowing the modification of the form of representation of this theme.",es:"Abre el editor de leyenda, permitiendo la alteración de la forma de representación de este tema"}],"t33":[{pt:"Editar legenda",en:"Edit Legend...",es:"Editar leyenda..."}],"t34":[{pt:"Mostra os dados desse tema em uma janela que acompanha o mouse.",en:"Shows the data of this layer in a window that tracks the mouse.",es:"Muestra los datos de este tema en una ventana que acompaña el ratón"}],"t35":[{pt:"Mostra em janela",en:"Show in window",es:"Mostrar en la ventana..."}],"t36":[{pt:"tema visível apenas em determinadas escalas",en:"Layer is visible in specific scales",es:"Capa visible en ciertas escalas"}],"t37":[{pt:"Gráfico",en:"Graphic",es:"Gráfico"}],"t37a":[{pt:"Tema com gráficos",en:"Theme with chart",es:"Tema con Gráfico"}],"t37b":[{pt:"Gráfico interativo",en:"Interactive chart",es:"Gráfico Interactivo"}],"t38":[{pt:"Exporta a legenda para o padrão SLD.",en:"Export the legend to standard SLD.",es:"Exporta la leyenda para estándar SLD."}],"t39":[{pt:"Exportar SLD",en:"Export to SLD...",es:"Exportar a SLD..."}],"t40":[{pt:"Abre a ferramenta que permite alterar o SQL de acesso aos dados",en:"Opens the tool that lets you change the SQL data access",es:"Abre una herramienta que permite alterar el SQL de acceso a los datos"}],"t41":[{pt:"Editar SQL",en:"Edit SQL...",es:"Editar SQL..."}],"t42":[{pt:"Efeito cortina",en:"Curtain efect...",es:"Efecto Cortina..."}],"t43":[{pt:"Aplicar SLD",en:"Apply SLD...",es:"Aplicar SLD..."}],"t44":[{pt:"Salvar mapfile",en:"Save mapfile",es:"Guardar mapfile"}],"t45":[{pt:"Comentar",en:"Comment",es:"Comentar"}],"t46":[{pt:"Mais populares",en:"Most popular",es:"Mas populares"}],"t48":[{pt:"Temporizador",en:"Timer",es:"Temporizador"}],"t49":[{pt:"Mapa temático 3D",en:"Thematic map 3D",es:"Mapa temático 3D"}],"a1":[{pt:"Procurar tema:",en:"Search layer:",es:"Buscar Tema:"}],"a2":[{pt:"Upload de shape file",en:"Upload shape file",es:"Subir archivo shape"}],"a2b":[{pt:"Upload de DBF ou CSV",en:"Upload DBF or CSV file",es:"Subir archivo DBF o CSV"}],"a3":[{pt:"Download de dados",en:"Data download",es:"Descarga de datos"}],"a3a":[{pt:"Importar Web Map Context",en:"Import Web Map Context",es:"Importar Web Map Context"}],"a4":[{pt:"Conectar com servidor WMS",en:"Connect to WMS Server",es:"Conectar al servidor WMS"}],"a4b":[{pt:"Conectar com servidor WMS-T",en:"Connect to WMS-T Server",es:"Conectar al servidor WMS-T"}],"a5":[{pt:"Conectar com GeoRss",en:"Connect to GeoRss",es:"Conectar con GeoRss"}],"a5a":[{pt:"Nuvem de tags",en:"Tags cloud",es:"Nube de Tags"}],"a6":[{pt:"Acesso aos arquivos do servidor",en:"Access files in server directory",es:"Acceso a los archivos del servidor"}],"a7":[{pt:"Temas",en:"Layers",es:"Temas"}],"a8":[{pt:"Clique no box ao lado do tema para ligar ou desligar, mostrando-o ou não no mapa. Após alterar o estado do tema, aguarde alguns instantes para o mapa ser redesenhado, ou clique no botão aplicar que será mostrado.",en:"Click to connect or disconnect this layer, showing it or not on the map. After changing the layer status, wait a few moments to be reloaded on the map, or click in the button Apply that will be shown.",es:"Haga clic para conectar o desconectar este tema, mostrándolo o no en el mapa. Después de alterar el estado del tema, espere algunos instantes para que el mapa sea recargado, o haga clic en el botón aplicar que aparecerá"}],"a9":[{pt:"Fonte",en:"Font",es:"Fuente"}],"a10":[{pt:"código:",en:"Code",es:"Código"}],"a11":[{pt:"Sistemas",en:"Systems",es:"Sistemas"}],"a12":[{pt:"Abrir sistema",en:"Open system",es:"Abrir sistema"}],"a13":[{pt:"Abrir no Google Earth",en:"Open in Google Earth",es:"Abrir en Google Earth"}],"a14":[{pt:"Upload SHP, CSV...",en:"Upload SHP, CSV...",es:"Subir SHP, CSV..."}],"a15":[{pt:"Conexões",en:"Conections",es:"Conexiones"}],"a16":[{pt:"Serviços",en:"Services",es:"Servicios"}],"g1":[{pt:"Temas",en:"Layer",es:"Temas"}],"g1a":[{pt:"Catálogo",en:"Catalog",es:"Catálogo"}],"g2":[{pt:"Adiciona",en:"Add",es:"Agregar"}],"g3":[{pt:"Legenda",en:"Legend",es:"Leyenda"}],"g4":[{pt:"Mapas",en:"Maps",es:"Mapas"}],"g4a":[{pt:"Mapa",en:"Map",es:"Mapa"}],"o1":[{pt:"Aguarde...",en:"Wait...",es:"Espere..."}],"o2":[{pt:"Busca rápida",en:"Quick search",es:"Búsqueda rápida"}],"o3":[{pt:"Lendo imagem...",en:"Loading images...",es:"Leyendo imagen..."}],"o4":[{pt:"Aguarde...abrindo lente",en:"Wait...Opening lens...",es:"Espere...abriendo lente"}],"o5":[{pt:"Aguarde...iniciando",en:"Wait...initializing",es:"Espere...iniciando"}],"o6":[{pt:"dinâmico",en:"Dynamic",es:"Dinámico"}],"d1":[{pt:"Digite as coordenadas de um ponto (X=longitude e Y=latitude) para localiz´-lo no mapa. O centro do mapa ser´ deslocado para o ponto digitado.",en:"Enter the coordinates of a point (X=longitude and Y=latitude) to localize it on the map. The center of the map is move to the point entered.",es:"Digite las coordenadas de un punto (X=longitud e Y=latitud) para ubicarlas en el mapa. El centro del mapa se desplazará para el punto digitado."}],"d2":[{pt:"Altera a escala do mapa ajustando-a para mostrar a mesma abrangência geográfica da inicialização.",en:"Change the scale of the map adjusting it to show the same initial geographical cover.",es:"Modifica la escala del mapa ajustándola para mostrar la misma área geográfica inicial"}],"d2t":[{pt:"Enquadramento inicial",en:"Initial extent",es:"Encuadre inicial"}],"d3":[{pt:"Amplia o mapa - desloca o ponto clicado para centro da tela ou amplia a região indicada por um retângulo. Após ativada, clique e arraste o mouse sobre o mapa na área de zoom desejada.",en:"Extends the map - places the point where you clicked in the center of the screen or extends to the region indicated by a rectangle. Once activated, click and drag the mouse over the map in the desired zoom area",es:"Amplía el mapa - coloca el punto donde se hizo clic en el centro de la pantalla o amplía a la región indicada con un rectángulo. Después de activarla, haga clic y arrastre el ratón sobre el mapa en el área de zoom deseada"}],"d3t":[{pt:"clique e arraste para ampliar",en:"Click and drag to enlarge",es:"Haga click y arraste para ampliar"}],"d4":[{pt:"Desloca a região visível no mapa. Após ativada, clique e arraste o mouse sobre o mapa para deslocar a região visível.",en:"Moves the visible region on the map. Once activated, click and drag the mouse over the map to move the visible region.",es:"Desplaza la región visible en el mapa. Después de activada, haga clic y arrastre el ratón sobre el mapa para mover la región visible."}],"d4t":[{pt:"clique e arraste para deslocar",en:"Click and drag to move",es:"Haga Click y arraste para mover"}],"d5":[{pt:"Amplia o mapa tendo como referência o centro atual.",en:"Magnify the map with the reference the current center.",es:"Amplía el mapa teniendo como referencia el centro actual"}],"d5t":[{pt:"aproximar",en:"zoom in",es:"Acercar"}],"d6":[{pt:"Reduz o mapa tendo como referência o centro atual.",en:"Reduces the map with the reference of the current center.",es:"Reduce el mapa teniendo como referencia el centro actual"}],"d6t":[{pt:"afastar",en:"Zoom out",es:"Alejar",it:"afastar"}],"d7":[{pt:"Mostra informações sobre um ponto no mapa. Após ativada, clique sobre o mapa.",en:"Displays information about a point on the map. Once activated, click on the map.",es:"Muestra información sobre un punto en el mapa. Después de activarla haga clic sobre el mapa."}],"d7t":[{pt:"Clique para identificar",en:"Click to identify",es:"Click para identificar"}],"d7a":[{pt:"Mostra informações resumidas sobre um ponto clicado no mapa. Não é necessário clicar nesse ícone para ativar, basta clicar no mapa a qualquer tempo.",en:"",es:""}],"d7at":[{pt:"etiqueta",en:"Label",es:"Etiqueta"}],"d8":[{pt:"Mostra a extensão geográfica atual em coordenadas geográficas",en:"Shows the current extend in geographic coordinates",es:"Muestra la extensión geográfica actual en coordenadas geográficas"}],"d8t":[{pt:"Extensão atual",en:"Actual extent",es:"Extensió actual"}],"d9":[{pt:"Abre/fecha o mapa de referência",en:"Open/close the reference map ",es:"Abre/cierra el mapa de referencia"}],"d9t":[{pt:"mapa de referência",en:"Reference map",es:"Mapa de referencia"}],"d10":[{pt:"Digite o novo valor de escala e clique no botão aplicar para alterar a escala do mapa",en:"Enter the new value of scale and click the button Apply to change the scale of the map",es:"Digite el nuevo valor de escala y haga clic en el botón aplicar para modificar la escala del mapa"}],"d11":[{pt:"Busca dados na Wikipedia na abrangência atual do mapa. Faça um zoom no mapa antes de abrir essa opção. Regiôes muito extensas podem tornar a busca muito demorada",en:"Search data on Wikipedia in the current extend of the map. Make a zoom on the map before opening this option. Regions very extensive can make a very slow search ",es:"Busca datos en Wikipedia en el alcance actual del mapa. Haga zoom en el mapa antes de abrir esta opción. Regiones muy extensas pueden ocasionar una búsqueda muy lentas"}],"d11t":[{pt:"buscar na Wikipédia",en:"search in Wikipedia",es:"buscar na Wikipedia"}],"d12":[{pt:"Imprime o mapa",en:"Print the map",es:"Imprime el mapa"}],"d13":[{pt:"Localiza o IP do usuário no mapa",en:"Locates the user's IP on the map",es:"Ubica el IP del usuario en el mapa"}],"d14":[{pt:"Gera arquivo para 3D",en:"Generates file for 3D",es:"Genera archivo para 3D"}],"d15":[{pt:"Abre o Google Maps, mostrando uma imagem de satélite da região vista no mapa principal",en:"Open Google Maps, showing a satellite image of the region on the map",es:"Abre Google Maps, mostrando una imagen de satélite de la región en el mapa principal"}],"d15t":[{pt:"Google Maps",en:"Google Maps",es:"Google Maps"}],"d16":[{pt:"Pesquisa documentos na base de dados Scielo (dados preliminares)",en:"Search documents in the database Scielo (preliminary data)",es:"Buscar documentos en la base de datos Scielo (datos preliminares)"}],"d16t":[{pt:"Scielo",en:"Scielo",es:"Scielo"}],"d17":[{pt:"Projeto Confluence. Pontos de intersecção de coordenadas observadas em campo",en:"Confluence Project. Points of intersection of coordinates observed in field",es:"Proyecto Confluence. Puntos de intersección de coordenadas observadas en campo"}],"d17t":[{pt:"confluências",en:"Confluences",es:"Confluencias"}],"d18":[{pt:"Abre lente de ampliação",en:"Opens magnifying lens",es:"Abrir lupa"}],"d18t":[{pt:"lente",en:"lens",es:"lente"}],"d19":[{pt:"Coloca as guias em uma janela móvel",en:"Open the tabs in a window mobile",es:"Coloca las guías en una ventana móvil"}],"d20":[{pt:"Redesenha o mapa com as configuraçôes iniciais.",en:"Reload the map with the initial configurations.",es:"Recarga el mapa con las configuraciones iniciales"}],"d20t":[{pt:"reinicia",en:"restart",es:"reinicia",it:"reinicia"}],"d21":[{pt:"Mede a distância entre dois ou mais pontos clicados no mapa (menor distância). O cálculo de distância é aproximado e sua precisão depende da escala do mapa.",en:"It measures the distance between two or more clicked points on the map (shortest distance). The calculation of distance is approximate and their accuracy depends on the scale of the map.",es:"Mide la distancia entre dos o más puntos marcados en el mapa (menor distancia). El cálculo de distancia es aproximado y su precisión depende de la escala del mapa."}],"d21t":[{pt:"distância",en:"distance",es:"distancia"}],"d21a":[{pt:"Mede a área de um polígono desenhado na tela. O cálculo de área é aproximado e sua precisão depende da escala do mapa.",en:"It measures the area of a polgono drawn on the screen. The calculation of area is approximate and their accuracy depends on the scale of the map.",es:"Mide el área de un polígono dibujado sobre la pantalla. El cálculo del área es aproximado y su precisión depende de la escala del mapa."}],"d21at":[{pt:"área",en:"area",es:"área"}],"d22":[{pt:"Insere pontos no mapa em coordenadas geográficas. Ospontos incluídos podem ser transformados em linhas ou polígonos. Os pontos são armazenados em um tema temporário, podendo-se fazer o download do arquivo shapefile.",en:"Insert points on the map in geographical coordinates. The points included can be converted into lines or polygons. The points are stored in a temporary layer, and we can download it like shapefile.",es:"Inserte puntos en el mapa en coordenadas geográficas. Los puntos incluidos pueden transformarse en líneas o polígonos. Los puntos se almacenan en un tema temporal, pudiendo hacerse la descarga en formato de archivo shape."}],"d22t":[{pt:"inserir pontos",en:"insert points",es:"insertar puntos"}],"d23":[{pt:"Insere um gráfico no ponto clicado conforme os atributos existentes no tema escolhido. O tema deve possuir itens com valores numéricos na tabela de atributos.",en:"Insert a graphic of the existing attributes on the selected layer in the clicked point. The layer must have columns with numerical values in the table of attributes.",es:"Inserte un gráfico en el punto marcado según los atributos existentes en el tema seleccionado. El tema debe tener campos con valores numéricos en la tabla de atributos."}],"d23t":[{pt:"Clique gráfico",en:"",es:""}],"d24":[{pt:"Abre as ferramentas para seleção de elementos de um tema. Os elementos selecionados podem ser utilizados em outras operaçôes, como buffer e seleção por tema.",en:"Opens the tools to select elements of a layer. The elements selected can be used in other operations like buffer or selection by theme.",es:"Abre las herramientas para selección de elementos de un tema. Los elementos seleccionados pueden utilizarse en otras operaciones como áreas de influencia o selección por tema"}],"d24t":[{pt:"Selecionar",en:"Select",es:"Seleccionar"}],"d25":[{pt:"Insere texto no mapa clicando em um ponto. Utilize essa opção para adicionar informaçôes ao mapa.",en:"Insert text on the map by clicking on a point. Use this option to add information on the map.",es:"Inserte texto en el mapa haciendo clic en un punto. Utilice esta opción para agregar información al mapa"}],"d25t":[{pt:"Inserir texto",en:"Insert text",es:"Insertar texto"}],"d26":[{pt:"Escolha o visual para os botões e outras características visuais do mapa",en:"Choose the visual for the buttons and other map's visual characteristics",es:"Elija la vista para los botones y otras características visuales del mapa"}],"d27":[{pt:"Interface",en:"Interface",es:"Interface"}],"d28":[{pt:"Aguarde...gerando os arquivos",en:"Wait... generating files",es:"Espere... generando los archivos"}],"d29":[{pt:"Estações METAR",en:"METAR-Br Stations",es:"Estaciones METAR-Br"}],"d30":[{pt:"Linha do tempo",en:"Timeline",es:"Línea del tiempo"}],"d31":[{pt:"Não existe nenhuma camada com etiquetas ativas",en:"There is no layer with active labels",es:"No existe ninguna capa con etiquetas activas"}],"d32":[{pt:"Aplicativos",en:"Applications",es:"Aplicaciones"}],"ge1":[{pt:"Navegação com o mouse",en:"Mouse navigation",es:"Navegación con el ratón"}],"ge2":[{pt:"Barra de status",en:"Status bar",es:"Barra de estado"}],"ge3":[{pt:"Mapa de referência",en:"Reference map",es:"Mapa de referencia"}],"ge4":[{pt:"Escala e legenda",en:"Scale and legend",es:"Escala y leyenda"}],"ge5":[{pt:"Atmosfera",en:"Atmosphere",es:"Atmósfera"}],"ge6":[{pt:"Grade de coordenadas",en:"Coordinates grid",es:"Grilla de coordenadas"}],"ge7":[{pt:"Luz do sol",en:"Sunshine",es:"Luz del sol"}],"ge8":[{pt:"Limites políticos",en:"Political boundaries",es:"Límites políticos"}],"ge9":[{pt:"Construções em 3D",en:"Buildings in 3D",es:"Construciones en 3D"}],"ge10":[{pt:"Estradas",en:"Roads",es:"Carreteras"}],"ge11":[{pt:"Terreno",en:"Terrain",es:"Terreno"}],"x1":[{pt:"Página principal",en:"Home",es:"Inicio"}],"x2":[{pt:"Lista de menus",en:"Menu list",es:"Lista de menús"}],"x3":[{pt:"Miniaturas",en:"Thumbnails",es:"Miniaturas"}],"x4":[{pt:"Pesquisa na INDE",en:"Search in SDI of INDE-Br",es:"Buscar en IDE del INDE-Br"}],"x5":[{pt:"Editar subgrupos",en:"Edit subgroups",es:"Editar subgrupos"}],"x6":[{pt:"Editar temas",en:"Edit Theme",es:"Editar temas"}],"x7":[{pt:"opção visível apenas para editores",en:"option visible only for editors",es:"opción visible solo para editores"}],"x8":[{pt:"Sistema de administração",en:"Admin. System",es:"Sistema de administración"}],"x9":[{pt:"Editar árvore",en:"Edit tree",es:"Editar árbol"}],"x10":[{pt:"Editar menus do catálogo",en:"Edit menus",es:"Editar menus"}],"x11":[{pt:"Mostra a legenda em uma janela",en:"Show the legend in a window",es:"Muestra una leyenda en una ventana"}],"x13":[{pt:"&Acute;rvore de camadas não encontrada",en:"Tree layers not found",es:"Arboles de capas no se encuentra"}],"x14":[{pt:"sim",en:"si",es:"yes"}],"x15":[{pt:"não",en:"no",es:"no"}],"x16":[{pt:"Valor não definido",en:"Value not set",es:"Valor no establecido"}],"x17":[{pt:"Essa opção afeta apenas a impressão do mapa",en:"This option only affects the printing of the map",es:"Esta opción s&ocaute;lo afecta a la impresi&ocaute;n del mapa"}],"x18":[{pt:"Nome não definido",en:"El nombre no se ha definido",es:"Name was not defined"}],"x19":[{pt:"Comentários de",en:"Reviews",es:"Comentarios"}],"x20":[{pt:"Clique no mapa para desenhar o polígono",en:"Click the map to draw the polygon",es:"Haga clic en el mapa para dibujar el polígono"}],"x21":[{pt:"Essa operação não funciona nessa interface",en:"This operation does not work on this interface",es:"Esta operación no funciona en esta interfaz"}],"x22":[{pt:"Opção não disponível",en:"Option not available",es:"Opción no disponible"}],"x23":[{pt:"Direção",en:"",es:"Dirección"}],"x25":[{pt:"Método para calcular distâncias",en:"Method to calculate distances",es:"Método para calcular distancias"}],"x26":[{pt:"Voce quer mesmo encerrar a sessao?",en:"Do you really want to logout?",es:"Realmente desea salir?"}],"x27":[{pt:"Usuário",en:"User",es:"Usuario"}],"x28":[{pt:"Senha",en:"Password",es:"Contraseña"}],"x29":[{pt:"Enviar",en:"Send",es:"Enviar"}],"x30":[{pt:"Ativo",en:"Active",es:"Activo"}],"x31":[{pt:"Erro",en:"Error",es:"Erro"}],"x32":[{pt:"Recuperar senha",en:"Send password",es:"Enviar la contrasena"}],"x33":[{pt:"Escolha um tema da lista",en:"Choose a layer from the list",es:"Elegir un tema de la lista"}],"x34":[{pt:"Lugar",en:"Place",es:"Lugar"}],"x35":[{pt:"Escolha um tipo de busca nas propriedades",en:"Choose a search type in the properties",es:"Elija una forma de buscar en las propiedades"}],"x36":[{pt:"Digite uma palavra para busca!",en:"Enter a keyword to search!",es:"Introduzca una palabra clave para buscar!"}],"x37":[{pt:"Onde será feita a busca",en:"Where the search will be done",es:"Donde se hace la búsqueda"}],"x38":[{pt:"Serviços de busca externos",en:"External searchs services",es:"Servicios de búsqueda externos"}],"x39":[{pt:"Temas existentes no mapa",en:"Existing layers on the map",es:"Temas existentes en el mapa"}],"x40":[{pt:"Apenas os temas especialmente configurados pelo administrador do i3Geo podem receber operações de busca",en:"Only the layers specially configarated by the i3Geo administrator can receive search operations",es:"Sólo los temas especialmente configurados por el administrador del i3Geo pueden recibir las operaciones de búsqueda"}],"x41":[{pt:"Nada encontrado nos temas ou nenhum tema permite busca",en:"Nothing found in layers or none layer allows search",es:"No se encontró nada en los temas o ningúno tema permite búsqueda"}],"x42":[{pt:"Nada encontrado em ",en:"Nothing found at ",es:"No se encontró nada en "}],"x43":[{pt:"Erro ao acessar o serviço",en:"Error accessing the service",es:"Error de acceso al servicio"}],"x44":[{pt:"Nuvem Flash",en:"Cloud Flash",es:"Nube Flash"}],"x45":[{pt:"Diretórios",en:"Directories",es:"Directorios"}],"x46":[{pt:"Conexão WMS-T",en:"WMS-T connection",es:"Conexión WMS-T"}],"x47":[{pt:"Conexão GeoRSS",en:"GeoRSS connection",es:"Conexión WMS-T"}],"x48":[{pt:"Rota",en:"Route",es:"Ruta"}],"x49":[{pt:"Coordenadas aproximadas",en:"Approximate coordinates",es:"Coordenadas aproximadas"}],"x50":[{pt:"Feche para parar",en:"Close to stop",es:"Cierre para parar"}],"x51":[{pt:"Seleção",en:"Selection",es:"Selecci&ocute;n"}],"x52":[{pt:"Alterar senha",en:"Change password",es:"Cambiar contraseńa"}],"x53":[{pt:"Upload de WMC",en:"WMC upload",es:"Subir WMC"}],"x54":[{pt:"Perfil",en:"Profile",es:"Perfil"}],"x55":[{pt:"Salva o tema",en:"Save layer",es:"Guarda el tema"}],"x56":[{pt:"Toponímia",en:"Toponymy",es:"Toponimia"}],"x57":[{pt:"Cartogramas estatísticos",en:"Statistical cartograms",es:"Cartogramas estadísticos"}],"x58":[{pt:"Continua",en:"Continue",es:"Seguir"}],"x59":[{pt:"Localiza",en:"Locate",es:"Localiza"}],"x60":[{pt:"Cartogramas",en:"Cartograms",es:"Cartogramas"}],"x61":[{pt:"Filtra limite",en:"Filter limit",es:""}],"x62":[{pt:"Remover",en:"Remove",es:"Eliminar"}],"x63":[{pt:"Para salvar as configurações de uma camada,
utilize a opção existente na árvore de camadas no nó correspondente ao tema (basta expandir o tema para visualizar as opções)

",en:"To save the settings for a layer, use the option available in the layers tree corresponding to the theme node (just expand the layer to view options)",es:"Para guardar la configuración de un tema, utilice la opción disponible en la árbol de temas en el nodo correspondiente a lo tema (sólo ampliar el tema para ver las opciones)"}],"x64a":[{pt:"Congela a visão atual",en:"Freezes the current view",es:"Congela la vista actual"}],"x64":[{pt:"Item",en:"Item",es:"Item"}],"x65":[{pt:"Buscando ítens...",en:"Buscando ítens...",es:"Searching items..."}],"x66":[{pt:"Ocorreu um erro",en:"An error ocurred",es:"Ha ocurrido un error"}],"x67":[{pt:"Comunidade i3Geo",en:"i3Geo community",es:"Comunidad i3Geo"}],"x68":[{pt:"Versão",en:"Version",es:"Versió"}],"x69":[{pt:"Pressione a tecla SHIFT junto com o botão esquerdo do mouse e arraste para definir a área que será aproximada",en:"Press the SHIFT key along with the left mouse button and drag to define the area to be approximate",es:"Pulse la tecla SHIFT junto con el bot&oacurte;n izquierdo del rat&oacurte;n y arrastre para definir el &aacurte;rea a ser aproximado"}],"x70":[{pt:"Utilize os dedos em um movimento de pinça para definir a área que será aproximada ou afastada",en:"Use the fingers in a pincer movement to define the area to be zoomed in or out",es:"Utilice los dedos en un movimiento de pinzas para definir el área a ser aproximada o alejada"}],"x71":[{pt:"Aplicativos estatísticos cadastrados",en:"Registered statistical applications",es:"Aplicaciones estadísticas registrados"}],"x72":[{pt:"Lista de mapas cadastrados",en:"Registered map list",es:"Lista de los mapas registrados"}],"x73":[{pt:"Redirecionar para a versão adaptada para dispositivos móveis?",en:"Redirect to mobile version?",es:"Redireccionar a una versión adaptada para dispositivos móviles?"}],"x74":[{pt:"Fecha",en:"Close",es:"Cierra"}],"x75":[{pt:"Cancela",en:"Cancel",es:"Cancela"}],"x76":[{pt:"O tema já existe no mapa. Adiciona novamente?",en:"Layer already exists in the map. Add again?",es:"El tema ya existe en el mapa. Añade otra vez?"}],"x77":[{pt:"Nome do novo marcador",en:"New bookmark name",es:"Nombre del nuevo marcador"}],"x78":[{pt:"Copie os marcadores e cole em um editor para guardá-los",en:"Copy and paste the bookmarks in an editor to save",es:"Copie y pegue los marcadores en un editor para salvarlos"}],"x79":[{pt:"Marcadores",en:"Bookmarks",es:"Marcadores"}],"x80":[{pt:"Exportar",en:"Export",es:"Exportar"}],"x81":[{pt:"Importar",en:"Import",es:"Importar"}],"x82":[{pt:"Marcar região",en:"Mark region",es:"Marcar regió"}],"x83":[{pt:"Cole os marcadores para importá-los",en:"Paste the bookmarks to import",es:"Pegue los marcadores para importarlos"}],"x84":[{pt:"Exportar SHP",en:"Export SHP",es:"Exportar SHP"}],"x85":[{pt:"Visualizador de WMS da INDE-Br",en:"INDE-Br WMS viewer",es:"Visualizador de WMS de la INDE-Br"}],"x86":[{pt:"Preferências",en:"Preferences",es:"Preferencias"}],"x87":[{pt:"Limites e localidades",en:"Limits and places",es:"Límites y ubicaciones"}],"x88":[{pt:"Preferências",en:"Preferences",es:"Preferencias"}],"x89":[{pt:"Editar cadastro",en:"Edit registry",es:"Editar registro"}],"x90":[{pt:"Mapas cadastrados",en:"Registered maps",es:"Mapas registrados"}],"x91":[{pt:"Feche para parar. Desligue o tema para ver o efeito",en:"Close to stop. Disable the layer to see the effect",es:"Cierre para detener. Desactive el tema para ver el efecto"}],"x92":[{pt:"Escolha uma camada",en:"Select a layer",es:"Seleccione una capa"}],"x93":[{pt:"Localização do usuário",en:"User location",es:"Ubicación del usuario"}],"x94":[{pt:"Remove as figuras da tela",en:"Remove the pictures",es:"Retire las figuras"}],"x95":[{pt:"trecho",en:"stretch",es:"tramo"}],"x96":[{pt:"atual",en:"current",es:"corriente"}],"x97":[{pt:"total",en:"total",es:"total"}],"x98":[{pt:"perímetro",en:"perimeter",es:"perímetro"}],"x99":[{pt:"Cálculo não pode ser realizado. Falta carregar a API de geometria do GM",en:"The calculation cannot be performed. It is necessary to upload the API of GM geometry",es:"El cálculo no puede ser realizado. Falta cargar la API de geometría de GM"}],"x101":[{pt:"Cópia",en:"Copy",es:"Copia"}],"x102":[{pt:"Mapa de calor",en:"Heatmap",es:"Mapa de calor"}],"x103":[{pt:"Links para abrir o mapa",en:"Links to open the map",es:"Links para abrir el mapa "}],"x104":[{pt:"Mapa de agrupamentos",en:"Cluster map",es:"Mapa de agrupación"}],"x105":[{pt:"Navegação",en:"Browsing",es:"Navegación"}],"mais":[{pt:"Mais...",en:"More...",es:"Más..."}],"uploadArquivoGeo":[{pt:"Upload de arquivo geo",en:"Geo file Upload",es:"Carga del archivo geo"}],"conexaoServicoGeo":[{pt:"Conexão com serviços geo",en:"Connection to geo services ",es:"Conexión con servicios geo"}],"saikuAba":[{pt:"SAIKU - OLAP (abrir em nova aba)",en:"SAIKU - OLAP (open in new tab)",es:"SAIKU - OLAP (abrir en una nueva pestaña)"}],"saikuMapa":[{pt:"SAIKU - OLAP (abrir em janela interna)",en:"SAIKU - OLAP (open in internal window)",es:"SAIKU - OLAP (abrir en una ventana interna)"}],"refMapaAtual":[{pt:"Mapa atual",en:"Current map",es:"Mapa actual"}],"refMapaDinamico":[{pt:"Mapa dinâmico",en:"Dynamic map",es:"Mapa dinámico"}],"naoPermitido":[{pt:"Operacao nao autorizada para esse usuario",en:"Unauthorized operation for this user",es:"Operación no autorizada para ese usuario"}],"melhorcaminho":[{pt:"Melhor caminho (raster)",en:"Best way (raster)",es:"Mejor camino (raster)"}],"tolerancia":[{pt:"Tolerância de busca (em pixels)",en:"Search tolerance (in pixels)",es:"Tolerancia de búsqueda (en Pixeles)"}],"naoInstalado":[{pt:"Ferramenta não disponível nessa instalação do i3Geo",en:"Tool unavailable in this installation of i3geo",es:"Herramienta no disponible en esta instalación de i3geo"}],"variaEscala":[{pt:"Dependência da escala",en:"Scale dependency",es:"Dependencia de escala"}],"mostraTodosLegenda":[{pt:"Mostra tudo",en:"all",es:"todos"}],"mostraSoLegenda":[{pt:"Mostra só a legenda",en:"only legend",es:"sólo leyenda"}],"removerDoMapa":[{pt:"Remove a camada do mapa?",en:"Do you want to remove the layer from map?",es:"¿Se remueve la capa del mapa?"}],"dicaBuscaRapida":[{pt:"Abre uma janela flutuante com opções de busca de dados em serviços como o Google Maps ou nas camadas exsitentes no mapa",en:"It opens a window with options to search data in services like Google Maps or in the map existing layers",es:"Abre una ventana con opciones de búsqueda de datos en servicios como Google Maps o en las capas existentes en el mapa"}],"refresh":[{pt:"Refaz a árvore, reconstruindo os ícones e lista de camadas",en:"Remake the tree, rebuilding the icons and the layer list",es:"Vuelva a hacer el árbol, reconstruyendo los iconos y la lista de capas"}],"lixeira":[{pt:"Clique para ver a lista de camadas em uma janela flutuante com opção para remover um ou mais camadas do mapa. Arraste uma camada sobre esse ícone para removê-la individualmente",en:"Click to see the layer list on a floating window ",es:"Haga clic para ver la lista de capas en una ventana flotante con la opción de eliminar uan o más capas del mapa. Arrastre una capa sobre ese icono para removerla individualmente"}],"filtraCam":[{pt:"Permite filtrar a lista de camadas mostradas na árvore conforme propriedades específicas de cada uma",en:"It allows to filter the layer tree-list according to layers particular properties",es:"Permite filtrar la lista de capas mostradas mostradas en el árbol de acuerdo a las propiedades específicas de cada una"}],"legenda":[{pt:"Abre a legenda do mapa em uma janela flutuante",en:"It opens the map legend in a floating window",es:"Abre la leyenda del mapa en una ventana flotante "}],"ferramMapa":[{pt:"Mostra a lista de ferramentas que atuam sobre o mapa",en:"It shows a list of tools which perform actions on the map",es:"Muestra una lista de herramientas que actúan sobre el mapa"}],"ferramCamadas":[{pt:"Mostra a lista de ferramentas que atuam sobre camadas",en:"It shows a list of tools which perform actions on the layers",es:"Muestra una lista de herramientas que actúan sobre las capas"}],"ajudaEditorOlSalva":[{pt:"Para editar os atributos, utilize a ferramenta de identificação. É necessário que exista uma coluna com identificadores únicos na tabela a ser editada e que essa coluna esteja visível na ferramenta de identificação.",en:"To edit attributes, use an identification tool. The table´s column being modified should have an unique identifier, and being visible in the identification tool. ",es:"Para editar los atributos, utilice la herramienta de identificación. Es necesario que exista una columna con identificadores únicos en la tabla a ser editada y que esa columna sea visible en la herramienta de identificación."}],"mascara":[{pt:"Máscara",en:"Mask",es:"Máscara"}],"result":[{pt:"Resultado",en:"Result",es:"Resultado"}],"tativo":[{pt:"Tema ativo",en:"Active theme ",es:"Tema activo"}],"geosel":[{pt:"geometria(s) selecionada(s) encontrada(s)",en:"selected geometry found",es:"geometría(s) seleccionada(s) encontrada(s)"}],"listar":[{pt:"Listar",en:"List",es:"Hacer una lista"}],"sdados":[{pt:"Salvar dados",en:"Save data",es:"Guardar datos"}],"incorpo":[{pt:"Incorporar ao mapa",en:"Add to map",es:"Incorporar al mapa"}],"selum":[{pt:"Selecione pelo menos um elemento",en:"Select at least one element",es:"Seleccione al menos un elemento"}],"atrib":[{pt:"Atributos",en:"Attributes",es:"Atributos"}],"reg":[{pt:"Registros",en:"Records",es:"Registros"}],"adic":[{pt:"Adicionando",en:"Adding",es:"Adicionando"}],"stema":[{pt:"Salvar no tema",en:"Save theme",es:"Salvar el tema"}],"seluma":[{pt:"Selecione apenas uma figura",en:"Select only one shape",es:"Seleccione sólo una figura"}],"salva":[{pt:"Salva",en:"Save",es:"Salva"}],"canc":[{pt:"Cancela",en:"Cancel",es:"Cancela"}],"dlinha":[{pt:"digitalizar linha",en:"digitalize line",es:"digitalizar línea"}],"dpol":[{pt:"digitalizar poligono",en:"digitalize polygon",es:"digitalizar Polígono"}],"dponto":[{pt:"digitalizar ponto",en:"digitalize point",es:"digitalizar punto"}],"dtexto":[{pt:"digitalizar texto",en:"digitalize text",es:"digitalizar texto"}],"cortaf":[{pt:"corta figura",en:"cut shape",es:"corta figura"}],"modf":[{pt:"modifica figura",en:"modify shape",es:"modificar figura"}],"listag":[{pt:"lista geometrias",en:"geometry list",es:"lista geometrías"}],"frente":[{pt:"trazer para frente",en:"send forward",es:"traer al frente"}],"studo":[{pt:"selecionar tudo",en:"select all",es:"seleccionar todo"}],"excsel":[{pt:"Remove os elementos selecionados",en:"it removes selected features",es:"Remueve los elementos seleccionados"}],"opcoes":[{pt:"Opções",en:"Options",es:"Opciones"}],"meneditor1":[{pt:"Para excluir registros do banco de dados utilize a ferramenta de identificação",en:"To eliminate records from database use the identification tool",es:"Para excluir registros de la base de datos utilice la herramienta de identificación"}],"meneditor2":[{pt:"Nenhum elemento gráfico encontrado. Utilize as opções de criação de geometrias.",en:"No graphic feature has been found. Use the options to create geometries",es:"Ningún elemento gráfico encontrado. Utilice las opciones de creación de geometría"}],"meneditor3":[{pt:"Você precisa fazer login para usar a opção de salvar no banco de dados",en:"In order to save to a database you need login",es:"Usted necesita hacer login para usar la opción guardar en la base datos"}],"meneditor4":[{pt:"Valores iguais ao original",en:"Values equal to original",es:"Valores iguales al original"}],"meneditor5":[{pt:"É necessário ter um código para poder excluir",en:"It is necessary to have a key to exclude",es:"Es necesario tener una clave para excluir"}],"meneditor6":[{pt:"Após escolher a medida da variável, clique no mapa para escolher o limite geográfico.",en:"After choosing the measurement of variable, click on the map to select a geographical boundary.",es:"Después de escoger la medida de la variable, haga clic en el mapa para escoger el límite geográfico."}],"opsel":[{pt:"Operações sobre as figuras selecionadas",en:"Operations upon selected shapes",es:"Operaciones sobre las figuras seleccionadas"}],"capturar":[{pt:"Capturar elemento de um tema",en:"Capturing a theme feature",es:"Capturar elemento de un tema"}],"salvexc":[{pt:"Salvar/excluir dados",en:"Save/exclude data",es:"Guardar/excluir datos"}],"edatrib":[{pt:"Editar atributos",en:"Edit Attributes",es:"Editar atributos"}],"camedit":[{pt:"Camadas editáveis",en:"Editable layers",es:"Capas editables"}],"nenhum":[{pt:"Nenhum",en:"None",es:"Ninguno"}],"tipo":[{pt:"Tipo",en:"Type",es:"Tipo"}],"abreMapa":[{pt:"Abrir o mapa",en:"Open the map",es:"Abrir el mapa "}],"areaAprox":[{pt:"Área aproximada",en:"Approximate area",es:"Área aproximada"}],"distAprox":[{pt:"Distância aproximada",en:"Approximate distance",es:"Distancia aproximada"}],"trocaInterface":[{pt:"Troca de interface",en:"Interface shift",es:"Cambio de interfaz"}],"wkt2layer":[{pt:"Converte WKT em camada",en:"Transforming WKT into layer",es:"Transforma WKT en capa"}],"salvaDadosEditor":[{pt:"Os dados só podem ser salvos em temas que permitem edição e que possuem coluna com auto incremento",en:"Data can only be saved in themes that allow edition and have column with auto-increment",es:"Los datos sólo pueden ser guardados en los temas que permiten edición y que poseen columna con auto incremento"}],"novaaba":[{pt:"Abre em nova aba",en:"Open in new tab",es:"Abre en una nueva tab"}],"novonome":[{pt:"Novo nome",en:"New name",es:"Nuevo nombre"}],"medir":[{pt:"Medir/Calcular",en:"",es:""}],"tabela":[{pt:"Tabela",en:"",es:""}],"ligaDesliga":[{pt:"Liga/Desliga",en:"",es:""}]}; @@ -252,7 +252,7 @@ if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.tema={TEMPORIZADORESID:{},ati if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.analise={pontos:{xpt:[],ypt:[]},dialogo:{markercluster:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.markercluster()","markercluster","markercluster","dependencias.php","i3GEOF.markercluster.iniciaJanelaFlutuante()")},heatmap:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.heatmap()","heatmap","heatmap","dependencias.php","i3GEOF.heatmap.iniciaJanelaFlutuante()")},saiku:function(){if(i3GEO.parametros.statusFerramentas&&i3GEO.parametros.statusFerramentas.saiku===false){i3GEO.janela.tempoMsg($trad("naoInstalado"));return}i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.saiku()","saiku","saiku")},saikuMapa:function(){if(i3GEO.parametros.statusFerramentas&&i3GEO.parametros.statusFerramentas.saiku===false){i3GEO.janela.tempoMsg($trad("naoInstalado"));return}i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.saiku()","saiku","saiku","index.js","i3GEOF.saiku.iniciaJanelaFlutuante2()")},graficoInterativo:function(){alert("depreciado. Use graficointerativo1")},graficoInterativo1:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.graficointerativo1()","graficointerativo1","graficointerativo1","dependencias.php","i3GEOF.graficointerativo1.iniciaJanelaFlutuante()")},linhaDoTempo:function(){i3GEO.janela.cria("650px","450px",i3GEO.configura.locaplic+"/ferramentas/linhadotempo/index.php","","","
Linha do tempo
","i3GEOF.linhaDoTempo",false,"hd","","","",true,i3GEO.configura.locaplic+"/imagens/oxygen/16x16/clock.png");i3GEO.analise.atualizaLinhaDoTempo=function(){var doc="",ifr="";try{ifr=$i("i3GEOF.linhaDoTempoi");if(navn){if(ifr){doc=ifr.contentDocument}}else{if(document.frames("i3GEOF.linhaDoTempoi")){doc=document.frames("i3GEOF.linhaDoTempoi").document}}doc.getElementById("tl")?window.parent["i3GEOF.linhaDoTempoi"].carregaDados():i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.analise.atualizaLinhaDoTempo()"])}catch(e){i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.analise.atualizaLinhaDoTempo()"])}};i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.analise.atualizaLinhaDoTempo()"]);var ifr=$i("i3GEOF.linhaDoTempoi");if(ifr){ifr.style.width="100%"}},perfil:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.perfil()","perfil","perfil")},melhorcaminho:function(){if(i3GEO.parametros.statusFerramentas&&i3GEO.parametros.statusFerramentas.melhorcaminho===false){i3GEO.janela.tempoMsg($trad("naoInstalado"));return}i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.melhorcaminho()","melhorcaminho","melhorcaminho")},gradePontos:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradePontos()","gradepontos","gradeDePontos")},gradePol:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradePol()","gradepol","gradeDePoligonos")},gradeHex:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradeHex()","gradehex","gradeDeHex")},analisaGeometrias:function(){i3GEO.util.dialogoFerramenta("i3GEO.tema.dialogo.tabela()","analisageometrias","analisaGeometrias","dependencias.php","i3GEOF.analisaGeometrias.iniciaJanelaFlutuante()")},pontosdistri:function(){i3GEO.parametros.r==="nao"?i3GEO.janela.tempoMsg($trad("x22")):i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontosdistri()","pontosdistri","pontosDistri","dependencias.php","i3GEOF.pontosDistri.iniciaJanelaFlutuante()")},pontoempoligono:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontoempoligono()","pontoempoligono","pontoEmPoligono","dependencias.php","i3GEOF.pontoEmPoligono.iniciaJanelaFlutuante()")},centromassa:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.centromassa()","centromassa","centromassa","dependencias.php","i3GEOF.centromassa.iniciaJanelaFlutuante()")},nptPol:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.nptpol()","nptpol","nptpol","dependencias.php","i3GEOF.nptpol.iniciaJanelaFlutuante()")},buffer:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.buffer()","buffer","buffer","dependencias.php","i3GEOF.buffer.iniciaJanelaFlutuante()")},distanciaptpt:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.distanciaptpt()","distanciaptpt","distanciaptpt","dependencias.php","i3GEOF.distanciaptpt.iniciaJanelaFlutuante()")},centroide:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.centroide()","centroide","centroide","dependencias.php","i3GEOF.centroide.iniciaJanelaFlutuante()")},dissolve:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.dissolve()","dissolve","dissolve","dependencias.php","i3GEOF.dissolve.iniciaJanelaFlutuante()")},agrupaElementos:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.agrupaElementos()","agrupaelementos","agrupaElementos","dependencias.php","i3GEOF.agrupaElementos.iniciaJanelaFlutuante()")}},medeDistancia:{pontos:{},ultimoWkt:"",ultimaMedida:"",inicia:function(){i3GEO.eventos.cliquePerm.desativa();i3GEO.analise.medeDistancia.criaJanela();i3GEO.analise.medeDistancia[i3GEO.Interface["ATUAL"]].inicia()},criaJanela:function(){var novoel,ins,imagemxy,janela;i3GEO.analise.pontos={xpt:[],ypt:[]};if(!$i("mostradistancia")){novoel=document.createElement("div");novoel.id="mostradistancia";ins='
'+$trad("distAprox")+'
'+'
'+'
'+'
'+'
'+''+''+''+''+''+''+''+''+''+''+'
Raios Textos'+' Estilo:
'+i3GEO.desenho.caixaEstilos()+'
  
'+'
'+'
';novoel.innerHTML=ins;novoel.style.borderColor="gray";document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("mostradistancia",{width:"355px",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$(janela.close).click(i3GEO.analise.medeDistancia.fechaJanela)}else{i3GEO.util.defineValor("mostradistancia_calculo","innerHTML","");janela=YAHOO.i3GEO.janela.manager.find("mostradistancia")}janela.show();imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));janela.moveTo(imagemxy[0]+150,imagemxy[1]);new YAHOO.widget.Button("i3GEObotaoPerfil",{onclick:{fn:function(){var js=i3GEO.configura.locaplic+"/ferramentas/perfil/dependencias.php",temp=function(){i3GEOF.perfil.iniciaJanelaFlutuante(i3GEO.analise.pontos)};i3GEO.util.scriptTag(js,temp,"i3GEOF.perfil_script")}}});new YAHOO.widget.Button("i3GEObotaoDistWkt",{onclick:{fn:function(){i3GEO.mapa.dialogo.wkt2layer(i3GEO.analise.medeDistancia.ultimoWkt,i3GEO.analise.medeDistancia.ultimaMedida)}}})},fechaJanela:function(){var janela;i3GEO.eventos.cliquePerm.ativa();janela=YAHOO.i3GEO.janela.manager.find("mostradistancia");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela.destroy()}i3GEO.barraDeBotoes.ativaIcone("pointer");i3GEO.analise.medeDistancia[i3GEO.Interface["ATUAL"]].fechaJanela();i3GEO.analise.pontos={}},pontos2wkt:function(){var pontos=[],x=i3GEO.analise.medeDistancia.pontos.xpt,y=i3GEO.analise.medeDistancia.pontos.ypt,n=x.length,i;for(i=0;i0){x1=i3GEO.analise.medeDistancia.pontos.xpt[n-1];y1=i3GEO.analise.medeDistancia.pontos.ypt[n-1];x2=coord[0];y2=coord[1];if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1+" "+x2+" "+y2);temp=temp.split(" ");x1=temp[0];y1=temp[1];x2=temp[2];y2=temp[3]}trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);parcial=i3GEO.analise.medeDistancia.openlayers.somaDist();direcao=i3GEO.calculo.direcao(x1,y1,x2,y2);direcao=i3GEO.calculo.dd2dms(direcao,direcao);direcao=direcao[0];i3GEO.analise.medeDistancia.openlayers.mostraParcial(trecho,parcial,direcao)}},point:function(point){var n,x1,y1,x2,y2,trecho,temp,circ,label,raio,estilo=i3GEO.desenho.estilos[i3GEO.desenho.estiloPadrao],coord=point.getCoordinates(),total=0;i3GEO.analise.medeDistancia.pontos.xpt.push(coord[0]);i3GEO.analise.medeDistancia.pontos.ypt.push(coord[1]);i3GEO.analise.pontos.xpt.push(coord[0]);i3GEO.analise.pontos.ypt.push(coord[1]);n=i3GEO.analise.medeDistancia.pontos.ypt.length;if(n>1){x1=i3GEO.analise.medeDistancia.pontos.xpt[n-2];y1=i3GEO.analise.medeDistancia.pontos.ypt[n-2];x2=coord[0];y2=coord[1];raio=new ol.geom.LineString([[x1,y1],[x2,y2]]).getLength();if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1+" "+x2+" "+y2);temp=temp.split(" ");x1=temp[0];y1=temp[1];x2=temp[2];y2=temp[3]}trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);i3GEO.analise.medeDistancia.pontos.dist.push(trecho);total=i3GEO.analise.medeDistancia.openlayers.somaDist();i3GEO.analise.medeDistancia.openlayers.mostraTotal(trecho,total);i3GEO.analise.medeDistancia.ultimoWkt=i3GEO.analise.medeDistancia.pontos2wkt();if($i("pararraios")&&$i("pararraios").checked===true){temp=i3GEO.util.projGeo2OSM(new ol.geom.Point([x1*1,y1*1]));circ=new ol.Feature({geometry:new ol.geom.Circle(temp.getCoordinates(),raio)});circ.setProperties({origem:"medeDistanciaExcluir"});circ.setStyle(new ol.style.Style({stroke:new ol.style.Stroke({color:estilo.circcolor,width:1}),zIndex:2}));i3GEO.desenho.layergrafico.getSource().addFeature(circ)}if($i("parartextos")&&$i("parartextos").checked===true){label=new ol.Feature({geometry:i3GEO.util.projGeo2OSM(new ol.geom.Point([x2*1,y2*1]))});label.setProperties({origem:"medeDistanciaExcluir"});label.setStyle(new ol.style.Style({image:new ol.style.Circle({radius:3,fill:new ol.style.Fill({color:estilo.circcolor}),stroke:new ol.style.Stroke({color:estilo.circcolor,width:1})}),text:new ol.style.Text({text:trecho.toFixed(3),font:'Bold 14px Arial',textAlign:'left',stroke:new ol.style.Stroke({color:'white',width:1}),fill:new ol.style.Fill({color:estilo.textcolor}),zIndex:2000})}));i3GEO.desenho.layergrafico.getSource().addFeature(label)}}},somaDist:function(){var n,i,total=0;n=i3GEO.analise.medeDistancia.pontos.dist.length;for(i=0;i0){temp=window.confirm($trad("x94"));if(temp){for(r in remover){i3GEO.desenho.layergrafico.getSource().removeFeature(remover[r])}}}},mostraTotal:function(trecho,total){var mostra=$i("mostradistancia_calculo"),texto;if(mostra){texto=""+$trad("x96")+": "+total.toFixed(3)+" km"+"
"+$trad("x96")+": "+(total*1000).toFixed(2)+" m"+"
"+$trad("x25")+": "+i3GEO.calculo.metododistancia;mostra.innerHTML=texto}},mostraParcial:function(trecho,parcial,direcao){var mostra=$i("mostradistancia_calculo_movel"),texto;if(mostra){texto=""+$trad("x95")+": "+trecho.toFixed(3)+" km"+"
"+$trad("x97")+": "+(parcial+trecho).toFixed(3)+" km"+"
"+$trad("x23")+" (DMS): "+direcao;mostra.innerHTML=texto}}},googlemaps:{inicia:function(){i3GEO.analise.medeDistancia.pontos={xpt:[],ypt:[],dist:[]};i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia();i3GeoMap.setOptions({disableDoubleClickZoom:true});i3GeoMap.setOptions({draggableCursor:'crosshair'});var t,evtdblclick=null,evtclick=null,evtmousemove=null,pontos={xpt:[],ypt:[],dist:[],mvcLine:new google.maps.MVCArray(),mvcMarkers:new google.maps.MVCArray(),line:null,polygon:null},termina=function(){google.maps.event.removeListener(evtdblclick);google.maps.event.removeListener(evtclick);google.maps.event.removeListener(evtmousemove);pontos.line.setOptions({clickable:true});google.maps.event.addListener(pontos.line,'click',function(shape){if(shape.setEditable){shape.setEditable(!shape.editable)}});i3GEO.analise.medeDistancia.ultimoWkt=i3GEO.analise.medeDistancia.pontos2wkt();t=i3GEO.analise.medeDistancia.googlemaps.somaDist(pontos);i3GEO.analise.medeDistancia.ultimaMedida=t.toFixed(3)+" km";if(pontos){i3GEO.desenho.googlemaps.shapes.push(pontos.mvcLine);i3GEO.desenho.googlemaps.shapes.push(pontos.line);pontos=null}};evtclick=google.maps.event.addListener(i3GeoMap,"click",function(evt){var x1,x2,y1,y2,trecho=0,total,n;pontos.mvcLine.push(evt.latLng);pontos.xpt.push(evt.latLng.lng());pontos.ypt.push(evt.latLng.lat());i3GEO.analise.medeDistancia.pontos.xpt.push(evt.latLng.lng());i3GEO.analise.medeDistancia.pontos.ypt.push(evt.latLng.lat());n=pontos.xpt.length;if(pontos.mvcLine.getLength()>1){x1=pontos.xpt[n-2];y1=pontos.ypt[n-2];x2=evt.latLng.lng();y2=evt.latLng.lat();trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);pontos.dist.push(trecho);total=i3GEO.analise.medeDistancia.googlemaps.somaDist(pontos);i3GEO.analise.medeDistancia.googlemaps.mostraTotal(trecho,total);if($i("pararraios")&&$i("pararraios").checked===true){i3GEO.desenho.googlemaps.shapes.push(new google.maps.Circle({map:i3GeoMap,fillOpacity:0,clickable:false,strokeColor:"black",strokeOpacity:1,strokeWeight:2,center:new google.maps.LatLng(y1,x1),radius:trecho*1000,origem:"medeDistanciaExcluir"}))}}if($i("parartextos")&&$i("parartextos").checked===true){i3GEO.desenho.googlemaps.shapes.push(new google.maps.Marker({map:i3GeoMap,fillOpacity:0,clickable:false,position:evt.latLng,icon:{path:google.maps.SymbolPath.CIRCLE,scale:2.5,strokeColor:"#ffffff",title:trecho.toFixed(0)+" km"},origem:"medeDistanciaExcluir"}))}pontos.mvcLine.push(evt.latLng)});evtmousemove=google.maps.event.addListener(i3GeoMap,"mousemove",function(evt){if(!$i("mostradistancia_calculo")){termina.call();return}var x1,y1,x2,y2,direcao,parcial,estilo=i3GEO.desenho.estilos[i3GEO.desenho.estiloPadrao],n=pontos.xpt.length;if(pontos.mvcLine.getLength()>0){if(!pontos.line){pontos.line=new google.maps.Polyline({map:i3GeoMap,clickable:false,strokeColor:estilo.linecolor,strokeOpacity:1,strokeWeight:estilo.linewidth,path:pontos.mvcLine,origem:"medeDistancia"})}pontos.mvcLine.pop();pontos.mvcLine.push(evt.latLng);parcial=i3GEO.analise.medeDistancia.googlemaps.somaDist(pontos);x1=pontos.xpt[n-1];y1=pontos.ypt[n-1];x2=evt.latLng.lng();y2=evt.latLng.lat();trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);direcao=i3GEO.calculo.direcao(x1,y1,x2,y2);direcao=i3GEO.calculo.dd2dms(direcao,direcao);direcao=direcao[0];i3GEO.analise.medeDistancia.googlemaps.mostraParcial(trecho,parcial,direcao)}});evtdblclick=google.maps.event.addListener(i3GeoMap,"dblclick",function(evt){termina.call()})},somaDist:function(pontos){var n,i,total=0;n=pontos.dist.length;for(i=0;i0){temp=window.confirm($trad("x94"));if(temp){i3GEO.desenho.googlemaps.destroyFeatures(f)}}f=i3GEO.desenho.googlemaps.getFeaturesByAttribute("origem","medeDistanciaExcluir");if(f&&f.length>0){i3GEO.desenho.googlemaps.destroyFeatures(f)}},mostraTotal:function(trecho,total){var mostra=$i("mostradistancia_calculo"),texto;if(mostra){texto=""+$trad("x96")+": "+total.toFixed(3)+" km"+"
"+$trad("x96")+": "+(total*1000).toFixed(2)+" m"+"
"+$trad("x25")+": "+i3GEO.calculo.metododistancia;mostra.innerHTML=texto}},mostraParcial:function(trecho,parcial,direcao){var mostra=$i("mostradistancia_calculo_movel"),texto;if(mostra){texto=""+$trad("x95")+": "+trecho.toFixed(3)+" km"+"
"+$trad("x97")+": "+(parcial+trecho).toFixed(3)+" km"+"
"+$trad("x23")+" (DMS): "+direcao;mostra.innerHTML=texto}}}},medeArea:{pontos:{},ultimoWkt:"",ultimaMedida:"",inicia:function(){i3GEO.eventos.cliquePerm.desativa();i3GEO.analise.medeArea.criaJanela();i3GEO.analise.medeArea[i3GEO.Interface["ATUAL"]].inicia()},criaJanela:function(){var novoel,ins,imagemxy,janela;if(!$i("mostraarea")){novoel=document.createElement("div");novoel.id="mostraarea";ins='
'+$trad("areaAprox")+'
'+'
'+'
'+'
'+'
'+'
';novoel.innerHTML=ins;novoel.style.borderColor="gray";document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("mostraarea",{width:"220px",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$(janela.close).click(i3GEO.analise.medeArea.fechaJanela)}else{janela=YAHOO.i3GEO.janela.manager.find("mostraarea")}janela.show();imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));janela.moveTo(imagemxy[0]+150,imagemxy[1]);new YAHOO.widget.Button("i3GEObotaoAreaWkt",{onclick:{fn:function(){i3GEO.mapa.dialogo.wkt2layer(i3GEO.analise.medeArea.ultimoWkt,i3GEO.analise.medeArea.ultimaMedida)}}})},fechaJanela:function(){var janela;i3GEO.eventos.cliquePerm.ativa();janela=YAHOO.i3GEO.janela.manager.find("mostraarea");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela.destroy()}i3GEO.barraDeBotoes.ativaIcone("pointer");i3GEO.analise.medeArea[i3GEO.Interface["ATUAL"]].fechaJanela()},pontos2wkt:function(){var pontos=[],x=i3GEO.analise.medeArea.pontos.xpt,y=i3GEO.analise.medeArea.pontos.ypt,n=x.length,i;for(i=0;i1){x1=i3GEO.analise.medeArea.pontos.xpt[n-1];y1=i3GEO.analise.medeArea.pontos.ypt[n-1];x2=coord[0];y2=coord[1];if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1+" "+x2+" "+y2);temp=temp.split(" ");x1=temp[0];y1=temp[1];x2=temp[2];y2=temp[3]}trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);direcao=i3GEO.calculo.direcao(x1,y1,x2,y2);direcao=i3GEO.calculo.dd2dms(direcao,direcao);direcao=direcao[0];per=i3GEO.analise.medeArea.openlayers.somaDist();x1=i3GEO.analise.medeArea.pontos.xpt[0];y1=i3GEO.analise.medeArea.pontos.ypt[0];if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1);temp=temp.split(" ");x1=temp[0];y1=temp[1]}per+=i3GEO.calculo.distancia(x1,y1,x2,y2);sourceProj=i3geoOL.getView().getProjection();geom=(geom.clone().transform(sourceProj,'EPSG:4326'));coordinates=geom.getLinearRing(0).getCoordinates();wgs84Sphere=new ol.Sphere(6378137);area=Math.abs(wgs84Sphere.geodesicArea(coordinates));i3GEO.analise.medeArea.openlayers.mostraParcial(trecho,per,area,direcao)}},point:function(point,geom){var wgs84Sphere,area,coordinates,sourceProj,n,x1,y1,x2,y2,trecho,temp,coord=point.getCoordinates(),total=0;i3GEO.analise.medeArea.pontos.xpt.push(coord[0]);i3GEO.analise.medeArea.pontos.ypt.push(coord[1]);i3GEO.analise.pontos.xpt.push(coord[0]);i3GEO.analise.pontos.ypt.push(coord[1]);n=i3GEO.analise.medeArea.pontos.ypt.length;if(n>1){x1=i3GEO.analise.medeArea.pontos.xpt[n-2];y1=i3GEO.analise.medeArea.pontos.ypt[n-2];x2=coord[0];y2=coord[1];raio=new ol.geom.LineString([[x1,y1],[x2,y2]]).getLength();if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1+" "+x2+" "+y2);temp=temp.split(" ");x1=temp[0];y1=temp[1];x2=temp[2];y2=temp[3]}trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);i3GEO.analise.medeArea.pontos.dist.push(trecho);total=i3GEO.analise.medeArea.openlayers.somaDist();sourceProj=i3geoOL.getView().getProjection();geom=(geom.clone().transform(sourceProj,'EPSG:4326'));coordinates=geom.getLinearRing(0).getCoordinates();wgs84Sphere=new ol.Sphere(6378137);area=Math.abs(wgs84Sphere.geodesicArea(coordinates));i3GEO.analise.medeArea.openlayers.mostraTotal(total,area);i3GEO.analise.medeArea.ultimoWkt=i3GEO.analise.medeArea.pontos2wkt()}},somaDist:function(){var n,i,total=0;n=i3GEO.analise.medeArea.pontos.dist.length;for(i=0;i0){temp=window.confirm($trad("x94"));if(temp){for(r in remover){i3GEO.desenho.layergrafico.getSource().removeFeature(remover[r])}}}},mostraTotal:function(per,area){var mostra=$i("mostraarea_calculo"),texto;if(mostra){texto=""+$trad("d21at")+": "+(area/1000000).toFixed(3)+" km2"+"
"+$trad("d21at")+": "+(area/10000).toFixed(2)+" ha"+"
"+$trad("x98")+": "+(per).toFixed(2)+" km"+"
"+$trad("x25")+": "+i3GEO.calculo.metododistancia;mostra.innerHTML=texto;i3GEO.analise.medeArea.ultimaMedida=(area/1000000).toFixed(3)+" km2"}},mostraParcial:function(trecho,per,area,direcao){var mostra=$i("mostraarea_calculo_parcial"),texto;if(mostra){texto=""+$trad("d21at")+": "+(area/1000000).toFixed(3)+" km2"+"
"+$trad("d21at")+": "+(area/10000).toFixed(2)+" ha"+"
"+$trad("x95")+": "+trecho.toFixed(3)+" km"+"
"+$trad("x98")+": "+(per).toFixed(3)+" km"+"
"+$trad("x23")+" (DMS): "+direcao;mostra.innerHTML=texto}}},googlemaps:{inicia:function(){i3GEO.analise.medeArea.pontos={xpt:[],ypt:[],dist:[]};if(!google.maps.geometry){alert($trad("x99"));return}i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia();i3GeoMap.setOptions({disableDoubleClickZoom:true});i3GeoMap.setOptions({draggableCursor:'crosshair'});var evtdblclick=null,evtclick=null,evtmousemove=null,pontos={xpt:[],ypt:[],dist:[],mvcLine:new google.maps.MVCArray(),mvcMarkers:new google.maps.MVCArray(),line:null,polygon:null},termina=function(){google.maps.event.removeListener(evtdblclick);google.maps.event.removeListener(evtclick);google.maps.event.removeListener(evtmousemove);pontos.line.setOptions({clickable:true});google.maps.event.addListener(pontos.line,'click',function(shape){if(shape.setEditable){shape.setEditable(!shape.editable)}});if(pontos){i3GEO.desenho.googlemaps.shapes.push(pontos.mvcLine);i3GEO.desenho.googlemaps.shapes.push(pontos.line);pontos=null}i3GEO.analise.medeArea.ultimoWkt=i3GEO.analise.medeArea.pontos2wkt()};evtclick=google.maps.event.addListener(i3GeoMap,"click",function(evt){var area=0,per;pontos.mvcLine.push(evt.latLng);pontos.xpt.push(evt.latLng.lng());pontos.ypt.push(evt.latLng.lat());i3GEO.analise.medeArea.pontos.xpt.push(evt.latLng.lng());i3GEO.analise.medeArea.pontos.ypt.push(evt.latLng.lat());if(pontos.mvcLine.getLength()>0){per=google.maps.geometry.spherical.computeLength(pontos.mvcLine);area=google.maps.geometry.spherical.computeArea(pontos.mvcLine);i3GEO.analise.medeArea.googlemaps.mostraTotal(per,area)}i3GEO.desenho.googlemaps.shapes.push(new google.maps.Marker({map:i3GeoMap,fillOpacity:0,clickable:false,position:evt.latLng,icon:{path:google.maps.SymbolPath.CIRCLE,scale:2.5,strokeColor:"#ffffff"},origem:"medeAreaExcluir"}));pontos.mvcLine.push(evt.latLng)});evtmousemove=google.maps.event.addListener(i3GeoMap,"mousemove",function(evt){if(!$i("mostraarea_calculo")){termina.call();return}var x1,y1,x2,y2,direcao,per,area,estilo=i3GEO.desenho.estilos[i3GEO.desenho.estiloPadrao],n=pontos.xpt.length;if(pontos.mvcLine.getLength()>0){if(!pontos.line){pontos.line=new google.maps.Polygon({map:i3GeoMap,clickable:false,strokeColor:estilo.linecolor,strokeOpacity:1,strokeWeight:estilo.linewidth,path:pontos.mvcLine,origem:"medeArea"})}pontos.mvcLine.pop();pontos.mvcLine.push(evt.latLng);per=google.maps.geometry.spherical.computeLength(pontos.mvcLine);x1=pontos.xpt[n-1];y1=pontos.ypt[n-1];x2=evt.latLng.lng();y2=evt.latLng.lat();trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);direcao=i3GEO.calculo.direcao(x1,y1,x2,y2);direcao=i3GEO.calculo.dd2dms(direcao,direcao);direcao=direcao[0];area=google.maps.geometry.spherical.computeArea(pontos.mvcLine);i3GEO.analise.medeArea.googlemaps.mostraParcial(trecho,per,area,direcao)}});evtdblclick=google.maps.event.addListener(i3GeoMap,"dblclick",function(evt){pontos.mvcLine.push(new google.maps.LatLng(pontos.ypt[0],pontos.xpt[0]));var per=google.maps.geometry.spherical.computeLength(pontos.mvcLine),area=google.maps.geometry.spherical.computeArea(pontos.mvcLine);i3GEO.analise.medeArea.googlemaps.mostraTotal(per,area);termina.call()})},somaDist:function(pontos){var n,i,total=0;n=pontos.dist.length;for(i=0;i0){temp=window.confirm($trad("x94"));if(temp){i3GEO.desenho.googlemaps.destroyFeatures(f)}}f=i3GEO.desenho.googlemaps.getFeaturesByAttribute("origem","medeAreaExcluir");if(f&&f.length>0){i3GEO.desenho.googlemaps.destroyFeatures(f)}},mostraTotal:function(per,area){var mostra=$i("mostraarea_calculo"),texto;if(mostra){texto=""+$trad("d21at")+": "+(area/1000000).toFixed(3)+" km2"+"
"+$trad("d21at")+": "+(area/10000).toFixed(2)+" ha"+"
"+$trad("x98")+": "+(per).toFixed(2)+" km"+"
"+$trad("x25")+": "+i3GEO.calculo.metododistancia;mostra.innerHTML=texto;i3GEO.analise.medeArea.ultimaMedida=(area/1000000).toFixed(3)+" km2"}},mostraParcial:function(trecho,per,area,direcao){var mostra=$i("mostraarea_calculo_parcial"),texto;if(mostra){texto=""+$trad("d21at")+": "+(area/1000000).toFixed(3)+" km2"+"
"+$trad("d21at")+": "+(area/10000).toFixed(2)+" ha"+"
"+$trad("x95")+": "+trecho.toFixed(3)+" km"+"
"+$trad("x98")+": "+(per).toFixed(3)+" km"+"
"+$trad("x23")+" (DMS): "+direcao;mostra.innerHTML=texto}}}}}; // //compactados/maparef_compacto.js -if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.maparef={fatorZoomDinamico:-3,SELETORTIPO:true,VALORSELETORTIPO:"mapa",PERMITEFECHAR:true,PERMITEDESLOCAR:true,TRANSICAOSUAVE:false,OPACIDADE:65,TOP:4,RIGHT:70,W:function(){var w=parseInt(i3GEO.parametros.w,10)/5;if(w<150){w=150}return parseInt(w,10)},H:function(){var h=parseInt(i3GEO.parametros.h,10)/5;if(i3GEO.maparef.W()<=150){return 150}else{return parseInt(h,10)}},inicia:function(){var r,pos,novoel,ins,temp,moveX,moveY,escondeRef,janela;if($i("i3geo_winRef")){janela=YAHOO.i3GEO.janela.manager.find("i3geo_winRef");janela.show();janela.bringToTop();return}if(navm){i3GEO.maparef.TRANSICAOSUAVE=false}if(!$i("i3geo_winRef")){novoel=document.createElement("div");novoel.id="i3geo_winRef";novoel.style.display="none";novoel.style.borderColor="gray";ins="";if(this.PERMITEDESLOCAR){ins+='
';ins+=' ";if(this.SELETORTIPO){ins+=""}ins+="
"}ins+='
';ins+='';ins+='
';novoel.innerHTML=ins;if(i3GEO.maparef.TRANSICAOSUAVE){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100);novoel.onmouseover=function(){$(novoel).css("opacity",1)};novoel.onmouseout=function(){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100)}}document.body.appendChild(novoel);if($i("refDinamico")){$i("refDinamico").value=i3GEO.maparef.VALORSELETORTIPO}}if($i("i3geo_winRef").style.display!=="block"){$i("i3geo_winRef").style.display="block";this.PERMITEDESLOCAR?temp="shadow":temp="none";janela=new YAHOO.widget.Panel("i3geo_winRef",{height:i3GEO.maparef.H()+27+"px",width:i3GEO.maparef.W()+6+"px",fixedcenter:false,constraintoviewport:false,underlay:temp,close:i3GEO.maparef.PERMITEFECHAR,visible:true,draggable:i3GEO.maparef.PERMITEDESLOCAR,modal:false,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);if(i3GEO.maparef.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.render();janela.show();try{janela.header.style.height="20px"}catch(e){};r=$i("i3geo_winRef_c");if(r){r.style.position="absolute"}pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));$i("mapaReferencia").style.height=i3GEO.maparef.H()+"px";$i("i3geo_winRef").style.border="0px solid gray";moveX=pos[0]+i3GEO.parametros.w-i3GEO.maparef.W()+3-i3GEO.maparef.RIGHT;moveY=pos[1]+i3GEO.maparef.TOP;if(i3GEO.Interface.ATUAL==="googlemaps"){moveY+=30}janela.moveTo(moveX,moveY);escondeRef=function(){$i("imagemReferencia").src="";janela.destroy();i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","none")};$(janela.close).click(escondeRef);i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block");if($i("localizarxygeoProjxg")){var temp=function(){i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx,objposicaocursor.dmsy,"localizarxygeoProj")};YAHOO.util.Event.addListener($i("imagemReferencia"),"mousemove",temp)}}i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"]);this.atualiza(true);$i("i3geo_winRef_h").className="hd2";if(navm){$i("i3geo_winRef_h").style.width=i3GEO.maparef.W()+6+"px"}},atualiza:function(forca){if(arguments.length===0){forca=false}var tiporef,temp;temp=$i("refDinamico")?tiporef=$i("refDinamico").value:tiporef="fixo";if($i("mapaReferencia")){temp=$i("maparefmaismenosZoom");if(tiporef==="dinamico"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}if(tiporef==="mapa"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}}else{i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"])}},processaImagem:function(retorno){var m,box,temp,tiporef="fixo";if((retorno.data!=="erro")&&(retorno.data!==undefined)){eval(retorno.data);i3GEO.parametros.celularef=g_celularef;i3GEO.parametros.extentref=extentref;temp=$i("imagemReferencia");if(temp){m=new Image();m.src=refimagem;temp.src=m.src}temp=$i("refDinamico");if(temp){tiporef=temp.value}if(tiporef!=="fixo"){box=$i("boxref");if(box){box.style.display="none"}return}i3GEO.maparef.atualizaBox()}},atualizaBox:function(){var box=i3GEO.maparef.criaBox(),w;i3GEO.calculo.ext2rect("boxref",i3GEO.parametros.extentref,i3GEO.parametros.mapexten,i3GEO.parametros.celularef,$i("mapaReferencia"));w=parseInt(box.style.width,10);if(w>120){box.style.display="none";return}box.style.display="block";box.style.top=parseInt(box.style.top,10)+4+"px";box.style.left=parseInt(box.style.left,10)+4+"px";if(w<3){box.style.width="3px";box.style.height="3px"}},criaBox:function(){var box=$i("boxref");if(!box){novoel=document.createElement("div");novoel.id="boxref";novoel.style.zIndex=10;novoel.style.position='absolute';novoel.style.cursor="move";novoel.style.backgroundColor="RGB(120,220,220)";novoel.style.borderWidth="3px";if(navm){novoel.style.filter='alpha(opacity=40)'}else{novoel.style.opacity=0.4}$i("mapaReferencia").appendChild(novoel);boxrefdd=new YAHOO.util.DD("boxref");novoel.onmouseup=function(){var rect,telaminx,telamaxx,telaminy,m,x,ext;rect=$i("boxref");telaminx=parseInt(rect.style.left,10);telamaxy=parseInt(rect.style.top,10);telamaxx=telaminx+parseInt(rect.style.width,10);telaminy=telamaxy+parseInt(rect.style.height,10);m=i3GEO.calculo.tela2dd(telaminx,telaminy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");x=i3GEO.calculo.tela2dd(telamaxx,telamaxy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");ext=m[0]+" "+m[1]+" "+x[0]+" "+x[1];i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,"",ext)};return novoel}else{return box}},click:function(){if(i3GEO.Interface.ATUAL==="openlayers"||i3GEO.Interface.ATUAL==="googlemaps"){i3GEO.Interface[i3GEO.Interface.ATUAL].pan2ponto(objposicaocursor.ddx,objposicaocursor.ddy)}}}; +if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.maparef={fatorZoomDinamico:-3,SELETORTIPO:true,VALORSELETORTIPO:"mapa",PERMITEFECHAR:true,PERMITEDESLOCAR:true,TRANSICAOSUAVE:false,OPACIDADE:65,TOP:4,RIGHT:70,W:function(){var w=parseInt(i3GEO.parametros.w,10)/5;if(w<150){w=150}return parseInt(w,10)},H:function(){var h=parseInt(i3GEO.parametros.h,10)/5;if(i3GEO.maparef.W()<=150){return 150}else{return parseInt(h,10)}},inicia:function(){var r,pos,novoel,ins,temp,moveX,moveY,escondeRef,janela;if($i("i3geo_winRef")){janela=YAHOO.i3GEO.janela.manager.find("i3geo_winRef");janela.show();janela.bringToTop();return}if(navm){i3GEO.maparef.TRANSICAOSUAVE=false}if(!$i("i3geo_winRef")){novoel=document.createElement("div");novoel.id="i3geo_winRef";novoel.style.display="none";novoel.style.borderColor="gray";ins="";if(this.PERMITEDESLOCAR){ins+='
';ins+=' ";if(this.SELETORTIPO){ins+=""}ins+="
"}ins+='
';ins+='';ins+='
';novoel.innerHTML=ins;if(i3GEO.maparef.TRANSICAOSUAVE){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100);novoel.onmouseover=function(){$(novoel).css("opacity",1)};novoel.onmouseout=function(){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100)}}document.body.appendChild(novoel);if($i("refDinamico")){$i("refDinamico").value=i3GEO.maparef.VALORSELETORTIPO}}if($i("i3geo_winRef").style.display!=="block"){$i("i3geo_winRef").style.display="block";this.PERMITEDESLOCAR?temp="shadow":temp="none";janela=new YAHOO.widget.Panel("i3geo_winRef",{height:i3GEO.maparef.H()+27+"px",width:i3GEO.maparef.W()+6+"px",fixedcenter:false,constraintoviewport:false,underlay:temp,close:i3GEO.maparef.PERMITEFECHAR,visible:true,draggable:i3GEO.maparef.PERMITEDESLOCAR,modal:false,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);if(i3GEO.maparef.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.render();janela.show();try{janela.header.style.height="20px"}catch(e){};r=$i("i3geo_winRef_c");if(r){r.style.position="absolute"}pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));$i("mapaReferencia").style.height=i3GEO.maparef.H()+"px";$i("i3geo_winRef").style.border="0px solid gray";moveX=pos[0]+i3GEO.parametros.w-i3GEO.maparef.W()+3-i3GEO.maparef.RIGHT;moveY=pos[1]+i3GEO.maparef.TOP;if(i3GEO.Interface.ATUAL==="googlemaps"){moveY+=30}janela.moveTo(moveX,moveY);escondeRef=function(){$i("imagemReferencia").src="";janela.destroy();i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","none")};$(janela.close).click(escondeRef);i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block");if($i("localizarxygeoProjxg")){var temp=function(){i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx,objposicaocursor.dmsy,"localizarxygeoProj")};$("#imagemReferencia").mousemove(temp)}}i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"]);this.atualiza(true);$i("i3geo_winRef_h").className="hd2";if(navm){$i("i3geo_winRef_h").style.width=i3GEO.maparef.W()+6+"px"}},atualiza:function(forca){if(arguments.length===0){forca=false}var tiporef,temp;temp=$i("refDinamico")?tiporef=$i("refDinamico").value:tiporef="fixo";if($i("mapaReferencia")){temp=$i("maparefmaismenosZoom");if(tiporef==="dinamico"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}if(tiporef==="mapa"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}}else{i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"])}},processaImagem:function(retorno){var m,box,temp,tiporef="fixo";if((retorno.data!=="erro")&&(retorno.data!==undefined)){eval(retorno.data);i3GEO.parametros.celularef=g_celularef;i3GEO.parametros.extentref=extentref;temp=$i("imagemReferencia");if(temp){m=new Image();m.src=refimagem;temp.src=m.src}temp=$i("refDinamico");if(temp){tiporef=temp.value}if(tiporef!=="fixo"){box=$i("boxref");if(box){box.style.display="none"}return}i3GEO.maparef.atualizaBox()}},atualizaBox:function(){var box=i3GEO.maparef.criaBox(),w;i3GEO.calculo.ext2rect("boxref",i3GEO.parametros.extentref,i3GEO.parametros.mapexten,i3GEO.parametros.celularef,$i("mapaReferencia"));w=parseInt(box.style.width,10);if(w>120){box.style.display="none";return}box.style.display="block";box.style.top=parseInt(box.style.top,10)+4+"px";box.style.left=parseInt(box.style.left,10)+4+"px";if(w<3){box.style.width="3px";box.style.height="3px"}},criaBox:function(){var box=$i("boxref");if(!box){novoel=document.createElement("div");novoel.id="boxref";novoel.style.zIndex=10;novoel.style.position='absolute';novoel.style.cursor="move";novoel.style.backgroundColor="RGB(120,220,220)";novoel.style.borderWidth="3px";if(navm){novoel.style.filter='alpha(opacity=40)'}else{novoel.style.opacity=0.4}$i("mapaReferencia").appendChild(novoel);novoel.onmouseup=function(){var rect,telaminx,telamaxx,telaminy,m,x,ext;rect=$i("boxref");telaminx=parseInt(rect.style.left,10);telamaxy=parseInt(rect.style.top,10);telamaxx=telaminx+parseInt(rect.style.width,10);telaminy=telamaxy+parseInt(rect.style.height,10);m=i3GEO.calculo.tela2dd(telaminx,telaminy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");x=i3GEO.calculo.tela2dd(telamaxx,telamaxy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");ext=m[0]+" "+m[1]+" "+x[0]+" "+x[1];i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,"",ext)};return novoel}else{return box}},click:function(){if(i3GEO.Interface.ATUAL==="openlayers"||i3GEO.Interface.ATUAL==="googlemaps"){i3GEO.Interface[i3GEO.Interface.ATUAL].pan2ponto(objposicaocursor.ddx,objposicaocursor.ddy)}}}; // //compactados/ajuda_compacto.js if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.ajuda={ATIVAJANELA:true,DIVAJUDA:"i3geo_ajuda",DIVLETREIRO:"i3geo_letreiro",MENSAGEMPADRAO:$trad("p1"),TRANSICAOSUAVE:true,OPACIDADE:20,abreDoc:function(url){if(!url){url="/documentacao/index.html"}window.open(i3GEO.configura.locaplic+url)},abreJanela:function(){try{var nx,ny,corpo,texto,janela,temp,largura=262,pos={left:20,top:i3GEO.parametros.h/2};if(this.ATIVAJANELA===false){return}temp=$i("contemFerramentas");if(temp){largura=parseInt(temp.style.width,10)-5}if(!$i("janelaMenTexto")){corpo=$i(i3GEO.Interface.IDCORPO);if(!corpo){corpo=$i(i3GEO.Interface.IDMAPA)}if(corpo){pos=$(corpo).position()}nx=pos.left-largura-3;ny=i3GEO.parametros.h-78;texto='
'+i3GEO.ajuda.MENSAGEMPADRAO+'
';if(nx<0){nx=10;ny=ny-50}janela=i3GEO.janela.cria(largura-3,70,"",nx,ny," ","i3geo_janelaMensagens",false,"hd","","",true);janela[2].innerHTML=texto;$(janela[0].close).click(i3GEO.ajuda.fechaJanela);this.ativaCookie()}}catch(e){}},ativaCookie:function(){var i=i3GEO.util.insereCookie;i("g_janelaMen","sim");i("botoesAjuda","sim")},ativaLetreiro:function(mensagem){var l;if($i(i3GEO.ajuda.DIVLETREIRO)){if(arguments.length===0){mensagem=i3GEO.parametros.mensagens}i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.ajuda.ativaLetreiro()"]);try{clearTimeout(i3GEO.ajuda.tempoLetreiro)}catch(e){i3GEO.ajuda.tempoLetreiro=""}if(mensagem===""){i3GEO.eventos.removEventos("NAVEGAMAPA",["i3GEO.ajuda.ativaLetreiro()"]);return}l=$i(i3GEO.ajuda.DIVLETREIRO);if(l.style.display==="none"){return}l.style.cursor="pointer";if(mensagem===""){l.value="";return}if(l.size===1){l.size=i3GEO.parametros.w/8}BMessage=mensagem+" ---Clique para parar--- ";l.onclick=function(){l.style.display="none"};if(BMessage!==" ---Clique para parar--- "){BQuantas=0;BSize=l.size;BPos=BSize;BSpeed=1;BSpaces="";i3GEO.ajuda.mostraLetreiro()}i3GEO.ajuda.mostraLetreiro(mensagem)}},desativaCookie:function(){i3GEO.util.insereCookie("g_janelaMen","nao")},fechaJanela:function(){i3GEO.ajuda.desativaCookie();i3GEO.util.removeChild("i3geo_janelaMensagens_c",document.body)},mostraJanela:function(texto){var j=$i(this.DIVAJUDA),k=$i("janelaMenTexto"),jm=$i("i3geo_janelaMensagens"),h=parseInt($(jm).css("height"),10);if(j){j.innerHTML=texto===""?"-":texto}else{if(k){k.innerHTML=texto}if(this.TRANSICAOSUAVE){texto!==""?$(jm).css("opacity",1):$(jm).css("opacity",this.OPACIDADE/100)}h=parseInt($(jm).css("height"),10)}},mostraLetreiro:function(){for(var count=0;count"+$trad("u5c")+"
",i3GEO.util.generateId("redes"))}}; diff --git a/js/i3geo_tudo_compacto7.js.php b/js/i3geo_tudo_compacto7.js.php index 5e7f2f2..1af1fac 100755 --- a/js/i3geo_tudo_compacto7.js.php +++ b/js/i3geo_tudo_compacto7.js.php @@ -219,7 +219,7 @@ var i3GEOF=[];var i3GEOadmin=[];if(typeof YAHOO!="undefined"){YAHOO.namespace("i (function(global,factory){if(typeof exports==="object"&&exports){factory(exports)}else if(typeof define==="function"&&define.amd){define(['exports'],factory)}else{factory(global.Mustache={})}}(this,function(mustache){var Object_toString=Object.prototype.toString;var isArray=Array.isArray||function(object){return Object_toString.call(object)==='[object Array]'};function isFunction(object){return typeof object==='function'}function escapeRegExp(string){return string.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var RegExp_test=RegExp.prototype.test;function testRegExp(re,string){return RegExp_test.call(re,string)}var nonSpaceRe=/\S/;function isWhitespace(string){return!testRegExp(nonSpaceRe,string)}var entityMap={"&":"&","<":"<",">":">",'"':'"',"'":''',"/":'/'};function escapeHtml(string){return String(string).replace(/[&<>"'\/]/g,function(s){return entityMap[s]})}var whiteRe=/\s*/;var spaceRe=/\s+/;var equalsRe=/\s*=/;var curlyRe=/\s*\}/;var tagRe=/#|\^|\/|>|\{|&|=|!/;function parseTemplate(template,tags){if(!template)return[];var sections=[];var tokens=[];var spaces=[];var hasTag=false;var nonSpace=false;function stripSpace(){if(hasTag&&!nonSpace){while(spaces.length)delete tokens[spaces.pop()]}else{spaces=[]}hasTag=false;nonSpace=false}var openingTagRe,closingTagRe,closingCurlyRe;function compileTags(tags){if(typeof tags==='string')tags=tags.split(spaceRe,2);if(!isArray(tags)||tags.length!==2)throw new Error('Invalid tags: '+tags);openingTagRe=new RegExp(escapeRegExp(tags[0])+'\\s*');closingTagRe=new RegExp('\\s*'+escapeRegExp(tags[1]));closingCurlyRe=new RegExp('\\s*'+escapeRegExp('}'+tags[1]))}compileTags(tags||mustache.tags);var scanner=new Scanner(template);var start,type,value,chr,token,openSection;while(!scanner.eos()){start=scanner.pos;value=scanner.scanUntil(openingTagRe);if(value){for(var i=0,valueLength=value.length;i0?sections[sections.length-1][4]:nestedTokens;break;default:collector.push(token)}}return nestedTokens}function Scanner(string){this.string=string;this.tail=string;this.pos=0}Scanner.prototype.eos=function(){return this.tail===""};Scanner.prototype.scan=function(re){var match=this.tail.match(re);if(!match||match.index!==0)return'';var string=match[0];this.tail=this.tail.substring(string.length);this.pos+=string.length;return string};Scanner.prototype.scanUntil=function(re){var index=this.tail.search(re),match;switch(index){case-1:match=this.tail;this.tail="";break;case 0:match="";break;default:match=this.tail.substring(0,index);this.tail=this.tail.substring(index)}this.pos+=match.length;return match};function Context(view,parentContext){this.view=view==null?{}:view;this.cache={'.':this.view};this.parent=parentContext}Context.prototype.push=function(view){return new Context(view,this)};Context.prototype.lookup=function(name){var cache=this.cache;var value;if(name in cache){value=cache[name]}else{var context=this,names,index;while(context){if(name.indexOf('.')>0){value=context.view;names=name.split('.');index=0;while(value!=null&&index':if(!partials)continue;value=isFunction(partials)?partials(token[1]):partials[token[1]];if(value!=null)buffer+=this.renderTokens(this.parse(value),context,partials,value);break;case'&':value=context.lookup(token[1]);if(value!=null)buffer+=value;break;case'name':value=context.lookup(token[1]);if(value!=null)buffer+=mustache.escape(value);break;case'text':buffer+=token[1];break}}return buffer};mustache.name="mustache.js";mustache.version="0.8.1";mustache.tags=["{{","}}"];var defaultWriter=new Writer();mustache.clearCache=function(){return defaultWriter.clearCache()};mustache.parse=function(template,tags){return defaultWriter.parse(template,tags)};mustache.render=function(template,view,partials){return defaultWriter.render(template,view,partials)};mustache.to_html=function(template,view,partials,send){var result=mustache.render(template,view,partials);if(isFunction(send)){send(result)}else{return result}};mustache.escape=escapeHtml;mustache.Scanner=Scanner;mustache.Context=Context;mustache.Writer=Writer})); // //compactados/util_compacto.js -if(typeof(i3GEO)==='undefined'){var i3GEO={}}var navm=false;var navn=false;var chro=navigator.userAgent.toLowerCase().indexOf('chrome')>-1;var opera=navigator.userAgent.toLowerCase().indexOf('opera')>-1;if(navigator.appName.substring(0,1)==='N'){navn=true}if(navigator.appName.substring(0,1)==='M'){navm=true}if(opera===true){navn=true}var g_operacao="";var g_tipoacao="zoomli";var $i=function(id){if(!id||id===""){return false}return document.getElementById(id)};Array.prototype.remove=function(s){try{var n=this.length,i;for(i=0;i"+titulo+"";d={html:titulo};tempNode=new YAHOO.widget.HTMLNode(d,root,true,true);tempNode.enableHighlight=true;criaNo=function(obj,noDestino){var trad,i,j,linha,conteudo,temaNode,c=obj.propriedades.length;for(i=0,j=c;i"+trad+""}else{conteudo=linha.text}d={html:conteudo};temaNode=new YAHOO.widget.HTMLNode(d,noDestino,false,true);temaNode.enableHighlight=false;if(obj.propriedades[i].propriedades){criaNo(obj.propriedades[i],temaNode)}}};criaNo(obj,tempNode);arvore.collapseAll();arvore.draw();return arvore},removeAcentos:function(str){var defaultDiacriticsRemovalMap=[{'base':'A','letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{'base':'C','letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{'base':'E','letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{'base':'I','letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{'base':'O','letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{'base':'U','letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{'base':'a','letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{'base':'c','letters':/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{'base':'e','letters':/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{'base':'i','letters':/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{'base':'o','letters':/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{'base':'u','letters':/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g}];for(var i=0;i';document.body.appendChild(novoel);novoel.onmouseover=function(){novoel.style.display='none'};novoel.onmouseout=function(){novoel.style.display='block'};i3GEO.util.BOXES.push(id)}else{$i(id).style.display="block"}},escondeBox:function(){var l,i;l=i3GEO.util.BOXES.length;for(i=0;i"},$inputTextMudaCor:function(obj){var n=obj.value.split(" ");obj.style.color="rgb("+n[0]+","+n[1]+","+n[2]+")"},$top:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelTop){document.getElementById(id).style.pixelTop=valor}else{document.getElementById(id).style.top=valor+"px"}}},$left:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelLeft){document.getElementById(id).style.pixelLeft=valor}else{document.getElementById(id).style.left=valor+"px"}}},adicionaSHP:function(path){var temp=path.split(".");if((temp[1]==="SHP")||(temp[1]==="shp")){i3GEO.php.adicionaTemaSHP(i3GEO.atualiza,path)}else{i3GEO.php.adicionaTemaIMG(i3GEO.atualiza,path)}},abreCor:function(janelaid,elemento,tipo){if(!i3GEO.configura){i3GEO.configura={locaplic:"../"}}if(arguments.length===2){tipo="rgb"}var janela,ins,novoel,wdocaiframe,wsrc=i3GEO.configura.locaplic+"/ferramentas/colorpicker/index.htm?doc="+janelaid+"&elemento="+elemento+"&tipo="+tipo,texto="Cor",id="i3geo_janelaCor",classe="hd";if($i(id)){YAHOO.i3GEO.janela.manager.find(id).show();return}ins='
';ins+="";ins+=texto;ins+='
';if(wsrc!==""){ins+=''}ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCor";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCori");if(wdocaiframe){wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="230px";wdocaiframe.style.width="325px";wdocaiframe.style.border="0px solid white"}janela=new YAHOO.widget.Panel(id,{height:"290px",modal:false,width:"350px",fixedcenter:true,constraintoviewport:false,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe},aparece:function(id,tempo,intervalo){var n,obj,opacidade,fadei=0,tempoFadei=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="block";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=0;if(navm){obj.style.filter='alpha(opacity=0)'}else{obj.style.opacity=0}obj.style.display="block";fadei=function(){opacidade+=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade<100){tempoFadei=setTimeout(fadei,tempo)}else{if(tempoFadei){clearTimeout(tempoFadei)}if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}};tempoFadei=setTimeout(fadei,tempo)},desaparece:function(id,tempo,intervalo,removeobj){var n,obj,opacidade,fade=0,p,tempoFade=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="none";if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}return}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=100;if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}obj.style.display="block";fade=function(){opacidade-=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade>0){tempoFade=setTimeout(fade,tempo)}else{if(tempoFade){clearTimeout(tempoFade)}obj.style.display="none";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}}};tempoFade=setTimeout(fade,tempo)},wkt2ext:function(wkt,tipo){var re,x,y,w,xMin,xMax,yMin,yMax,temp;tipo=tipo.toLowerCase();ext=false;if(tipo==="polygon"){try{re=new RegExp("POLYGON","g");wkt=wkt.replace(re,"");wkt=wkt.split("(")[2].split(")")[0];wkt=wkt.split(",");x=[];y=[];for(w=0;w';if(onde!==""){$i(onde).innerHTML=ins}else{return(ins)}},randomRGB:function(){var v=Math.random(),r=parseInt(255*v,10),g;v=Math.random();g=parseInt(255*v,10);v=Math.random();b=parseInt(255*v,10);return(r+","+g+","+b)},rgb2hex:function(str){var re=new RegExp(" ","g"),rgb=str.replace(re,',');return YAHOO.util.Dom.Color.toHex("rgb("+rgb+")")},comboTemas:function(id,funcao,onde,nome,multiplo,tipoCombo,estilo,yui,incluiVazio){if(onde&&onde!==""){i3GEO.util.defineValor(onde,"innerHTML","buscando temas...")}if(!nome){nome=""}if(!multiplo){multiplo=false}if(!estilo||estilo==""){estilo="font-size: 12px;width: 95%;"}if(!yui){yui=false}if(!incluiVazio){incluiVazio=false}var monta,temp,temp1,temp2;monta=function(retorno){var i,comboTemas='',n,nome="",tema;if(yui===true){comboTemas='';id=id+"select";nome=id}if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){if(multiplo){comboTemas+=""}if(yui===false||incluiVazio===true){comboTemas+=""}for(i=0;i"+nome+""}}comboTemas+="";temp={dados:comboTemas,tipo:"dados"}}else{if(tipoCombo==="poligonosSelecionados"||tipoCombo==="selecionados"||tipoCombo==="pontosSelecionados"){temp={dados:'
Nenhum tema encontrado. Selecionar...
',tipo:"mensagem"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")};if(tipoCombo==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="ligadosComTabela"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"menor",temp);temp2=i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"igual",temp);monta(temp1.concat(temp2))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="locais"){i3GEO.php.listaTemasEditaveis(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}if(tipoCombo==="editavel"){temp=i3GEO.arvoreDeCamadas.filtraCamadas("editavel","SIM","igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(temp)}if(tipoCombo==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="pontosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="pontos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naoraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",4,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",5,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",6,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",7,"diferente",temp);monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"diferente",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naolinearSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",1,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="linhaDoTempo"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("linhadotempo","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo===""){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type","","diferente",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}},checkCombo:function(id,nomes,valores,estilo,funcaoclick,ids,idschecked){var temp,i,combo="",n=valores.length;if(n>0){combo="

";for(i=0;i"}else{combo+=""}}combo+="
"+nomes[i]+"
"+nomes[i]+"
"}return combo},valoresCheckCombo:function(id){var el=$i(id),res=[],n,i;if(el){el=el.getElementsByTagName("input");n=el.length;for(i=0;i2){$i(onde).innerHTML="buscando temas..."}if(arguments.length===3){nome=""}var monta,temp,temp1,n,i;monta=function(retorno){try{var i,comboTemas,n,nome;if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){comboTemas="";for(i=0;i";comboTemas+=""}comboTemas+="
 
";temp={dados:comboTemas,tipo:"dados"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")}catch(e){}};if(tipoLista==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="polraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);n=temp1.length;for(i=0;i3&&$i(onde)){$i(onde).innerHTML="buscando itens..."}if(arguments.length!==5){nome=""}var monta=function(retorno){var ins,temp,i,nm;if(retorno.data!==undefined){ins=[];ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'

Ocorreu um erro
',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaItensTema(monta,tema)},comboValoresItem:function(id,tema,itemTema,funcao,onde){if(arguments.length===5){$i(onde).innerHTML="buscando valores..."}var monta=function(retorno){var ins=[],i,pares,j,valoresSort=[];if(retorno.data!==undefined){ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaValoresItensTema(monta,tema,itemTema)},comboFontes:function(id,onde){$i(onde).innerHTML="buscando fontes...";var monta=function(retorno){var ins="",temp,i,dados;if(retorno.data!==undefined){ins+=""}$i(onde).innerHTML=ins};i3GEO.php.listaFontesTexto(monta)},comboSimNao:function(id,selecionado){var combo="";return(combo)},checkItensEditaveis:function(tema,funcao,onde,size,prefixo,ordenacao){if(!ordenacao||ordenacao==""){ordenacao="nao"}if(onde!==""){$i(onde).innerHTML=""+$trad("x65")+""}var monta=function(retorno){var ins=[],i,temp,n;if(retorno.data!==undefined){if(ordenacao==="sim"){ins.push("")}else{ins.push("
"+$trad("x64")+"Ordem
")}n=retorno.data.valores.length;for(i=0;i");ins.push("");if(ordenacao==="sim"){ins.push("")}else{ins.push("")}ins.push("")}ins.push("
"+$trad("x64")+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
'+$trad("x66")+'
',tipo:"erro"}}funcao.call(this,temp)};i3GEO.php.listaItensTema(monta,tema)},radioEpsg:function(funcao,onde,prefixo,marcado){var c;if(arguments.length===2){$i(onde).innerHTML="buscando..."}c="checked";if(marcado&&marcado==="nao"){c=""}var monta=function(retorno){var ins=[],i,n,temp;if(retorno.data!==undefined){ins.push("");n=retorno.data.length;for(i=0;i");c="";ins.push("")}ins.push("
"+retorno.data[i].nome+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro
',tipo:"erro"}}funcao(temp)};i3GEO.php.listaEpsg(monta)},comboEpsg:function(idCombo,onde,funcaoOnChange,valorDefault){onde=$i(onde);onde.innerHTML="buscando...";var monta=function(retorno){var ins=[],i,n;if(retorno.data!==undefined){n=retorno.data.length;ins.push("");ins=ins.join('');onde.innerHTML=ins;$i(idCombo).value=valorDefault}else{onde.innerHTML='
Ocorreu um erro
'}};i3GEO.php.listaEpsg(monta)},proximoAnterior:function(anterior,proxima,texto,idatual,container,mantem,onde){var temp=$i(idatual),botoes="",ndiv=document.createElement("div"),nids,i;if(!mantem){mantem=false}if(temp&&mantem==false){$i(container).removeChild(temp)}$i(container).style.backgroundColor="white";botoes="";if(anterior!==""){botoes+=""}if(proxima!==""){botoes+=""}botoes+="
";var ativaBotoes=function(anterior,proxima,idatual){var i;new YAHOO.widget.Button(idatual+"anterior_",{onclick:{fn:function(){eval(anterior+"()")},lazyloadmenu:true}});new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn:function(){eval(proxima+"()")},lazyloadmenu:true}});i=$i(idatual+"proxima_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_avanca.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}i=$i(idatual+"anterior_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_volta.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}};if(onde){$i(onde).innerHTML=botoes}else{texto=texto+"

"+botoes}if(!document.getElementById(idatual)){ndiv.id=idatual;ndiv.innerHTML=texto;$i(container).appendChild(ndiv)}ativaBotoes(anterior,proxima,idatual);temp=$i(container).getElementsByTagName("div");nids=temp.length;for(i=0;i=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}box1=box1i;box2=box2i;coordx=box1[0]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}return false},abreColourRamp:function(janelaid,elemento,ncores,temaSel,displayComboTemas){var janela,ins,novoel,wdocaiframe,temp,fix=false,wsrc=i3GEO.configura.locaplic+"/ferramentas/colourramp/index.php?ncores="+ncores+"&doc="+janelaid+"&elemento="+elemento+"&locaplic="+i3GEO.configura.locaplic,nx="",texto="",id="i3geo_janelaCorRamp",classe="hd";if(!temaSel){temaSel=""}if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}ins='
';ins+="";if(i3GEO&&i3GEO.arvoreDeCamadas){ins+="
------
"}ins+="   "+texto;ins+='
';ins+='';ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCorRamp";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCorRampi");wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="380px";wdocaiframe.style.width="100%";wdocaiframe.style.border="0px solid white";if(nx===""||nx==="center"){fix=true}janela=new YAHOO.widget.Panel(id,{height:"430px",modal:false,width:"280px",fixedcenter:fix,constraintoviewport:true,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe;if($i("i3geo_janelaCorRampComboCabeca")){temp=function(){var p,tema=$i("i3geo_janelaCorRampComboCabecaSel").value,funcao=function(retorno){parent.frames["i3geo_janelaCorRampi"].document.getElementById("ncores").value=retorno.data.length};if(tema!==""){i3GEO.mapa.ativaTema(tema);p=i3GEO.configura.locaplic+"/ferramentas/legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=editalegenda&opcao=edita&tema="+tema;i3GEO.util.ajaxGet(p,funcao);cp=new cpaint()}};i3GEO.janela.comboCabecalhoTemas("i3geo_janelaCorRampComboCabeca","i3geo_janelaCorRampComboCabecaSel","none","ligados",temp,temaSel)}},localizai3GEO:function(){var scriptLocation="",scripts=document.getElementsByTagName('script'),i=0,index,ns=scripts.length,src;for(i=0;i-1)&&(index+"/js/i3geo.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geo.js".length);break}index=src.lastIndexOf("/js/i3geonaocompacto.js");if((index>-1)&&(index+"/js/i3geonaocompacto.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geonaocompacto.js".length);break}}}if(i3GEO.configura){i3GEO.configura.locaplic=scriptLocation}return scriptLocation},removeChild:function(id,el){var j=$i(id);if(j){if(!el){el=j.parentNode}el.removeChild(j)}},defineValor:function(id,prop,valor){var o=$i(id);if(o){try{$i(id)[prop]=valor}catch(e){}}},in_array:function(x,matriz){var txt=" "+matriz.join(" ")+" ";var er=new RegExp(" "+x+" ","gim");return((txt.match(er))?true:false)},timedProcessArray:function(items,process,callback){var todo=items.concat();setTimeout(function(){var start=+new Date();do{process(todo.shift())}while(todo.length>0&&(+new date()-start<50));if(todo.length>0){setTimeout(arguments.callee,25)}else{callback(items)}},25)},multiStep:function(steps,args,callback){var tasks=steps.concat();setTimeout(function(){var task=tasks.shift(),a=args.shift();task.apply(null,a||[]);if(tasks.length>0){setTimeout(arguments.callee,25)}else{callback()}},25)},tamanhoBrowser:function(){var viewportwidth,viewportheight;if(typeof window.innerWidth!='undefined'){viewportwidth=window.innerWidth,viewportheight=window.innerHeight}else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0){viewportwidth=document.documentElement.clientWidth,viewportheight=document.documentElement.clientHeight}else{viewportwidth=document.getElementsByTagName('body')[0].clientWidth,viewportheight=document.getElementsByTagName('body')[0].clientHeight}viewportwidth=viewportwidth-i3GEO.util.getScrollerWidth();return[viewportwidth,viewportheight]},detectaTablet:function(){var p,c=DetectaMobile("DetectTierTablet");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},detectaMobile:function(){var p,c=DetectaMobile("DetectMobileLong");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},calculaDPI:function(){var novoel=document.createElement("div"),valor=72;novoel.style.height="1in";novoel.style.left="-100%";novoel.style.position="absolute";novoel.style.top="-100%";novoel.style.width="1in";document.body.appendChild(novoel);if(novoel.offsetHeight){valor=novoel.offsetHeight}document.body.removeChild(novoel);return valor},ajustaDocType:function(){try{if(document.implementation.createDocumentType){var newDoctype=document.implementation.createDocumentType('html','-//W3C//DTD XHTML 1.0 Transitional//EN','http://www.w3.org/TR/html4/loose.dtd');if(document.doctype){document.doctype.parentNode.replaceChild(newDoctype,document.doctype)}}}catch(e){}},versaoNavegador:function(){if(navm&&navigator.userAgent.toLowerCase().indexOf('msie 8.')>-1){return"IE8"}if(navn&&navigator.userAgent.toLowerCase().indexOf('3.')>-1){return"FF3"}return""},decimalPlaces:function(f,l){var ret="",str=f.toString(),array=str.split("."),i;if(array.length==2){ret+=array[0]+".";for(i=0;i=array[1].length)ret+='0';else ret+=array[1][i]}}else if(array.length==1){ret+=array[0]+".";for(i=0;i=-180){point=new ol.geom.Point([temp[0]*1,temp[1]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext=metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2]*1,temp[3]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext+=sep+metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},extOSM2Geo:function(ext,retornaArray){var point,temp,sep;sep=" ";if(typeof ext=="object"){return i3GEO.util.projOSM2Geo(ext)}if(i3GEO.Interface.openlayers.googleLike===true){temp=ext.split(sep);if(temp===1){sep=",";temp=ext.split(sep)}if(temp[0]*1>=180||temp[0]*1<=-180){point=new ol.geom.Point([temp[0],temp[1]]);point.transform("EPSG:3857","EPSG:4326");ext=point.getCoordinates()[0]+sep+point.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2],temp[3]]);point.transform("EPSG:3857","EPSG:4326");ext+=sep+point.getCoordinates()[0]+sep+point.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},projOSM2Geo:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:3857","EPSG:4326");return clone}else{return obj}},projGeo2OSM:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:4326","EPSG:3857");return clone}else{return obj}},navegadorDir:function(obj,listaShp,listaImg,listaFig,retornaDir){if(!obj){listaShp=true;listaImg=true;listaFig=true;retornaDir=false}var temp=function(){i3GEOF.navegarquivos.iniciaDicionario(obj,listaShp,listaImg,listaFig,retornaDir)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorDir()","navegarquivos","navegarquivos","index.js",temp)},navegadorPostgis:function(obj,conexao,tipo){if(!obj){conexao=""}if(!tipo){tipo="sql"}var temp=function(){i3GEOF.navegapostgis.iniciaDicionario(obj,conexao,tipo)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorPostgis()","navegapostgis","navegapostgis","index.js",temp)},base64encode:function(str){var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out},base64decode:function(str){var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i-1;var opera=navigator.userAgent.toLowerCase().indexOf('opera')>-1;if(navigator.appName.substring(0,1)==='N'){navn=true}if(navigator.appName.substring(0,1)==='M'){navm=true}if(opera===true){navn=true}var g_operacao="";var g_tipoacao="zoomli";var $i=function(id){if(!id||id===""){return false}return document.getElementById(id)};Array.prototype.remove=function(s){try{var n=this.length,i;for(i=0;i"+titulo+"";d={html:titulo};tempNode=new YAHOO.widget.HTMLNode(d,root,true,true);tempNode.enableHighlight=true;criaNo=function(obj,noDestino){var trad,i,j,linha,conteudo,temaNode,c=obj.propriedades.length;for(i=0,j=c;i"+trad+""}else{conteudo=linha.text}d={html:conteudo};temaNode=new YAHOO.widget.HTMLNode(d,noDestino,false,true);temaNode.enableHighlight=false;if(obj.propriedades[i].propriedades){criaNo(obj.propriedades[i],temaNode)}}};criaNo(obj,tempNode);arvore.collapseAll();arvore.draw();return arvore},removeAcentos:function(str){var defaultDiacriticsRemovalMap=[{'base':'A','letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{'base':'C','letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{'base':'E','letters':/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{'base':'I','letters':/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{'base':'O','letters':/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{'base':'U','letters':/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{'base':'a','letters':/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{'base':'c','letters':/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{'base':'e','letters':/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{'base':'i','letters':/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{'base':'o','letters':/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{'base':'u','letters':/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g}];for(var i=0;i';document.body.appendChild(novoel);novoel.onmouseover=function(){novoel.style.display='none'};novoel.onmouseout=function(){novoel.style.display='block'};i3GEO.util.BOXES.push(id)}else{$i(id).style.display="block"}},escondeBox:function(){var l,i;l=i3GEO.util.BOXES.length;for(i=0;i"},$inputTextMudaCor:function(obj){var n=obj.value.split(" ");obj.style.color="rgb("+n[0]+","+n[1]+","+n[2]+")"},$top:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelTop){document.getElementById(id).style.pixelTop=valor}else{document.getElementById(id).style.top=valor+"px"}}},$left:function(id,valor){if(document.getElementById(id).style){if(document.getElementById(id).style.pixelLeft){document.getElementById(id).style.pixelLeft=valor}else{document.getElementById(id).style.left=valor+"px"}}},adicionaSHP:function(path){var temp=path.split(".");if((temp[1]==="SHP")||(temp[1]==="shp")){i3GEO.php.adicionaTemaSHP(i3GEO.atualiza,path)}else{i3GEO.php.adicionaTemaIMG(i3GEO.atualiza,path)}},abreCor:function(janelaid,elemento,tipo){if(!i3GEO.configura){i3GEO.configura={locaplic:"../"}}if(arguments.length===2){tipo="rgb"}var janela,ins,novoel,wdocaiframe,wsrc=i3GEO.configura.locaplic+"/ferramentas/colorpicker/index.htm?doc="+janelaid+"&elemento="+elemento+"&tipo="+tipo,texto="Cor",id="i3geo_janelaCor",classe="hd";if($i(id)){YAHOO.i3GEO.janela.manager.find(id).show();return}ins='
';ins+="";ins+=texto;ins+='
';if(wsrc!==""){ins+=''}ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCor";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCori");if(wdocaiframe){wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="230px";wdocaiframe.style.width="325px";wdocaiframe.style.border="0px solid white"}janela=new YAHOO.widget.Panel(id,{height:"290px",modal:false,width:"350px",fixedcenter:true,constraintoviewport:false,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe},aparece:function(id,tempo,intervalo){var n,obj,opacidade,fadei=0,tempoFadei=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="block";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=0;if(navm){obj.style.filter='alpha(opacity=0)'}else{obj.style.opacity=0}obj.style.display="block";fadei=function(){opacidade+=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade<100){tempoFadei=setTimeout(fadei,tempo)}else{if(tempoFadei){clearTimeout(tempoFadei)}if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}}};tempoFadei=setTimeout(fadei,tempo)},desaparece:function(id,tempo,intervalo,removeobj){var n,obj,opacidade,fade=0,p,tempoFade=null;n=parseInt(tempo/intervalo,10);obj=$i(id);if(n===1){obj.style.display="none";if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}return}tempo=n*intervalo;intervalo=(intervalo*100)/tempo;opacidade=100;if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}obj.style.display="block";fade=function(){opacidade-=intervalo;if(navm){obj.style.filter='alpha(opacity='+opacidade+')'}else{obj.style.opacity=opacidade/100}if(opacidade>0){tempoFade=setTimeout(fade,tempo)}else{if(tempoFade){clearTimeout(tempoFade)}obj.style.display="none";if(navm){obj.style.filter='alpha(opacity=100)'}else{obj.style.opacity=1}if(removeobj){p=obj.parentNode;if(p){p.removeChild(obj)}}}};tempoFade=setTimeout(fade,tempo)},wkt2ext:function(wkt,tipo){var re,x,y,w,xMin,xMax,yMin,yMax,temp;tipo=tipo.toLowerCase();ext=false;if(tipo==="polygon"){try{re=new RegExp("POLYGON","g");wkt=wkt.replace(re,"");wkt=wkt.split("(")[2].split(")")[0];wkt=wkt.split(",");x=[];y=[];for(w=0;w';if(onde!==""){$i(onde).innerHTML=ins}else{return(ins)}},randomRGB:function(){var v=Math.random(),r=parseInt(255*v,10),g;v=Math.random();g=parseInt(255*v,10);v=Math.random();b=parseInt(255*v,10);return(r+","+g+","+b)},rgb2hex:function(str){var rgb=str.split(",");function hex(x){return("0"+parseInt(x).toString(16)).slice(-2)}return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2])},comboTemas:function(id,funcao,onde,nome,multiplo,tipoCombo,estilo,yui,incluiVazio){if(onde&&onde!==""){i3GEO.util.defineValor(onde,"innerHTML","buscando temas...")}if(!nome){nome=""}if(!multiplo){multiplo=false}if(!estilo||estilo==""){estilo="font-size: 12px;width: 95%;"}if(!yui){yui=false}if(!incluiVazio){incluiVazio=false}var monta,temp,temp1,temp2;monta=function(retorno){var i,comboTemas='',n,nome="",tema;if(yui===true){comboTemas='';id=id+"select";nome=id}if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){if(multiplo){comboTemas+=""}if(yui===false||incluiVazio===true){comboTemas+=""}for(i=0;i"+nome+""}}comboTemas+="";temp={dados:comboTemas,tipo:"dados"}}else{if(tipoCombo==="poligonosSelecionados"||tipoCombo==="selecionados"||tipoCombo==="pontosSelecionados"){temp={dados:'
Nenhum tema encontrado. Selecionar...
',tipo:"mensagem"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")};if(tipoCombo==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="ligadosComTabela"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"menor",temp);temp2=i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"igual",temp);monta(temp1.concat(temp2))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="locais"){i3GEO.php.listaTemasEditaveis(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}if(tipoCombo==="editavel"){temp=i3GEO.arvoreDeCamadas.filtraCamadas("editavel","SIM","igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(temp)}if(tipoCombo==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoCombo==="pontosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="pontos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",0,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonos"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naoraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",4,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",5,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",6,"diferente",temp);temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",7,"diferente",temp);monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",8,"diferente",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="poligonosSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="naolinearSelecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",1,"diferente",i3GEO.arvoreDeCamadas.CAMADAS);monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",temp))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo==="linhaDoTempo"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("linhadotempo","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}if(tipoCombo===""){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type","","diferente",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.janela.tempoMsg($trad("x13"))}}},checkCombo:function(id,nomes,valores,estilo,funcaoclick,ids,idschecked){var temp,i,combo="",n=valores.length;if(n>0){combo="

";for(i=0;i"}else{combo+=""}}combo+="
"+nomes[i]+"
"+nomes[i]+"
"}return combo},valoresCheckCombo:function(id){var el=$i(id),res=[],n,i;if(el){el=el.getElementsByTagName("input");n=el.length;for(i=0;i2){$i(onde).innerHTML="buscando temas..."}if(arguments.length===3){nome=""}var monta,temp,temp1,n,i;monta=function(retorno){try{var i,comboTemas,n,nome;if(retorno!==undefined){if(retorno.data){retorno=retorno.data}n=retorno.length;if(n>0){comboTemas="";for(i=0;i";comboTemas+=""}comboTemas+="
 
";temp={dados:comboTemas,tipo:"dados"}}else{temp={dados:'
Nenhum tema encontrado.
',tipo:"mensagem"}}}else{temp={dados:"

Ocorreu um erro
",tipo:"erro"}}eval("funcao(temp);")}catch(e){}};if(tipoLista==="ligados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("status",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemas(monta,"ligados",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="selecionados"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("sel","sim","igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listaTemasComSel(monta,i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="raster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){monta(i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS))}else{i3GEO.php.listatemasTipo(monta,"raster",i3GEO.configura.locaplic,i3GEO.configura.sid)}}if(tipoLista==="polraster"){if(i3GEO.arvoreDeCamadas.CAMADAS!==""){temp=i3GEO.arvoreDeCamadas.filtraCamadas("type",3,"igual",i3GEO.arvoreDeCamadas.CAMADAS);temp1=i3GEO.arvoreDeCamadas.filtraCamadas("type",2,"igual",i3GEO.arvoreDeCamadas.CAMADAS);n=temp1.length;for(i=0;i3&&$i(onde)){$i(onde).innerHTML="buscando itens..."}if(arguments.length!==5){nome=""}var monta=function(retorno){var ins,temp,i,nm;if(retorno.data!==undefined){ins=[];ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'

Ocorreu um erro
',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaItensTema(monta,tema)},comboValoresItem:function(id,tema,itemTema,funcao,onde){if(arguments.length===5){$i(onde).innerHTML="buscando valores..."}var monta=function(retorno){var ins=[],i,pares,j,valoresSort=[];if(retorno.data!==undefined){ins.push("");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro',tipo:"erro"}}eval("funcao(temp)")};i3GEO.php.listaValoresItensTema(monta,tema,itemTema)},comboFontes:function(id,onde){$i(onde).innerHTML="buscando fontes...";var monta=function(retorno){var ins="",temp,i,dados;if(retorno.data!==undefined){ins+=""}$i(onde).innerHTML=ins};i3GEO.php.listaFontesTexto(monta)},comboSimNao:function(id,selecionado){var combo="";return(combo)},checkItensEditaveis:function(tema,funcao,onde,size,prefixo,ordenacao){if(!ordenacao||ordenacao==""){ordenacao="nao"}if(onde!==""){$i(onde).innerHTML=""+$trad("x65")+""}var monta=function(retorno){var ins=[],i,temp,n;if(retorno.data!==undefined){if(ordenacao==="sim"){ins.push("")}else{ins.push("
"+$trad("x64")+"Ordem
")}n=retorno.data.valores.length;for(i=0;i");ins.push("");if(ordenacao==="sim"){ins.push("")}else{ins.push("")}ins.push("")}ins.push("
"+$trad("x64")+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
'+$trad("x66")+'
',tipo:"erro"}}funcao.call(this,temp)};i3GEO.php.listaItensTema(monta,tema)},radioEpsg:function(funcao,onde,prefixo,marcado){var c;if(arguments.length===2){$i(onde).innerHTML="buscando..."}c="checked";if(marcado&&marcado==="nao"){c=""}var monta=function(retorno){var ins=[],i,n,temp;if(retorno.data!==undefined){ins.push("");n=retorno.data.length;for(i=0;i");c="";ins.push("")}ins.push("
"+retorno.data[i].nome+"
");ins=ins.join('');temp={dados:ins,tipo:"dados"}}else{temp={dados:'
Ocorreu um erro
',tipo:"erro"}}funcao(temp)};i3GEO.php.listaEpsg(monta)},comboEpsg:function(idCombo,onde,funcaoOnChange,valorDefault){onde=$i(onde);onde.innerHTML="buscando...";var monta=function(retorno){var ins=[],i,n;if(retorno.data!==undefined){n=retorno.data.length;ins.push("");ins=ins.join('');onde.innerHTML=ins;$i(idCombo).value=valorDefault}else{onde.innerHTML='
Ocorreu um erro
'}};i3GEO.php.listaEpsg(monta)},proximoAnterior:function(anterior,proxima,texto,idatual,container,mantem,onde){var temp=$i(idatual),botoes="",ndiv=document.createElement("div"),nids,i;if(!mantem){mantem=false}if(temp&&mantem==false){$i(container).removeChild(temp)}$i(container).style.backgroundColor="white";botoes="";if(anterior!==""){botoes+=""}if(proxima!==""){botoes+=""}botoes+="
";var ativaBotoes=function(anterior,proxima,idatual){var i;new YAHOO.widget.Button(idatual+"anterior_",{onclick:{fn:function(){eval(anterior+"()")},lazyloadmenu:true}});new YAHOO.widget.Button(idatual+"proxima_",{onclick:{fn:function(){eval(proxima+"()")},lazyloadmenu:true}});i=$i(idatual+"proxima_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_avanca.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}i=$i(idatual+"anterior_-button");if(i){i.style.backgroundImage="url('"+i3GEO.configura.locaplic+"/imagens/player_volta.png')";i.style.backgroundRepeat="no-repeat";i.style.backgroundPosition="center center"}};if(onde){$i(onde).innerHTML=botoes}else{texto=texto+"

"+botoes}if(!document.getElementById(idatual)){ndiv.id=idatual;ndiv.innerHTML=texto;$i(container).appendChild(ndiv)}ativaBotoes(anterior,proxima,idatual);temp=$i(container).getElementsByTagName("div");nids=temp.length;for(i=0;i=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}box1=box1i;box2=box2i;coordx=box1[0]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[3]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}coordx=box1[2]*1;coordy=box1[1]*1;if(coordx>=box2[0]*1&&coordx<=box2[2]*1&&coordy>=box2[1]*1&&coordy<=box2[3]*1){return true}return false},abreColourRamp:function(janelaid,elemento,ncores,temaSel,displayComboTemas){var janela,ins,novoel,wdocaiframe,temp,fix=false,wsrc=i3GEO.configura.locaplic+"/ferramentas/colourramp/index.php?ncores="+ncores+"&doc="+janelaid+"&elemento="+elemento+"&locaplic="+i3GEO.configura.locaplic,nx="",texto="",id="i3geo_janelaCorRamp",classe="hd";if(!temaSel){temaSel=""}if($i(id)){janela=YAHOO.i3GEO.janela.manager.find(id);janela.show();janela.bringToTop();return}ins='
';ins+="";if(i3GEO&&i3GEO.arvoreDeCamadas){ins+="
------
"}ins+="   "+texto;ins+='
';ins+='';ins+='
';novoel=document.createElement("div");novoel.id="i3geo_janelaCorRamp";novoel.style.display="block";novoel.innerHTML=ins;if($i("i3geo")){$i("i3geo").appendChild(novoel)}else{document.body.appendChild(novoel)}wdocaiframe=$i("i3geo_janelaCorRampi");wdocaiframe.style.display="block";wdocaiframe.src=wsrc;wdocaiframe.style.height="380px";wdocaiframe.style.width="100%";wdocaiframe.style.border="0px solid white";if(nx===""||nx==="center"){fix=true}janela=new YAHOO.widget.Panel(id,{height:"430px",modal:false,width:"280px",fixedcenter:fix,constraintoviewport:true,visible:true,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$i(id+'_cabecalho').className=classe;if($i("i3geo_janelaCorRampComboCabeca")){temp=function(){var p,tema=$i("i3geo_janelaCorRampComboCabecaSel").value,funcao=function(retorno){parent.frames["i3geo_janelaCorRampi"].document.getElementById("ncores").value=retorno.data.length};if(tema!==""){i3GEO.mapa.ativaTema(tema);p=i3GEO.configura.locaplic+"/ferramentas/legenda/exec.php?g_sid="+i3GEO.configura.sid+"&funcao=editalegenda&opcao=edita&tema="+tema;i3GEO.util.ajaxGet(p,funcao);cp=new cpaint()}};i3GEO.janela.comboCabecalhoTemas("i3geo_janelaCorRampComboCabeca","i3geo_janelaCorRampComboCabecaSel","none","ligados",temp,temaSel)}},localizai3GEO:function(){var scriptLocation="",scripts=document.getElementsByTagName('script'),i=0,index,ns=scripts.length,src;for(i=0;i-1)&&(index+"/js/i3geo.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geo.js".length);break}index=src.lastIndexOf("/js/i3geonaocompacto.js");if((index>-1)&&(index+"/js/i3geonaocompacto.js".length===src.length)){scriptLocation=src.slice(0,-"/js/i3geonaocompacto.js".length);break}}}if(i3GEO.configura){i3GEO.configura.locaplic=scriptLocation}return scriptLocation},removeChild:function(id,el){var j=$i(id);if(j){if(!el){el=j.parentNode}el.removeChild(j)}},defineValor:function(id,prop,valor){var o=$i(id);if(o){try{$i(id)[prop]=valor}catch(e){}}},in_array:function(x,matriz){var txt=" "+matriz.join(" ")+" ";var er=new RegExp(" "+x+" ","gim");return((txt.match(er))?true:false)},timedProcessArray:function(items,process,callback){var todo=items.concat();setTimeout(function(){var start=+new Date();do{process(todo.shift())}while(todo.length>0&&(+new date()-start<50));if(todo.length>0){setTimeout(arguments.callee,25)}else{callback(items)}},25)},multiStep:function(steps,args,callback){var tasks=steps.concat();setTimeout(function(){var task=tasks.shift(),a=args.shift();task.apply(null,a||[]);if(tasks.length>0){setTimeout(arguments.callee,25)}else{callback()}},25)},tamanhoBrowser:function(){var viewportwidth,viewportheight;if(typeof window.innerWidth!='undefined'){viewportwidth=window.innerWidth,viewportheight=window.innerHeight}else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0){viewportwidth=document.documentElement.clientWidth,viewportheight=document.documentElement.clientHeight}else{viewportwidth=document.getElementsByTagName('body')[0].clientWidth,viewportheight=document.getElementsByTagName('body')[0].clientHeight}viewportwidth=viewportwidth-i3GEO.util.getScrollerWidth();return[viewportwidth,viewportheight]},detectaTablet:function(){var p,c=DetectaMobile("DetectTierTablet");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},detectaMobile:function(){var p,c=DetectaMobile("DetectMobileLong");if(c===false){return false}p=confirm($trad("x73"));if(p){window.location=i3GEO.configura.locaplic+'/interface/'+i3GEO.Interface.ALTTABLET+'?'+i3GEO.configura.sid;return true}},calculaDPI:function(){var novoel=document.createElement("div"),valor=72;novoel.style.height="1in";novoel.style.left="-100%";novoel.style.position="absolute";novoel.style.top="-100%";novoel.style.width="1in";document.body.appendChild(novoel);if(novoel.offsetHeight){valor=novoel.offsetHeight}document.body.removeChild(novoel);return valor},ajustaDocType:function(){try{if(document.implementation.createDocumentType){var newDoctype=document.implementation.createDocumentType('html','-//W3C//DTD XHTML 1.0 Transitional//EN','http://www.w3.org/TR/html4/loose.dtd');if(document.doctype){document.doctype.parentNode.replaceChild(newDoctype,document.doctype)}}}catch(e){}},versaoNavegador:function(){if(navm&&navigator.userAgent.toLowerCase().indexOf('msie 8.')>-1){return"IE8"}if(navn&&navigator.userAgent.toLowerCase().indexOf('3.')>-1){return"FF3"}return""},decimalPlaces:function(f,l){var ret="",str=f.toString(),array=str.split("."),i;if(array.length==2){ret+=array[0]+".";for(i=0;i=array[1].length)ret+='0';else ret+=array[1][i]}}else if(array.length==1){ret+=array[0]+".";for(i=0;i=-180){point=new ol.geom.Point([temp[0]*1,temp[1]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext=metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2]*1,temp[3]*1]);metrica=point.transform("EPSG:4326","EPSG:3857");ext+=sep+metrica.getCoordinates()[0]+sep+metrica.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},extOSM2Geo:function(ext,retornaArray){var point,temp,sep;sep=" ";if(typeof ext=="object"){return i3GEO.util.projOSM2Geo(ext)}if(i3GEO.Interface.openlayers.googleLike===true){temp=ext.split(sep);if(temp===1){sep=",";temp=ext.split(sep)}if(temp[0]*1>=180||temp[0]*1<=-180){point=new ol.geom.Point([temp[0],temp[1]]);point.transform("EPSG:3857","EPSG:4326");ext=point.getCoordinates()[0]+sep+point.getCoordinates()[1];if(temp.length>2){point=new ol.geom.Point([temp[2],temp[3]]);point.transform("EPSG:3857","EPSG:4326");ext+=sep+point.getCoordinates()[0]+sep+point.getCoordinates()[1]}}}if(retornaArray){return ext.split(sep)}else{return ext}},projOSM2Geo:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:3857","EPSG:4326");return clone}else{return obj}},projGeo2OSM:function(obj){if(i3GEO.Interface.openlayers.googleLike===true){var clone=obj.clone();clone.transform("EPSG:4326","EPSG:3857");return clone}else{return obj}},navegadorDir:function(obj,listaShp,listaImg,listaFig,retornaDir){if(!obj){listaShp=true;listaImg=true;listaFig=true;retornaDir=false}var temp=function(){i3GEOF.navegarquivos.iniciaDicionario(obj,listaShp,listaImg,listaFig,retornaDir)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorDir()","navegarquivos","navegarquivos","index.js",temp)},navegadorPostgis:function(obj,conexao,tipo){if(!obj){conexao=""}if(!tipo){tipo="sql"}var temp=function(){i3GEOF.navegapostgis.iniciaDicionario(obj,conexao,tipo)};i3GEO.util.dialogoFerramenta("i3GEO.util.navegadorPostgis()","navegapostgis","navegapostgis","index.js",temp)},base64encode:function(str){var base64EncodeChars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var out,i,len;var c1,c2,c3;len=str.length;i=0;out="";while(i>2);out+=base64EncodeChars.charAt((c1&0x3)<<4);out+="==";break}c2=str.charCodeAt(i++);if(i==len){out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt((c2&0xF)<<2);out+="=";break}c3=str.charCodeAt(i++);out+=base64EncodeChars.charAt(c1>>2);out+=base64EncodeChars.charAt(((c1&0x3)<<4)|((c2&0xF0)>>4));out+=base64EncodeChars.charAt(((c2&0xF)<<2)|((c3&0xC0)>>6));out+=base64EncodeChars.charAt(c3&0x3F)}return out},base64decode:function(str){var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out="";while(i>4));do{c3=str.charCodeAt(i++)&0xff;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i>2));do{c4=str.charCodeAt(i++)&0xff;if(c4==61)return out;c4=base64DecodeChars[c4]}while(iaqui. Qrcode mobile",en:"I3geo is a open source software! Click to download.",es:"I3Geo es software libre!. Descargar"}],"p2":[{pt:"Filtro de cores",en:"Image type",es:"Tipo de imagen"}],"p3":[{pt:"Legenda",en:"Legend",es:"Leyenda"}],"p4":[{pt:"Escala",en:"Scale",es:"Escala"}],"p5":[{pt:"Tamanho",en:"Size",es:"Tamaño"}],"p6":[{pt:"Ativa/desativa entorno",en:"Enable/Disable Border",es:"Activar/desactivar entorno"}],"p7":[{pt:"Ativa/desativa logo",en:"Enable/Disable Logo",es:"Activar/desactivar Logo"}],"p8":[{pt:"Cor da selecao",en:"Color of Selection",es:"Color de la selección"}],"p9":[{pt:"Cor do fundo",en:"Background color",es:"Color de fondo"}],"p10":[{pt:"Grade de coordenadas",en:"Graticule",es:"Gratíla"}],"p11":[{pt:"Template",en:"Template",es:"Plantilla"}],"p12":[{pt:"Temporizador",en:"Timer",es:"Temporizador"}],"p13":[{pt:"Propriedades",en:"Properties",es:"Propiedades"}],"p14":[{pt:"Aplicar",en:"Apply",es:"Aplicar"}],"p15":[{pt:"Formato da imagem do mapa",en:"Format of Image Map",es:"Formato de la imagen del mapa"}],"p16":[{pt:"Fundo",en:"Base layers",es:"Capas Base"}],"p17":[{pt:"Imprime legenda",en:"Enable legend",es:"Activar Leyenda"}],"p18":[{pt:"Não imprime a legenda",en:"Disable legend",es:"Desactivar Leyenda"}],"p19":[{pt:"Ativa ou desativa a legenda de um tema na opção de impressão do mapa",en:"Enable or disable the legend of a theme in the print option of the map",es:"Activa o desactiva la leyenda de un tema en la opción de impresión del mapa"}],"p20":[{pt:"Tela remota",en:"Remote screen",es:"Pantalla remota"}],"p21":[{pt:"Animação",en:"Animation",es:"Animación"}],"s1":[{pt:"Ajuda",en:"Help",es:"Ayuda"}],"s2":[{pt:"Análise",en:"Analysis",es:"Análisis"}],"s3":[{pt:"Janelas",en:"Windows",es:"Ventanas"}],"s4":[{pt:"Arquivo",en:"Files",es:"Archivo"}],"s5":[{pt:"Propriedades",en:"Properties",es:"Propiedades"}],"u1":[{pt:"Sobre o i3Geo",en:"About i3Geo",es:"Acerca de i3Geo"}],"u2":[{pt:"Doc. dos códigos",en:"Doc. of the codes",es:"Doc. de los códigos"}],"u3":[{pt:"WikiBook",en:"WikiBook",es:"WikiBook"}],"u4":[{pt:"Tutoriais",en:"Tutorials",es:"Tutoriales"}],"u4a":[{pt:"Manual do usuário",en:"User manual",es:"Manual de usuario"}],"u5":[{pt:"Blog",en:"Blog",es:"Blog"}],"u5a":[{pt:"Software público",en:"Software público Brazil",es:"Software público Brasil"}],"u5b":[{pt:"Lista de funções",en:"Function list",es:"Lista de funciones"}],"u5c":[{pt:"Redes sociais",en:"Social networks",es:"Redes sociales"}],"u6":[{pt:"Geometrias",en:"Geometries",es:"Geometrías"}],"u7":[{pt:"Grade de polígonos",en:"Polygon grid",es:"Grado de polígonos"}],"u8":[{pt:"Grade de pontos",en:"Grid of Points",es:"Gratíla de puntos"}],"u9":[{pt:"Grade de hexágonos",en:"Grid of Hexagons",es:"Gratíla de hexágonos"}],"u10":[{pt:"Entorno(Buffer)",en:"Buffer",es:"Area Influencia (Buffer)"}],"u11":[{pt:"Centróide",en:"Centroid",es:"Centroide"}],"u11a":[{pt:"Distância entre pontos",en:"Distance between points",es:"Distancia entre puntos"}],"u12":[{pt:"N pontos em poligono",en:"N points in polygon",es:"N puntos en polígono"}],"u13":[{pt:"Ponto em poligono/raster",en:"Point in polygon/raster",es:"Punto en polígono/raster"}],"u14":[{pt:"Distribuição de pontos",en:"Points distribution",es:"Distribución de puntos"}],"u15":[{pt:"Barras de ferramentas",en:"Toolbars",es:"Barras de herramientas"}],"u15a":[{pt:"Ferramentas",en:"Tools",es:"Herramientas"}],"u16":[{pt:"Janela de mensagens",en:"Message window",es:"Ventana de mensajes"}],"u17":[{pt:"Salvar mapa",en:"Save map",es:"Guardar mapa"}],"u18":[{pt:"Carregar mapfile local",en:"Load mapfile",es:"Cargar mapfile"}],"u19":[{pt:"Pegar imagens",en:"Get pictures",es:"Captar imágenes"}],"u20":[{pt:"Converter em WMS e WMC",en:"Convert to WMS and WMC",es:"Convertir en WMS y WMC"}],"u20a":[{pt:"Converter em KML",en:"Convert to KML",es:"Convertir en KML"}],"u21":[{pt:"Gerador de links",en:"Link generator",es:"Generador de enlaces"}],"u22":[{pt:"Grade",en:"Graticule",es:"Gratíla"}],"u23":[{pt:"Ponto",en:"Point",es:"Punto"}],"u24":[{pt:"Polígono",en:"Polygon",es:"Polígonos"}],"u25":[{pt:"Dissolve",en:"Dissolve",es:"Disolver"}],"u26":[{pt:"Agrupa",en:"Group",es:"Agrupar"}],"u27":[{pt:"Outros",en:"Others",es:"Otros"}],"u28":[{pt:"Centro médio",en:"Middle center",es:"Centro medio"}],"u29":[{pt:"Editor vetorial",en:"Vector editor",es:"Editor vetorial"}],"t1":[{pt:"Camadas",en:"Layers",es:"Capas"}],"t2":[{pt:"Arraste o tema aqui ou clique para excluir",en:"Drag the layer here or make click to remove",es:"Arrastre el tema aquí ó haga clic para excluir"}],"t2a":[{pt:"Filtra a lista de camadas",en:"Filters the list of layers",es:"Filtra la lista de capas"}],"t2b":[{pt:"Abre a legenda do mapa",en:"Opens the map legend",es:"Despliega la leyenda del mapa"}],"t3":[{pt:"Clique para ligar ou desligar esse tema, mostrando-o ou não no mapa. Após alterar o estado do tema, aguarde alguns instantes para o mapa ser redesenhado, ou clique no botão aplicar que será mostrado.",en:"Click to enable or disable this theme, showing it or not on the map. After changing the status of the theme, wait a few moments to get the map to be reloaded, or click the Apply button that will be display.",es:"Haga clic para activar o desactivar este tema, mostrándolo o no en el mapa. Después de cambiar el estado del tema, espere algunos instantes para que el mapa sea recargado, o haga clic en el botón aplicar que se mostrará."}],"t3a":[{pt:"Ligar todos os temas",en:"Turn on all layers",es:"Activar todos los temas"}],"t3b":[{pt:"Desligar todos os temas",en:"Turn off all layers",es:"Desactivar todos los temas"}],"t4":[{pt:"Limpa seleção",en:"Clear selection",es:"Limpia la selección"}],"t4a":[{pt:"Zoom para a seleção",en:"Zoom to selection",es:"Zoom a la selección"}],"t5":[{pt:"Limpa seleção existente nesse tema",en:"Clear selection existing in this theme",es:"Limpia la selección existente en este tema"}],"t6":[{pt:"Clique para fazer o download desse tema no formato shapefile",en:"Click to download this theme in shapefile format",es:"Haga clic para descargar este tema en formato shape"}],"t7":[{pt:"clique e arraste",en:"Dragging",es:"Haga clic y arrastre"}],"t7a":[{pt:"Clique e arraste para mudar a ordem. Arraste e solte na lixeira para remover. Aguarde para ver a legenda.",en:"Click and Dragg to rearrange order. Drag and drop to remove. Please to wait to see the legend",es:"Haga clic y arrastre para cambiar el orden. Arrastre y suelte remover. Aguarde para ver la leyenda."}],"t8":[{pt:"arraste para mudar a ordem",en:"drag to change the order",es:"Arrastre para cambiar el orden"}],"t9":[{pt:"Compatível com a escala",en:"The scale of the theme is compatible with the scale of the map",es:"La escala del tema es compatible con la escala del mapa"}],"t10":[{pt:"Incompatível com a escala",en:"The scale of the theme is incompatible with the scale of the map",es:"La escala del tema es incompatible con la escala del mapa"}],"t11":[{pt:"Escala não conhecida",en:"The scale of the layer is unknown",es:"La escala del tema no es conocida"}],"t12":[{pt:"Excluir",en:"Delete",es:"Eliminar"}],"t12a":[{pt:"Clique para excluir esse tema do mapa.",en:"Delete this layer of the map.",es:"Haga clic para excluir este tema del mapa"}],"t13":[{pt:"Sobe",en:"Up",es:"Subir"}],"t14":[{pt:"Clique para subir esse tema na ordem de desenho",en:"Click to move up the layer in design order",es:"Haga clic para subir ese tema en la orden de diseño"}],"t15":[{pt:"Desce",en:"Down",es:"Bajar"}],"t16":[{pt:"Clique para descer esse tema na ordem de desenho",en:"Click to move down the layer in design order",es:"Haga clic para bajar este tema en la orden de diseño"}],"t17":[{pt:"Zoom para o tema",en:"Zoom to layer",es:"Zoom al tema"}],"t18":[{pt:"Clique para ajustar o mapa de forma a mostrar todo o tema",en:"Zoom all",es:"Zoom a todo"}],"t18a":[{pt:"Opções e propriedades",en:"Options",es:"Opciones"}],"t18b":[{pt:"Legenda",en:"Legend",es:"Leyenda"}],"t19":[{pt:"Altera a transparência do tema, possibilitando que as camadas inferiores possam ser vistas.",en:"Change the layer transparency. It make possible to see inferior layers",es:"Altera la transparencia del tema, haciendo posible que las capas inferiores puedan verse"}],"t20":[{pt:"Opacidade",en:"Opacity",es:"Opacidad"}],"t22":[{pt:"Localize elementos no tema com base em seus atributos descritivos.",en:"Find elements on the layer based on their descriptive attributes.",es:"Ubique elementos en el tema en base a sus atributos descriptivos"}],"t23":[{pt:"Procurar",en:"Search...",es:"Buscar..."}],"t24":[{pt:"Crie uma nova camada no mapa para apresentar textos descritivos sobre esse tema, tendo como base a tabela de atributos.",en:"Create a new layer to display descriptive texts about this theme, based on table of attributes.",es:"Crear una nueva capa en el mapa para presentar textos descriptivos sobre este tema, teniendo como base la tabla de atributos"}],"t25":[{pt:"Etiquetas baseadas em atributos",en:"Label...",es:"Etiquetas.."}],"t26":[{pt:"Defina as etiquetas que serão mostradas quando o mouse é estacionado sobre um elemento desse tema.",en:"Define the label that will be shown when the mouse is over one element of this theme.",es:"Defina las etiquetas que se mostrarán cuando el ratón se estaciona sobre un elemento de este tema"}],"t27":[{pt:"Ativar etiquetas",en:"Label...",es:"Etiquetas..."}],"t28":[{pt:"Insira um filtro nesse tema para mostrar apenas determinadas informações, com base na tabela de atributos.",en:"Insert a Filter in this theme for show specific information, based on the table of attributes.",es:"Inserte un filtro en este tema para mostrar solo determinadas informaciones, con base en la tabla de atributos"}],"t29":[{pt:"Filtrar",en:"Filter...",es:"Filtrar..."}],"t30":[{pt:"Veja a tabela de atributos relacionada a esse tema.",en:"See the table of attributes related to this theme.",es:"Vea la tabla de atributos relacionada con este tema"}],"t31":[{pt:"Tabela com os dados",en:"Table of attributes...",es:"Tabla de atributos..."}],"t32":[{pt:"Abre o editor de legenda, permitindo a alteração da forma de representação desse tema.",en:"Opens the legend editor, allowing the modification of the form of representation of this theme.",es:"Abre el editor de leyenda, permitiendo la alteración de la forma de representación de este tema"}],"t33":[{pt:"Editar legenda",en:"Edit Legend...",es:"Editar leyenda..."}],"t34":[{pt:"Mostra os dados desse tema em uma janela que acompanha o mouse.",en:"Shows the data of this layer in a window that tracks the mouse.",es:"Muestra los datos de este tema en una ventana que acompaña el ratón"}],"t35":[{pt:"Mostra em janela",en:"Show in window",es:"Mostrar en la ventana..."}],"t36":[{pt:"tema visível apenas em determinadas escalas",en:"Layer is visible in specific scales",es:"Capa visible en ciertas escalas"}],"t37":[{pt:"Gráfico",en:"Graphic",es:"Gráfico"}],"t37a":[{pt:"Tema com gráficos",en:"Theme with chart",es:"Tema con Gráfico"}],"t37b":[{pt:"Gráfico interativo",en:"Interactive chart",es:"Gráfico Interactivo"}],"t38":[{pt:"Exporta a legenda para o padrão SLD.",en:"Export the legend to standard SLD.",es:"Exporta la leyenda para estándar SLD."}],"t39":[{pt:"Exportar SLD",en:"Export to SLD...",es:"Exportar a SLD..."}],"t40":[{pt:"Abre a ferramenta que permite alterar o SQL de acesso aos dados",en:"Opens the tool that lets you change the SQL data access",es:"Abre una herramienta que permite alterar el SQL de acceso a los datos"}],"t41":[{pt:"Editar SQL",en:"Edit SQL...",es:"Editar SQL..."}],"t42":[{pt:"Efeito cortina",en:"Curtain efect...",es:"Efecto Cortina..."}],"t43":[{pt:"Aplicar SLD",en:"Apply SLD...",es:"Aplicar SLD..."}],"t44":[{pt:"Salvar mapfile",en:"Save mapfile",es:"Guardar mapfile"}],"t45":[{pt:"Comentar",en:"Comment",es:"Comentar"}],"t46":[{pt:"Mais populares",en:"Most popular",es:"Mas populares"}],"t48":[{pt:"Temporizador",en:"Timer",es:"Temporizador"}],"t49":[{pt:"Mapa temático 3D",en:"Thematic map 3D",es:"Mapa temático 3D"}],"a1":[{pt:"Procurar tema:",en:"Search layer:",es:"Buscar Tema:"}],"a2":[{pt:"Upload de shape file",en:"Upload shape file",es:"Subir archivo shape"}],"a2b":[{pt:"Upload de DBF ou CSV",en:"Upload DBF or CSV file",es:"Subir archivo DBF o CSV"}],"a3":[{pt:"Download de dados",en:"Data download",es:"Descarga de datos"}],"a3a":[{pt:"Importar Web Map Context",en:"Import Web Map Context",es:"Importar Web Map Context"}],"a4":[{pt:"Conectar com servidor WMS",en:"Connect to WMS Server",es:"Conectar al servidor WMS"}],"a4b":[{pt:"Conectar com servidor WMS-T",en:"Connect to WMS-T Server",es:"Conectar al servidor WMS-T"}],"a5":[{pt:"Conectar com GeoRss",en:"Connect to GeoRss",es:"Conectar con GeoRss"}],"a5a":[{pt:"Nuvem de tags",en:"Tags cloud",es:"Nube de Tags"}],"a6":[{pt:"Acesso aos arquivos do servidor",en:"Access files in server directory",es:"Acceso a los archivos del servidor"}],"a7":[{pt:"Temas",en:"Layers",es:"Temas"}],"a8":[{pt:"Clique no box ao lado do tema para ligar ou desligar, mostrando-o ou não no mapa. Após alterar o estado do tema, aguarde alguns instantes para o mapa ser redesenhado, ou clique no botão aplicar que será mostrado.",en:"Click to connect or disconnect this layer, showing it or not on the map. After changing the layer status, wait a few moments to be reloaded on the map, or click in the button Apply that will be shown.",es:"Haga clic para conectar o desconectar este tema, mostrándolo o no en el mapa. Después de alterar el estado del tema, espere algunos instantes para que el mapa sea recargado, o haga clic en el botón aplicar que aparecerá"}],"a9":[{pt:"Fonte",en:"Font",es:"Fuente"}],"a10":[{pt:"código:",en:"Code",es:"Código"}],"a11":[{pt:"Sistemas",en:"Systems",es:"Sistemas"}],"a12":[{pt:"Abrir sistema",en:"Open system",es:"Abrir sistema"}],"a13":[{pt:"Abrir no Google Earth",en:"Open in Google Earth",es:"Abrir en Google Earth"}],"a14":[{pt:"Upload SHP, CSV...",en:"Upload SHP, CSV...",es:"Subir SHP, CSV..."}],"a15":[{pt:"Conexões",en:"Conections",es:"Conexiones"}],"a16":[{pt:"Serviços",en:"Services",es:"Servicios"}],"g1":[{pt:"Temas",en:"Layer",es:"Temas"}],"g1a":[{pt:"Catálogo",en:"Catalog",es:"Catálogo"}],"g2":[{pt:"Adiciona",en:"Add",es:"Agregar"}],"g3":[{pt:"Legenda",en:"Legend",es:"Leyenda"}],"g4":[{pt:"Mapas",en:"Maps",es:"Mapas"}],"g4a":[{pt:"Mapa",en:"Map",es:"Mapa"}],"o1":[{pt:"Aguarde...",en:"Wait...",es:"Espere..."}],"o2":[{pt:"Busca rápida",en:"Quick search",es:"Búsqueda rápida"}],"o3":[{pt:"Lendo imagem...",en:"Loading images...",es:"Leyendo imagen..."}],"o4":[{pt:"Aguarde...abrindo lente",en:"Wait...Opening lens...",es:"Espere...abriendo lente"}],"o5":[{pt:"Aguarde...iniciando",en:"Wait...initializing",es:"Espere...iniciando"}],"o6":[{pt:"dinâmico",en:"Dynamic",es:"Dinámico"}],"d1":[{pt:"Digite as coordenadas de um ponto (X=longitude e Y=latitude) para localiz´-lo no mapa. O centro do mapa ser´ deslocado para o ponto digitado.",en:"Enter the coordinates of a point (X=longitude and Y=latitude) to localize it on the map. The center of the map is move to the point entered.",es:"Digite las coordenadas de un punto (X=longitud e Y=latitud) para ubicarlas en el mapa. El centro del mapa se desplazará para el punto digitado."}],"d2":[{pt:"Altera a escala do mapa ajustando-a para mostrar a mesma abrangência geográfica da inicialização.",en:"Change the scale of the map adjusting it to show the same initial geographical cover.",es:"Modifica la escala del mapa ajustándola para mostrar la misma área geográfica inicial"}],"d2t":[{pt:"Enquadramento inicial",en:"Initial extent",es:"Encuadre inicial"}],"d3":[{pt:"Amplia o mapa - desloca o ponto clicado para centro da tela ou amplia a região indicada por um retângulo. Após ativada, clique e arraste o mouse sobre o mapa na área de zoom desejada.",en:"Extends the map - places the point where you clicked in the center of the screen or extends to the region indicated by a rectangle. Once activated, click and drag the mouse over the map in the desired zoom area",es:"Amplía el mapa - coloca el punto donde se hizo clic en el centro de la pantalla o amplía a la región indicada con un rectángulo. Después de activarla, haga clic y arrastre el ratón sobre el mapa en el área de zoom deseada"}],"d3t":[{pt:"clique e arraste para ampliar",en:"Click and drag to enlarge",es:"Haga click y arraste para ampliar"}],"d4":[{pt:"Desloca a região visível no mapa. Após ativada, clique e arraste o mouse sobre o mapa para deslocar a região visível.",en:"Moves the visible region on the map. Once activated, click and drag the mouse over the map to move the visible region.",es:"Desplaza la región visible en el mapa. Después de activada, haga clic y arrastre el ratón sobre el mapa para mover la región visible."}],"d4t":[{pt:"clique e arraste para deslocar",en:"Click and drag to move",es:"Haga Click y arraste para mover"}],"d5":[{pt:"Amplia o mapa tendo como referência o centro atual.",en:"Magnify the map with the reference the current center.",es:"Amplía el mapa teniendo como referencia el centro actual"}],"d5t":[{pt:"aproximar",en:"zoom in",es:"Acercar"}],"d6":[{pt:"Reduz o mapa tendo como referência o centro atual.",en:"Reduces the map with the reference of the current center.",es:"Reduce el mapa teniendo como referencia el centro actual"}],"d6t":[{pt:"afastar",en:"Zoom out",es:"Alejar",it:"afastar"}],"d7":[{pt:"Mostra informações sobre um ponto no mapa. Após ativada, clique sobre o mapa.",en:"Displays information about a point on the map. Once activated, click on the map.",es:"Muestra información sobre un punto en el mapa. Después de activarla haga clic sobre el mapa."}],"d7t":[{pt:"Clique para identificar",en:"Click to identify",es:"Click para identificar"}],"d7a":[{pt:"Mostra informações resumidas sobre um ponto clicado no mapa. Não é necessário clicar nesse ícone para ativar, basta clicar no mapa a qualquer tempo.",en:"",es:""}],"d7at":[{pt:"etiqueta",en:"Label",es:"Etiqueta"}],"d8":[{pt:"Mostra a extensão geográfica atual em coordenadas geográficas",en:"Shows the current extend in geographic coordinates",es:"Muestra la extensión geográfica actual en coordenadas geográficas"}],"d8t":[{pt:"Extensão atual",en:"Actual extent",es:"Extensió actual"}],"d9":[{pt:"Abre/fecha o mapa de referência",en:"Open/close the reference map ",es:"Abre/cierra el mapa de referencia"}],"d9t":[{pt:"mapa de referência",en:"Reference map",es:"Mapa de referencia"}],"d10":[{pt:"Digite o novo valor de escala e clique no botão aplicar para alterar a escala do mapa",en:"Enter the new value of scale and click the button Apply to change the scale of the map",es:"Digite el nuevo valor de escala y haga clic en el botón aplicar para modificar la escala del mapa"}],"d11":[{pt:"Busca dados na Wikipedia na abrangência atual do mapa. Faça um zoom no mapa antes de abrir essa opção. Regiôes muito extensas podem tornar a busca muito demorada",en:"Search data on Wikipedia in the current extend of the map. Make a zoom on the map before opening this option. Regions very extensive can make a very slow search ",es:"Busca datos en Wikipedia en el alcance actual del mapa. Haga zoom en el mapa antes de abrir esta opción. Regiones muy extensas pueden ocasionar una búsqueda muy lentas"}],"d11t":[{pt:"buscar na Wikipédia",en:"search in Wikipedia",es:"buscar na Wikipedia"}],"d12":[{pt:"Imprime o mapa",en:"Print the map",es:"Imprime el mapa"}],"d13":[{pt:"Localiza o IP do usuário no mapa",en:"Locates the user's IP on the map",es:"Ubica el IP del usuario en el mapa"}],"d14":[{pt:"Gera arquivo para 3D",en:"Generates file for 3D",es:"Genera archivo para 3D"}],"d15":[{pt:"Abre o Google Maps, mostrando uma imagem de satélite da região vista no mapa principal",en:"Open Google Maps, showing a satellite image of the region on the map",es:"Abre Google Maps, mostrando una imagen de satélite de la región en el mapa principal"}],"d15t":[{pt:"Google Maps",en:"Google Maps",es:"Google Maps"}],"d16":[{pt:"Pesquisa documentos na base de dados Scielo (dados preliminares)",en:"Search documents in the database Scielo (preliminary data)",es:"Buscar documentos en la base de datos Scielo (datos preliminares)"}],"d16t":[{pt:"Scielo",en:"Scielo",es:"Scielo"}],"d17":[{pt:"Projeto Confluence. Pontos de intersecção de coordenadas observadas em campo",en:"Confluence Project. Points of intersection of coordinates observed in field",es:"Proyecto Confluence. Puntos de intersección de coordenadas observadas en campo"}],"d17t":[{pt:"confluências",en:"Confluences",es:"Confluencias"}],"d18":[{pt:"Abre lente de ampliação",en:"Opens magnifying lens",es:"Abrir lupa"}],"d18t":[{pt:"lente",en:"lens",es:"lente"}],"d19":[{pt:"Coloca as guias em uma janela móvel",en:"Open the tabs in a window mobile",es:"Coloca las guías en una ventana móvil"}],"d20":[{pt:"Redesenha o mapa com as configuraçôes iniciais.",en:"Reload the map with the initial configurations.",es:"Recarga el mapa con las configuraciones iniciales"}],"d20t":[{pt:"reinicia",en:"restart",es:"reinicia",it:"reinicia"}],"d21":[{pt:"Mede a distância entre dois ou mais pontos clicados no mapa (menor distância). O cálculo de distância é aproximado e sua precisão depende da escala do mapa.",en:"It measures the distance between two or more clicked points on the map (shortest distance). The calculation of distance is approximate and their accuracy depends on the scale of the map.",es:"Mide la distancia entre dos o más puntos marcados en el mapa (menor distancia). El cálculo de distancia es aproximado y su precisión depende de la escala del mapa."}],"d21t":[{pt:"distância",en:"distance",es:"distancia"}],"d21a":[{pt:"Mede a área de um polígono desenhado na tela. O cálculo de área é aproximado e sua precisão depende da escala do mapa.",en:"It measures the area of a polgono drawn on the screen. The calculation of area is approximate and their accuracy depends on the scale of the map.",es:"Mide el área de un polígono dibujado sobre la pantalla. El cálculo del área es aproximado y su precisión depende de la escala del mapa."}],"d21at":[{pt:"área",en:"area",es:"área"}],"d22":[{pt:"Insere pontos no mapa em coordenadas geográficas. Ospontos incluídos podem ser transformados em linhas ou polígonos. Os pontos são armazenados em um tema temporário, podendo-se fazer o download do arquivo shapefile.",en:"Insert points on the map in geographical coordinates. The points included can be converted into lines or polygons. The points are stored in a temporary layer, and we can download it like shapefile.",es:"Inserte puntos en el mapa en coordenadas geográficas. Los puntos incluidos pueden transformarse en líneas o polígonos. Los puntos se almacenan en un tema temporal, pudiendo hacerse la descarga en formato de archivo shape."}],"d22t":[{pt:"inserir pontos",en:"insert points",es:"insertar puntos"}],"d23":[{pt:"Insere um gráfico no ponto clicado conforme os atributos existentes no tema escolhido. O tema deve possuir itens com valores numéricos na tabela de atributos.",en:"Insert a graphic of the existing attributes on the selected layer in the clicked point. The layer must have columns with numerical values in the table of attributes.",es:"Inserte un gráfico en el punto marcado según los atributos existentes en el tema seleccionado. El tema debe tener campos con valores numéricos en la tabla de atributos."}],"d23t":[{pt:"Clique gráfico",en:"",es:""}],"d24":[{pt:"Abre as ferramentas para seleção de elementos de um tema. Os elementos selecionados podem ser utilizados em outras operaçôes, como buffer e seleção por tema.",en:"Opens the tools to select elements of a layer. The elements selected can be used in other operations like buffer or selection by theme.",es:"Abre las herramientas para selección de elementos de un tema. Los elementos seleccionados pueden utilizarse en otras operaciones como áreas de influencia o selección por tema"}],"d24t":[{pt:"Selecionar",en:"Select",es:"Seleccionar"}],"d25":[{pt:"Insere texto no mapa clicando em um ponto. Utilize essa opção para adicionar informaçôes ao mapa.",en:"Insert text on the map by clicking on a point. Use this option to add information on the map.",es:"Inserte texto en el mapa haciendo clic en un punto. Utilice esta opción para agregar información al mapa"}],"d25t":[{pt:"Inserir texto",en:"Insert text",es:"Insertar texto"}],"d26":[{pt:"Escolha o visual para os botões e outras características visuais do mapa",en:"Choose the visual for the buttons and other map's visual characteristics",es:"Elija la vista para los botones y otras características visuales del mapa"}],"d27":[{pt:"Interface",en:"Interface",es:"Interface"}],"d28":[{pt:"Aguarde...gerando os arquivos",en:"Wait... generating files",es:"Espere... generando los archivos"}],"d29":[{pt:"Estações METAR",en:"METAR-Br Stations",es:"Estaciones METAR-Br"}],"d30":[{pt:"Linha do tempo",en:"Timeline",es:"Línea del tiempo"}],"d31":[{pt:"Não existe nenhuma camada com etiquetas ativas",en:"There is no layer with active labels",es:"No existe ninguna capa con etiquetas activas"}],"d32":[{pt:"Aplicativos",en:"Applications",es:"Aplicaciones"}],"ge1":[{pt:"Navegação com o mouse",en:"Mouse navigation",es:"Navegación con el ratón"}],"ge2":[{pt:"Barra de status",en:"Status bar",es:"Barra de estado"}],"ge3":[{pt:"Mapa de referência",en:"Reference map",es:"Mapa de referencia"}],"ge4":[{pt:"Escala e legenda",en:"Scale and legend",es:"Escala y leyenda"}],"ge5":[{pt:"Atmosfera",en:"Atmosphere",es:"Atmósfera"}],"ge6":[{pt:"Grade de coordenadas",en:"Coordinates grid",es:"Grilla de coordenadas"}],"ge7":[{pt:"Luz do sol",en:"Sunshine",es:"Luz del sol"}],"ge8":[{pt:"Limites políticos",en:"Political boundaries",es:"Límites políticos"}],"ge9":[{pt:"Construções em 3D",en:"Buildings in 3D",es:"Construciones en 3D"}],"ge10":[{pt:"Estradas",en:"Roads",es:"Carreteras"}],"ge11":[{pt:"Terreno",en:"Terrain",es:"Terreno"}],"x1":[{pt:"Página principal",en:"Home",es:"Inicio"}],"x2":[{pt:"Lista de menus",en:"Menu list",es:"Lista de menús"}],"x3":[{pt:"Miniaturas",en:"Thumbnails",es:"Miniaturas"}],"x4":[{pt:"Pesquisa na INDE",en:"Search in SDI of INDE-Br",es:"Buscar en IDE del INDE-Br"}],"x5":[{pt:"Editar subgrupos",en:"Edit subgroups",es:"Editar subgrupos"}],"x6":[{pt:"Editar temas",en:"Edit Theme",es:"Editar temas"}],"x7":[{pt:"opção visível apenas para editores",en:"option visible only for editors",es:"opción visible solo para editores"}],"x8":[{pt:"Sistema de administração",en:"Admin. System",es:"Sistema de administración"}],"x9":[{pt:"Editar árvore",en:"Edit tree",es:"Editar árbol"}],"x10":[{pt:"Editar menus do catálogo",en:"Edit menus",es:"Editar menus"}],"x11":[{pt:"Mostra a legenda em uma janela",en:"Show the legend in a window",es:"Muestra una leyenda en una ventana"}],"x13":[{pt:"&Acute;rvore de camadas não encontrada",en:"Tree layers not found",es:"Arboles de capas no se encuentra"}],"x14":[{pt:"sim",en:"si",es:"yes"}],"x15":[{pt:"não",en:"no",es:"no"}],"x16":[{pt:"Valor não definido",en:"Value not set",es:"Valor no establecido"}],"x17":[{pt:"Essa opção afeta apenas a impressão do mapa",en:"This option only affects the printing of the map",es:"Esta opción s&ocaute;lo afecta a la impresi&ocaute;n del mapa"}],"x18":[{pt:"Nome não definido",en:"El nombre no se ha definido",es:"Name was not defined"}],"x19":[{pt:"Comentários de",en:"Reviews",es:"Comentarios"}],"x20":[{pt:"Clique no mapa para desenhar o polígono",en:"Click the map to draw the polygon",es:"Haga clic en el mapa para dibujar el polígono"}],"x21":[{pt:"Essa operação não funciona nessa interface",en:"This operation does not work on this interface",es:"Esta operación no funciona en esta interfaz"}],"x22":[{pt:"Opção não disponível",en:"Option not available",es:"Opción no disponible"}],"x23":[{pt:"Direção",en:"",es:"Dirección"}],"x25":[{pt:"Método para calcular distâncias",en:"Method to calculate distances",es:"Método para calcular distancias"}],"x26":[{pt:"Voce quer mesmo encerrar a sessao?",en:"Do you really want to logout?",es:"Realmente desea salir?"}],"x27":[{pt:"Usuário",en:"User",es:"Usuario"}],"x28":[{pt:"Senha",en:"Password",es:"Contraseña"}],"x29":[{pt:"Enviar",en:"Send",es:"Enviar"}],"x30":[{pt:"Ativo",en:"Active",es:"Activo"}],"x31":[{pt:"Erro",en:"Error",es:"Erro"}],"x32":[{pt:"Recuperar senha",en:"Send password",es:"Enviar la contrasena"}],"x33":[{pt:"Escolha um tema da lista",en:"Choose a layer from the list",es:"Elegir un tema de la lista"}],"x34":[{pt:"Lugar",en:"Place",es:"Lugar"}],"x35":[{pt:"Escolha um tipo de busca nas propriedades",en:"Choose a search type in the properties",es:"Elija una forma de buscar en las propiedades"}],"x36":[{pt:"Digite uma palavra para busca!",en:"Enter a keyword to search!",es:"Introduzca una palabra clave para buscar!"}],"x37":[{pt:"Onde será feita a busca",en:"Where the search will be done",es:"Donde se hace la búsqueda"}],"x38":[{pt:"Serviços de busca externos",en:"External searchs services",es:"Servicios de búsqueda externos"}],"x39":[{pt:"Temas existentes no mapa",en:"Existing layers on the map",es:"Temas existentes en el mapa"}],"x40":[{pt:"Apenas os temas especialmente configurados pelo administrador do i3Geo podem receber operações de busca",en:"Only the layers specially configarated by the i3Geo administrator can receive search operations",es:"Sólo los temas especialmente configurados por el administrador del i3Geo pueden recibir las operaciones de búsqueda"}],"x41":[{pt:"Nada encontrado nos temas ou nenhum tema permite busca",en:"Nothing found in layers or none layer allows search",es:"No se encontró nada en los temas o ningúno tema permite búsqueda"}],"x42":[{pt:"Nada encontrado em ",en:"Nothing found at ",es:"No se encontró nada en "}],"x43":[{pt:"Erro ao acessar o serviço",en:"Error accessing the service",es:"Error de acceso al servicio"}],"x44":[{pt:"Nuvem Flash",en:"Cloud Flash",es:"Nube Flash"}],"x45":[{pt:"Diretórios",en:"Directories",es:"Directorios"}],"x46":[{pt:"Conexão WMS-T",en:"WMS-T connection",es:"Conexión WMS-T"}],"x47":[{pt:"Conexão GeoRSS",en:"GeoRSS connection",es:"Conexión WMS-T"}],"x48":[{pt:"Rota",en:"Route",es:"Ruta"}],"x49":[{pt:"Coordenadas aproximadas",en:"Approximate coordinates",es:"Coordenadas aproximadas"}],"x50":[{pt:"Feche para parar",en:"Close to stop",es:"Cierre para parar"}],"x51":[{pt:"Seleção",en:"Selection",es:"Selecci&ocute;n"}],"x52":[{pt:"Alterar senha",en:"Change password",es:"Cambiar contraseńa"}],"x53":[{pt:"Upload de WMC",en:"WMC upload",es:"Subir WMC"}],"x54":[{pt:"Perfil",en:"Profile",es:"Perfil"}],"x55":[{pt:"Salva o tema",en:"Save layer",es:"Guarda el tema"}],"x56":[{pt:"Toponímia",en:"Toponymy",es:"Toponimia"}],"x57":[{pt:"Cartogramas estatísticos",en:"Statistical cartograms",es:"Cartogramas estadísticos"}],"x58":[{pt:"Continua",en:"Continue",es:"Seguir"}],"x59":[{pt:"Localiza",en:"Locate",es:"Localiza"}],"x60":[{pt:"Cartogramas",en:"Cartograms",es:"Cartogramas"}],"x61":[{pt:"Filtra limite",en:"Filter limit",es:""}],"x62":[{pt:"Remover",en:"Remove",es:"Eliminar"}],"x63":[{pt:"Para salvar as configurações de uma camada,
utilize a opção existente na árvore de camadas no nó correspondente ao tema (basta expandir o tema para visualizar as opções)

",en:"To save the settings for a layer, use the option available in the layers tree corresponding to the theme node (just expand the layer to view options)",es:"Para guardar la configuración de un tema, utilice la opción disponible en la árbol de temas en el nodo correspondiente a lo tema (sólo ampliar el tema para ver las opciones)"}],"x64a":[{pt:"Congela a visão atual",en:"Freezes the current view",es:"Congela la vista actual"}],"x64":[{pt:"Item",en:"Item",es:"Item"}],"x65":[{pt:"Buscando ítens...",en:"Buscando ítens...",es:"Searching items..."}],"x66":[{pt:"Ocorreu um erro",en:"An error ocurred",es:"Ha ocurrido un error"}],"x67":[{pt:"Comunidade i3Geo",en:"i3Geo community",es:"Comunidad i3Geo"}],"x68":[{pt:"Versão",en:"Version",es:"Versió"}],"x69":[{pt:"Pressione a tecla SHIFT junto com o botão esquerdo do mouse e arraste para definir a área que será aproximada",en:"Press the SHIFT key along with the left mouse button and drag to define the area to be approximate",es:"Pulse la tecla SHIFT junto con el bot&oacurte;n izquierdo del rat&oacurte;n y arrastre para definir el &aacurte;rea a ser aproximado"}],"x70":[{pt:"Utilize os dedos em um movimento de pinça para definir a área que será aproximada ou afastada",en:"Use the fingers in a pincer movement to define the area to be zoomed in or out",es:"Utilice los dedos en un movimiento de pinzas para definir el área a ser aproximada o alejada"}],"x71":[{pt:"Aplicativos estatísticos cadastrados",en:"Registered statistical applications",es:"Aplicaciones estadísticas registrados"}],"x72":[{pt:"Lista de mapas cadastrados",en:"Registered map list",es:"Lista de los mapas registrados"}],"x73":[{pt:"Redirecionar para a versão adaptada para dispositivos móveis?",en:"Redirect to mobile version?",es:"Redireccionar a una versión adaptada para dispositivos móviles?"}],"x74":[{pt:"Fecha",en:"Close",es:"Cierra"}],"x75":[{pt:"Cancela",en:"Cancel",es:"Cancela"}],"x76":[{pt:"O tema já existe no mapa. Adiciona novamente?",en:"Layer already exists in the map. Add again?",es:"El tema ya existe en el mapa. Añade otra vez?"}],"x77":[{pt:"Nome do novo marcador",en:"New bookmark name",es:"Nombre del nuevo marcador"}],"x78":[{pt:"Copie os marcadores e cole em um editor para guardá-los",en:"Copy and paste the bookmarks in an editor to save",es:"Copie y pegue los marcadores en un editor para salvarlos"}],"x79":[{pt:"Marcadores",en:"Bookmarks",es:"Marcadores"}],"x80":[{pt:"Exportar",en:"Export",es:"Exportar"}],"x81":[{pt:"Importar",en:"Import",es:"Importar"}],"x82":[{pt:"Marcar região",en:"Mark region",es:"Marcar regió"}],"x83":[{pt:"Cole os marcadores para importá-los",en:"Paste the bookmarks to import",es:"Pegue los marcadores para importarlos"}],"x84":[{pt:"Exportar SHP",en:"Export SHP",es:"Exportar SHP"}],"x85":[{pt:"Visualizador de WMS da INDE-Br",en:"INDE-Br WMS viewer",es:"Visualizador de WMS de la INDE-Br"}],"x86":[{pt:"Preferências",en:"Preferences",es:"Preferencias"}],"x87":[{pt:"Limites e localidades",en:"Limits and places",es:"Límites y ubicaciones"}],"x88":[{pt:"Preferências",en:"Preferences",es:"Preferencias"}],"x89":[{pt:"Editar cadastro",en:"Edit registry",es:"Editar registro"}],"x90":[{pt:"Mapas cadastrados",en:"Registered maps",es:"Mapas registrados"}],"x91":[{pt:"Feche para parar. Desligue o tema para ver o efeito",en:"Close to stop. Disable the layer to see the effect",es:"Cierre para detener. Desactive el tema para ver el efecto"}],"x92":[{pt:"Escolha uma camada",en:"Select a layer",es:"Seleccione una capa"}],"x93":[{pt:"Localização do usuário",en:"User location",es:"Ubicación del usuario"}],"x94":[{pt:"Remove as figuras da tela",en:"Remove the pictures",es:"Retire las figuras"}],"x95":[{pt:"trecho",en:"stretch",es:"tramo"}],"x96":[{pt:"atual",en:"current",es:"corriente"}],"x97":[{pt:"total",en:"total",es:"total"}],"x98":[{pt:"perímetro",en:"perimeter",es:"perímetro"}],"x99":[{pt:"Cálculo não pode ser realizado. Falta carregar a API de geometria do GM",en:"The calculation cannot be performed. It is necessary to upload the API of GM geometry",es:"El cálculo no puede ser realizado. Falta cargar la API de geometría de GM"}],"x101":[{pt:"Cópia",en:"Copy",es:"Copia"}],"x102":[{pt:"Mapa de calor",en:"Heatmap",es:"Mapa de calor"}],"x103":[{pt:"Links para abrir o mapa",en:"Links to open the map",es:"Links para abrir el mapa "}],"x104":[{pt:"Mapa de agrupamentos",en:"Cluster map",es:"Mapa de agrupación"}],"x105":[{pt:"Navegação",en:"Browsing",es:"Navegación"}],"mais":[{pt:"Mais...",en:"More...",es:"Más..."}],"uploadArquivoGeo":[{pt:"Upload de arquivo geo",en:"Geo file Upload",es:"Carga del archivo geo"}],"conexaoServicoGeo":[{pt:"Conexão com serviços geo",en:"Connection to geo services ",es:"Conexión con servicios geo"}],"saikuAba":[{pt:"SAIKU - OLAP (abrir em nova aba)",en:"SAIKU - OLAP (open in new tab)",es:"SAIKU - OLAP (abrir en una nueva pestaña)"}],"saikuMapa":[{pt:"SAIKU - OLAP (abrir em janela interna)",en:"SAIKU - OLAP (open in internal window)",es:"SAIKU - OLAP (abrir en una ventana interna)"}],"refMapaAtual":[{pt:"Mapa atual",en:"Current map",es:"Mapa actual"}],"refMapaDinamico":[{pt:"Mapa dinâmico",en:"Dynamic map",es:"Mapa dinámico"}],"naoPermitido":[{pt:"Operacao nao autorizada para esse usuario",en:"Unauthorized operation for this user",es:"Operación no autorizada para ese usuario"}],"melhorcaminho":[{pt:"Melhor caminho (raster)",en:"Best way (raster)",es:"Mejor camino (raster)"}],"tolerancia":[{pt:"Tolerância de busca (em pixels)",en:"Search tolerance (in pixels)",es:"Tolerancia de búsqueda (en Pixeles)"}],"naoInstalado":[{pt:"Ferramenta não disponível nessa instalação do i3Geo",en:"Tool unavailable in this installation of i3geo",es:"Herramienta no disponible en esta instalación de i3geo"}],"variaEscala":[{pt:"Dependência da escala",en:"Scale dependency",es:"Dependencia de escala"}],"mostraTodosLegenda":[{pt:"Mostra tudo",en:"all",es:"todos"}],"mostraSoLegenda":[{pt:"Mostra só a legenda",en:"only legend",es:"sólo leyenda"}],"removerDoMapa":[{pt:"Remove a camada do mapa?",en:"Do you want to remove the layer from map?",es:"¿Se remueve la capa del mapa?"}],"dicaBuscaRapida":[{pt:"Abre uma janela flutuante com opções de busca de dados em serviços como o Google Maps ou nas camadas exsitentes no mapa",en:"It opens a window with options to search data in services like Google Maps or in the map existing layers",es:"Abre una ventana con opciones de búsqueda de datos en servicios como Google Maps o en las capas existentes en el mapa"}],"refresh":[{pt:"Refaz a árvore, reconstruindo os ícones e lista de camadas",en:"Remake the tree, rebuilding the icons and the layer list",es:"Vuelva a hacer el árbol, reconstruyendo los iconos y la lista de capas"}],"lixeira":[{pt:"Clique para ver a lista de camadas em uma janela flutuante com opção para remover um ou mais camadas do mapa. Arraste uma camada sobre esse ícone para removê-la individualmente",en:"Click to see the layer list on a floating window ",es:"Haga clic para ver la lista de capas en una ventana flotante con la opción de eliminar uan o más capas del mapa. Arrastre una capa sobre ese icono para removerla individualmente"}],"filtraCam":[{pt:"Permite filtrar a lista de camadas mostradas na árvore conforme propriedades específicas de cada uma",en:"It allows to filter the layer tree-list according to layers particular properties",es:"Permite filtrar la lista de capas mostradas mostradas en el árbol de acuerdo a las propiedades específicas de cada una"}],"legenda":[{pt:"Abre a legenda do mapa em uma janela flutuante",en:"It opens the map legend in a floating window",es:"Abre la leyenda del mapa en una ventana flotante "}],"ferramMapa":[{pt:"Mostra a lista de ferramentas que atuam sobre o mapa",en:"It shows a list of tools which perform actions on the map",es:"Muestra una lista de herramientas que actúan sobre el mapa"}],"ferramCamadas":[{pt:"Mostra a lista de ferramentas que atuam sobre camadas",en:"It shows a list of tools which perform actions on the layers",es:"Muestra una lista de herramientas que actúan sobre las capas"}],"ajudaEditorOlSalva":[{pt:"Para editar os atributos, utilize a ferramenta de identificação. É necessário que exista uma coluna com identificadores únicos na tabela a ser editada e que essa coluna esteja visível na ferramenta de identificação.",en:"To edit attributes, use an identification tool. The table´s column being modified should have an unique identifier, and being visible in the identification tool. ",es:"Para editar los atributos, utilice la herramienta de identificación. Es necesario que exista una columna con identificadores únicos en la tabla a ser editada y que esa columna sea visible en la herramienta de identificación."}],"mascara":[{pt:"Máscara",en:"Mask",es:"Máscara"}],"result":[{pt:"Resultado",en:"Result",es:"Resultado"}],"tativo":[{pt:"Tema ativo",en:"Active theme ",es:"Tema activo"}],"geosel":[{pt:"geometria(s) selecionada(s) encontrada(s)",en:"selected geometry found",es:"geometría(s) seleccionada(s) encontrada(s)"}],"listar":[{pt:"Listar",en:"List",es:"Hacer una lista"}],"sdados":[{pt:"Salvar dados",en:"Save data",es:"Guardar datos"}],"incorpo":[{pt:"Incorporar ao mapa",en:"Add to map",es:"Incorporar al mapa"}],"selum":[{pt:"Selecione pelo menos um elemento",en:"Select at least one element",es:"Seleccione al menos un elemento"}],"atrib":[{pt:"Atributos",en:"Attributes",es:"Atributos"}],"reg":[{pt:"Registros",en:"Records",es:"Registros"}],"adic":[{pt:"Adicionando",en:"Adding",es:"Adicionando"}],"stema":[{pt:"Salvar no tema",en:"Save theme",es:"Salvar el tema"}],"seluma":[{pt:"Selecione apenas uma figura",en:"Select only one shape",es:"Seleccione sólo una figura"}],"salva":[{pt:"Salva",en:"Save",es:"Salva"}],"canc":[{pt:"Cancela",en:"Cancel",es:"Cancela"}],"dlinha":[{pt:"digitalizar linha",en:"digitalize line",es:"digitalizar línea"}],"dpol":[{pt:"digitalizar poligono",en:"digitalize polygon",es:"digitalizar Polígono"}],"dponto":[{pt:"digitalizar ponto",en:"digitalize point",es:"digitalizar punto"}],"dtexto":[{pt:"digitalizar texto",en:"digitalize text",es:"digitalizar texto"}],"cortaf":[{pt:"corta figura",en:"cut shape",es:"corta figura"}],"modf":[{pt:"modifica figura",en:"modify shape",es:"modificar figura"}],"listag":[{pt:"lista geometrias",en:"geometry list",es:"lista geometrías"}],"frente":[{pt:"trazer para frente",en:"send forward",es:"traer al frente"}],"studo":[{pt:"selecionar tudo",en:"select all",es:"seleccionar todo"}],"excsel":[{pt:"Remove os elementos selecionados",en:"it removes selected features",es:"Remueve los elementos seleccionados"}],"opcoes":[{pt:"Opções",en:"Options",es:"Opciones"}],"meneditor1":[{pt:"Para excluir registros do banco de dados utilize a ferramenta de identificação",en:"To eliminate records from database use the identification tool",es:"Para excluir registros de la base de datos utilice la herramienta de identificación"}],"meneditor2":[{pt:"Nenhum elemento gráfico encontrado. Utilize as opções de criação de geometrias.",en:"No graphic feature has been found. Use the options to create geometries",es:"Ningún elemento gráfico encontrado. Utilice las opciones de creación de geometría"}],"meneditor3":[{pt:"Você precisa fazer login para usar a opção de salvar no banco de dados",en:"In order to save to a database you need login",es:"Usted necesita hacer login para usar la opción guardar en la base datos"}],"meneditor4":[{pt:"Valores iguais ao original",en:"Values equal to original",es:"Valores iguales al original"}],"meneditor5":[{pt:"É necessário ter um código para poder excluir",en:"It is necessary to have a key to exclude",es:"Es necesario tener una clave para excluir"}],"meneditor6":[{pt:"Após escolher a medida da variável, clique no mapa para escolher o limite geográfico.",en:"After choosing the measurement of variable, click on the map to select a geographical boundary.",es:"Después de escoger la medida de la variable, haga clic en el mapa para escoger el límite geográfico."}],"opsel":[{pt:"Operações sobre as figuras selecionadas",en:"Operations upon selected shapes",es:"Operaciones sobre las figuras seleccionadas"}],"capturar":[{pt:"Capturar elemento de um tema",en:"Capturing a theme feature",es:"Capturar elemento de un tema"}],"salvexc":[{pt:"Salvar/excluir dados",en:"Save/exclude data",es:"Guardar/excluir datos"}],"edatrib":[{pt:"Editar atributos",en:"Edit Attributes",es:"Editar atributos"}],"camedit":[{pt:"Camadas editáveis",en:"Editable layers",es:"Capas editables"}],"nenhum":[{pt:"Nenhum",en:"None",es:"Ninguno"}],"tipo":[{pt:"Tipo",en:"Type",es:"Tipo"}],"abreMapa":[{pt:"Abrir o mapa",en:"Open the map",es:"Abrir el mapa "}],"areaAprox":[{pt:"Área aproximada",en:"Approximate area",es:"Área aproximada"}],"distAprox":[{pt:"Distância aproximada",en:"Approximate distance",es:"Distancia aproximada"}],"trocaInterface":[{pt:"Troca de interface",en:"Interface shift",es:"Cambio de interfaz"}],"wkt2layer":[{pt:"Converte WKT em camada",en:"Transforming WKT into layer",es:"Transforma WKT en capa"}],"salvaDadosEditor":[{pt:"Os dados só podem ser salvos em temas que permitem edição e que possuem coluna com auto incremento",en:"Data can only be saved in themes that allow edition and have column with auto-increment",es:"Los datos sólo pueden ser guardados en los temas que permiten edición y que poseen columna con auto incremento"}],"novaaba":[{pt:"Abre em nova aba",en:"Open in new tab",es:"Abre en una nueva tab"}],"novonome":[{pt:"Novo nome",en:"New name",es:"Nuevo nombre"}],"medir":[{pt:"Medir/Calcular",en:"",es:""}],"tabela":[{pt:"Tabela",en:"",es:""}],"ligaDesliga":[{pt:"Liga/Desliga",en:"",es:""}]}; @@ -252,7 +252,7 @@ if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.tema={TEMPORIZADORESID:{},ati if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.analise={pontos:{xpt:[],ypt:[]},dialogo:{markercluster:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.markercluster()","markercluster","markercluster","dependencias.php","i3GEOF.markercluster.iniciaJanelaFlutuante()")},heatmap:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.heatmap()","heatmap","heatmap","dependencias.php","i3GEOF.heatmap.iniciaJanelaFlutuante()")},saiku:function(){if(i3GEO.parametros.statusFerramentas&&i3GEO.parametros.statusFerramentas.saiku===false){i3GEO.janela.tempoMsg($trad("naoInstalado"));return}i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.saiku()","saiku","saiku")},saikuMapa:function(){if(i3GEO.parametros.statusFerramentas&&i3GEO.parametros.statusFerramentas.saiku===false){i3GEO.janela.tempoMsg($trad("naoInstalado"));return}i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.saiku()","saiku","saiku","index.js","i3GEOF.saiku.iniciaJanelaFlutuante2()")},graficoInterativo:function(){alert("depreciado. Use graficointerativo1")},graficoInterativo1:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.graficointerativo1()","graficointerativo1","graficointerativo1","dependencias.php","i3GEOF.graficointerativo1.iniciaJanelaFlutuante()")},linhaDoTempo:function(){i3GEO.janela.cria("650px","450px",i3GEO.configura.locaplic+"/ferramentas/linhadotempo/index.php","","","
Linha do tempo
","i3GEOF.linhaDoTempo",false,"hd","","","",true,i3GEO.configura.locaplic+"/imagens/oxygen/16x16/clock.png");i3GEO.analise.atualizaLinhaDoTempo=function(){var doc="",ifr="";try{ifr=$i("i3GEOF.linhaDoTempoi");if(navn){if(ifr){doc=ifr.contentDocument}}else{if(document.frames("i3GEOF.linhaDoTempoi")){doc=document.frames("i3GEOF.linhaDoTempoi").document}}doc.getElementById("tl")?window.parent["i3GEOF.linhaDoTempoi"].carregaDados():i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.analise.atualizaLinhaDoTempo()"])}catch(e){i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.analise.atualizaLinhaDoTempo()"])}};i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.analise.atualizaLinhaDoTempo()"]);var ifr=$i("i3GEOF.linhaDoTempoi");if(ifr){ifr.style.width="100%"}},perfil:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.perfil()","perfil","perfil")},melhorcaminho:function(){if(i3GEO.parametros.statusFerramentas&&i3GEO.parametros.statusFerramentas.melhorcaminho===false){i3GEO.janela.tempoMsg($trad("naoInstalado"));return}i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.melhorcaminho()","melhorcaminho","melhorcaminho")},gradePontos:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradePontos()","gradepontos","gradeDePontos")},gradePol:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradePol()","gradepol","gradeDePoligonos")},gradeHex:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.gradeHex()","gradehex","gradeDeHex")},analisaGeometrias:function(){i3GEO.util.dialogoFerramenta("i3GEO.tema.dialogo.tabela()","analisageometrias","analisaGeometrias","dependencias.php","i3GEOF.analisaGeometrias.iniciaJanelaFlutuante()")},pontosdistri:function(){i3GEO.parametros.r==="nao"?i3GEO.janela.tempoMsg($trad("x22")):i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontosdistri()","pontosdistri","pontosDistri","dependencias.php","i3GEOF.pontosDistri.iniciaJanelaFlutuante()")},pontoempoligono:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontoempoligono()","pontoempoligono","pontoEmPoligono","dependencias.php","i3GEOF.pontoEmPoligono.iniciaJanelaFlutuante()")},centromassa:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.centromassa()","centromassa","centromassa","dependencias.php","i3GEOF.centromassa.iniciaJanelaFlutuante()")},nptPol:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.nptpol()","nptpol","nptpol","dependencias.php","i3GEOF.nptpol.iniciaJanelaFlutuante()")},buffer:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.buffer()","buffer","buffer","dependencias.php","i3GEOF.buffer.iniciaJanelaFlutuante()")},distanciaptpt:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.distanciaptpt()","distanciaptpt","distanciaptpt","dependencias.php","i3GEOF.distanciaptpt.iniciaJanelaFlutuante()")},centroide:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.centroide()","centroide","centroide","dependencias.php","i3GEOF.centroide.iniciaJanelaFlutuante()")},dissolve:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.dissolve()","dissolve","dissolve","dependencias.php","i3GEOF.dissolve.iniciaJanelaFlutuante()")},agrupaElementos:function(){i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.agrupaElementos()","agrupaelementos","agrupaElementos","dependencias.php","i3GEOF.agrupaElementos.iniciaJanelaFlutuante()")}},medeDistancia:{pontos:{},ultimoWkt:"",ultimaMedida:"",inicia:function(){i3GEO.eventos.cliquePerm.desativa();i3GEO.analise.medeDistancia.criaJanela();i3GEO.analise.medeDistancia[i3GEO.Interface["ATUAL"]].inicia()},criaJanela:function(){var novoel,ins,imagemxy,janela;i3GEO.analise.pontos={xpt:[],ypt:[]};if(!$i("mostradistancia")){novoel=document.createElement("div");novoel.id="mostradistancia";ins='
'+$trad("distAprox")+'
'+'
'+'
'+'
'+'
'+''+''+''+''+''+''+''+''+''+''+'
Raios Textos'+' Estilo:
'+i3GEO.desenho.caixaEstilos()+'
  
'+'
'+'
';novoel.innerHTML=ins;novoel.style.borderColor="gray";document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("mostradistancia",{width:"355px",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$(janela.close).click(i3GEO.analise.medeDistancia.fechaJanela)}else{i3GEO.util.defineValor("mostradistancia_calculo","innerHTML","");janela=YAHOO.i3GEO.janela.manager.find("mostradistancia")}janela.show();imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));janela.moveTo(imagemxy[0]+150,imagemxy[1]);new YAHOO.widget.Button("i3GEObotaoPerfil",{onclick:{fn:function(){var js=i3GEO.configura.locaplic+"/ferramentas/perfil/dependencias.php",temp=function(){i3GEOF.perfil.iniciaJanelaFlutuante(i3GEO.analise.pontos)};i3GEO.util.scriptTag(js,temp,"i3GEOF.perfil_script")}}});new YAHOO.widget.Button("i3GEObotaoDistWkt",{onclick:{fn:function(){i3GEO.mapa.dialogo.wkt2layer(i3GEO.analise.medeDistancia.ultimoWkt,i3GEO.analise.medeDistancia.ultimaMedida)}}})},fechaJanela:function(){var janela;i3GEO.eventos.cliquePerm.ativa();janela=YAHOO.i3GEO.janela.manager.find("mostradistancia");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela.destroy()}i3GEO.barraDeBotoes.ativaIcone("pointer");i3GEO.analise.medeDistancia[i3GEO.Interface["ATUAL"]].fechaJanela();i3GEO.analise.pontos={}},pontos2wkt:function(){var pontos=[],x=i3GEO.analise.medeDistancia.pontos.xpt,y=i3GEO.analise.medeDistancia.pontos.ypt,n=x.length,i;for(i=0;i0){x1=i3GEO.analise.medeDistancia.pontos.xpt[n-1];y1=i3GEO.analise.medeDistancia.pontos.ypt[n-1];x2=coord[0];y2=coord[1];if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1+" "+x2+" "+y2);temp=temp.split(" ");x1=temp[0];y1=temp[1];x2=temp[2];y2=temp[3]}trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);parcial=i3GEO.analise.medeDistancia.openlayers.somaDist();direcao=i3GEO.calculo.direcao(x1,y1,x2,y2);direcao=i3GEO.calculo.dd2dms(direcao,direcao);direcao=direcao[0];i3GEO.analise.medeDistancia.openlayers.mostraParcial(trecho,parcial,direcao)}},point:function(point){var n,x1,y1,x2,y2,trecho,temp,circ,label,raio,estilo=i3GEO.desenho.estilos[i3GEO.desenho.estiloPadrao],coord=point.getCoordinates(),total=0;i3GEO.analise.medeDistancia.pontos.xpt.push(coord[0]);i3GEO.analise.medeDistancia.pontos.ypt.push(coord[1]);i3GEO.analise.pontos.xpt.push(coord[0]);i3GEO.analise.pontos.ypt.push(coord[1]);n=i3GEO.analise.medeDistancia.pontos.ypt.length;if(n>1){x1=i3GEO.analise.medeDistancia.pontos.xpt[n-2];y1=i3GEO.analise.medeDistancia.pontos.ypt[n-2];x2=coord[0];y2=coord[1];raio=new ol.geom.LineString([[x1,y1],[x2,y2]]).getLength();if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1+" "+x2+" "+y2);temp=temp.split(" ");x1=temp[0];y1=temp[1];x2=temp[2];y2=temp[3]}trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);i3GEO.analise.medeDistancia.pontos.dist.push(trecho);total=i3GEO.analise.medeDistancia.openlayers.somaDist();i3GEO.analise.medeDistancia.openlayers.mostraTotal(trecho,total);i3GEO.analise.medeDistancia.ultimoWkt=i3GEO.analise.medeDistancia.pontos2wkt();if($i("pararraios")&&$i("pararraios").checked===true){temp=i3GEO.util.projGeo2OSM(new ol.geom.Point([x1*1,y1*1]));circ=new ol.Feature({geometry:new ol.geom.Circle(temp.getCoordinates(),raio)});circ.setProperties({origem:"medeDistanciaExcluir"});circ.setStyle(new ol.style.Style({stroke:new ol.style.Stroke({color:estilo.circcolor,width:1}),zIndex:2}));i3GEO.desenho.layergrafico.getSource().addFeature(circ)}if($i("parartextos")&&$i("parartextos").checked===true){label=new ol.Feature({geometry:i3GEO.util.projGeo2OSM(new ol.geom.Point([x2*1,y2*1]))});label.setProperties({origem:"medeDistanciaExcluir"});label.setStyle(new ol.style.Style({image:new ol.style.Circle({radius:3,fill:new ol.style.Fill({color:estilo.circcolor}),stroke:new ol.style.Stroke({color:estilo.circcolor,width:1})}),text:new ol.style.Text({text:trecho.toFixed(3),font:'Bold 14px Arial',textAlign:'left',stroke:new ol.style.Stroke({color:'white',width:1}),fill:new ol.style.Fill({color:estilo.textcolor}),zIndex:2000})}));i3GEO.desenho.layergrafico.getSource().addFeature(label)}}},somaDist:function(){var n,i,total=0;n=i3GEO.analise.medeDistancia.pontos.dist.length;for(i=0;i0){temp=window.confirm($trad("x94"));if(temp){for(r in remover){i3GEO.desenho.layergrafico.getSource().removeFeature(remover[r])}}}},mostraTotal:function(trecho,total){var mostra=$i("mostradistancia_calculo"),texto;if(mostra){texto=""+$trad("x96")+": "+total.toFixed(3)+" km"+"
"+$trad("x96")+": "+(total*1000).toFixed(2)+" m"+"
"+$trad("x25")+": "+i3GEO.calculo.metododistancia;mostra.innerHTML=texto}},mostraParcial:function(trecho,parcial,direcao){var mostra=$i("mostradistancia_calculo_movel"),texto;if(mostra){texto=""+$trad("x95")+": "+trecho.toFixed(3)+" km"+"
"+$trad("x97")+": "+(parcial+trecho).toFixed(3)+" km"+"
"+$trad("x23")+" (DMS): "+direcao;mostra.innerHTML=texto}}},googlemaps:{inicia:function(){i3GEO.analise.medeDistancia.pontos={xpt:[],ypt:[],dist:[]};i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia();i3GeoMap.setOptions({disableDoubleClickZoom:true});i3GeoMap.setOptions({draggableCursor:'crosshair'});var t,evtdblclick=null,evtclick=null,evtmousemove=null,pontos={xpt:[],ypt:[],dist:[],mvcLine:new google.maps.MVCArray(),mvcMarkers:new google.maps.MVCArray(),line:null,polygon:null},termina=function(){google.maps.event.removeListener(evtdblclick);google.maps.event.removeListener(evtclick);google.maps.event.removeListener(evtmousemove);pontos.line.setOptions({clickable:true});google.maps.event.addListener(pontos.line,'click',function(shape){if(shape.setEditable){shape.setEditable(!shape.editable)}});i3GEO.analise.medeDistancia.ultimoWkt=i3GEO.analise.medeDistancia.pontos2wkt();t=i3GEO.analise.medeDistancia.googlemaps.somaDist(pontos);i3GEO.analise.medeDistancia.ultimaMedida=t.toFixed(3)+" km";if(pontos){i3GEO.desenho.googlemaps.shapes.push(pontos.mvcLine);i3GEO.desenho.googlemaps.shapes.push(pontos.line);pontos=null}};evtclick=google.maps.event.addListener(i3GeoMap,"click",function(evt){var x1,x2,y1,y2,trecho=0,total,n;pontos.mvcLine.push(evt.latLng);pontos.xpt.push(evt.latLng.lng());pontos.ypt.push(evt.latLng.lat());i3GEO.analise.medeDistancia.pontos.xpt.push(evt.latLng.lng());i3GEO.analise.medeDistancia.pontos.ypt.push(evt.latLng.lat());n=pontos.xpt.length;if(pontos.mvcLine.getLength()>1){x1=pontos.xpt[n-2];y1=pontos.ypt[n-2];x2=evt.latLng.lng();y2=evt.latLng.lat();trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);pontos.dist.push(trecho);total=i3GEO.analise.medeDistancia.googlemaps.somaDist(pontos);i3GEO.analise.medeDistancia.googlemaps.mostraTotal(trecho,total);if($i("pararraios")&&$i("pararraios").checked===true){i3GEO.desenho.googlemaps.shapes.push(new google.maps.Circle({map:i3GeoMap,fillOpacity:0,clickable:false,strokeColor:"black",strokeOpacity:1,strokeWeight:2,center:new google.maps.LatLng(y1,x1),radius:trecho*1000,origem:"medeDistanciaExcluir"}))}}if($i("parartextos")&&$i("parartextos").checked===true){i3GEO.desenho.googlemaps.shapes.push(new google.maps.Marker({map:i3GeoMap,fillOpacity:0,clickable:false,position:evt.latLng,icon:{path:google.maps.SymbolPath.CIRCLE,scale:2.5,strokeColor:"#ffffff",title:trecho.toFixed(0)+" km"},origem:"medeDistanciaExcluir"}))}pontos.mvcLine.push(evt.latLng)});evtmousemove=google.maps.event.addListener(i3GeoMap,"mousemove",function(evt){if(!$i("mostradistancia_calculo")){termina.call();return}var x1,y1,x2,y2,direcao,parcial,estilo=i3GEO.desenho.estilos[i3GEO.desenho.estiloPadrao],n=pontos.xpt.length;if(pontos.mvcLine.getLength()>0){if(!pontos.line){pontos.line=new google.maps.Polyline({map:i3GeoMap,clickable:false,strokeColor:estilo.linecolor,strokeOpacity:1,strokeWeight:estilo.linewidth,path:pontos.mvcLine,origem:"medeDistancia"})}pontos.mvcLine.pop();pontos.mvcLine.push(evt.latLng);parcial=i3GEO.analise.medeDistancia.googlemaps.somaDist(pontos);x1=pontos.xpt[n-1];y1=pontos.ypt[n-1];x2=evt.latLng.lng();y2=evt.latLng.lat();trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);direcao=i3GEO.calculo.direcao(x1,y1,x2,y2);direcao=i3GEO.calculo.dd2dms(direcao,direcao);direcao=direcao[0];i3GEO.analise.medeDistancia.googlemaps.mostraParcial(trecho,parcial,direcao)}});evtdblclick=google.maps.event.addListener(i3GeoMap,"dblclick",function(evt){termina.call()})},somaDist:function(pontos){var n,i,total=0;n=pontos.dist.length;for(i=0;i0){temp=window.confirm($trad("x94"));if(temp){i3GEO.desenho.googlemaps.destroyFeatures(f)}}f=i3GEO.desenho.googlemaps.getFeaturesByAttribute("origem","medeDistanciaExcluir");if(f&&f.length>0){i3GEO.desenho.googlemaps.destroyFeatures(f)}},mostraTotal:function(trecho,total){var mostra=$i("mostradistancia_calculo"),texto;if(mostra){texto=""+$trad("x96")+": "+total.toFixed(3)+" km"+"
"+$trad("x96")+": "+(total*1000).toFixed(2)+" m"+"
"+$trad("x25")+": "+i3GEO.calculo.metododistancia;mostra.innerHTML=texto}},mostraParcial:function(trecho,parcial,direcao){var mostra=$i("mostradistancia_calculo_movel"),texto;if(mostra){texto=""+$trad("x95")+": "+trecho.toFixed(3)+" km"+"
"+$trad("x97")+": "+(parcial+trecho).toFixed(3)+" km"+"
"+$trad("x23")+" (DMS): "+direcao;mostra.innerHTML=texto}}}},medeArea:{pontos:{},ultimoWkt:"",ultimaMedida:"",inicia:function(){i3GEO.eventos.cliquePerm.desativa();i3GEO.analise.medeArea.criaJanela();i3GEO.analise.medeArea[i3GEO.Interface["ATUAL"]].inicia()},criaJanela:function(){var novoel,ins,imagemxy,janela;if(!$i("mostraarea")){novoel=document.createElement("div");novoel.id="mostraarea";ins='
'+$trad("areaAprox")+'
'+'
'+'
'+'
'+'
'+'
';novoel.innerHTML=ins;novoel.style.borderColor="gray";document.body.appendChild(novoel);janela=new YAHOO.widget.Panel("mostraarea",{width:"220px",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:true,draggable:true,modal:false});YAHOO.i3GEO.janela.manager.register(janela);janela.render();$(janela.close).click(i3GEO.analise.medeArea.fechaJanela)}else{janela=YAHOO.i3GEO.janela.manager.find("mostraarea")}janela.show();imagemxy=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));janela.moveTo(imagemxy[0]+150,imagemxy[1]);new YAHOO.widget.Button("i3GEObotaoAreaWkt",{onclick:{fn:function(){i3GEO.mapa.dialogo.wkt2layer(i3GEO.analise.medeArea.ultimoWkt,i3GEO.analise.medeArea.ultimaMedida)}}})},fechaJanela:function(){var janela;i3GEO.eventos.cliquePerm.ativa();janela=YAHOO.i3GEO.janela.manager.find("mostraarea");if(janela){YAHOO.i3GEO.janela.manager.remove(janela);janela.destroy()}i3GEO.barraDeBotoes.ativaIcone("pointer");i3GEO.analise.medeArea[i3GEO.Interface["ATUAL"]].fechaJanela()},pontos2wkt:function(){var pontos=[],x=i3GEO.analise.medeArea.pontos.xpt,y=i3GEO.analise.medeArea.pontos.ypt,n=x.length,i;for(i=0;i1){x1=i3GEO.analise.medeArea.pontos.xpt[n-1];y1=i3GEO.analise.medeArea.pontos.ypt[n-1];x2=coord[0];y2=coord[1];if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1+" "+x2+" "+y2);temp=temp.split(" ");x1=temp[0];y1=temp[1];x2=temp[2];y2=temp[3]}trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);direcao=i3GEO.calculo.direcao(x1,y1,x2,y2);direcao=i3GEO.calculo.dd2dms(direcao,direcao);direcao=direcao[0];per=i3GEO.analise.medeArea.openlayers.somaDist();x1=i3GEO.analise.medeArea.pontos.xpt[0];y1=i3GEO.analise.medeArea.pontos.ypt[0];if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1);temp=temp.split(" ");x1=temp[0];y1=temp[1]}per+=i3GEO.calculo.distancia(x1,y1,x2,y2);sourceProj=i3geoOL.getView().getProjection();geom=(geom.clone().transform(sourceProj,'EPSG:4326'));coordinates=geom.getLinearRing(0).getCoordinates();wgs84Sphere=new ol.Sphere(6378137);area=Math.abs(wgs84Sphere.geodesicArea(coordinates));i3GEO.analise.medeArea.openlayers.mostraParcial(trecho,per,area,direcao)}},point:function(point,geom){var wgs84Sphere,area,coordinates,sourceProj,n,x1,y1,x2,y2,trecho,temp,coord=point.getCoordinates(),total=0;i3GEO.analise.medeArea.pontos.xpt.push(coord[0]);i3GEO.analise.medeArea.pontos.ypt.push(coord[1]);i3GEO.analise.pontos.xpt.push(coord[0]);i3GEO.analise.pontos.ypt.push(coord[1]);n=i3GEO.analise.medeArea.pontos.ypt.length;if(n>1){x1=i3GEO.analise.medeArea.pontos.xpt[n-2];y1=i3GEO.analise.medeArea.pontos.ypt[n-2];x2=coord[0];y2=coord[1];raio=new ol.geom.LineString([[x1,y1],[x2,y2]]).getLength();if(i3GEO.Interface.openlayers.googleLike){temp=i3GEO.util.extOSM2Geo(x1+" "+y1+" "+x2+" "+y2);temp=temp.split(" ");x1=temp[0];y1=temp[1];x2=temp[2];y2=temp[3]}trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);i3GEO.analise.medeArea.pontos.dist.push(trecho);total=i3GEO.analise.medeArea.openlayers.somaDist();sourceProj=i3geoOL.getView().getProjection();geom=(geom.clone().transform(sourceProj,'EPSG:4326'));coordinates=geom.getLinearRing(0).getCoordinates();wgs84Sphere=new ol.Sphere(6378137);area=Math.abs(wgs84Sphere.geodesicArea(coordinates));i3GEO.analise.medeArea.openlayers.mostraTotal(total,area);i3GEO.analise.medeArea.ultimoWkt=i3GEO.analise.medeArea.pontos2wkt()}},somaDist:function(){var n,i,total=0;n=i3GEO.analise.medeArea.pontos.dist.length;for(i=0;i0){temp=window.confirm($trad("x94"));if(temp){for(r in remover){i3GEO.desenho.layergrafico.getSource().removeFeature(remover[r])}}}},mostraTotal:function(per,area){var mostra=$i("mostraarea_calculo"),texto;if(mostra){texto=""+$trad("d21at")+": "+(area/1000000).toFixed(3)+" km2"+"
"+$trad("d21at")+": "+(area/10000).toFixed(2)+" ha"+"
"+$trad("x98")+": "+(per).toFixed(2)+" km"+"
"+$trad("x25")+": "+i3GEO.calculo.metododistancia;mostra.innerHTML=texto;i3GEO.analise.medeArea.ultimaMedida=(area/1000000).toFixed(3)+" km2"}},mostraParcial:function(trecho,per,area,direcao){var mostra=$i("mostraarea_calculo_parcial"),texto;if(mostra){texto=""+$trad("d21at")+": "+(area/1000000).toFixed(3)+" km2"+"
"+$trad("d21at")+": "+(area/10000).toFixed(2)+" ha"+"
"+$trad("x95")+": "+trecho.toFixed(3)+" km"+"
"+$trad("x98")+": "+(per).toFixed(3)+" km"+"
"+$trad("x23")+" (DMS): "+direcao;mostra.innerHTML=texto}}},googlemaps:{inicia:function(){i3GEO.analise.medeArea.pontos={xpt:[],ypt:[],dist:[]};if(!google.maps.geometry){alert($trad("x99"));return}i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia();i3GeoMap.setOptions({disableDoubleClickZoom:true});i3GeoMap.setOptions({draggableCursor:'crosshair'});var evtdblclick=null,evtclick=null,evtmousemove=null,pontos={xpt:[],ypt:[],dist:[],mvcLine:new google.maps.MVCArray(),mvcMarkers:new google.maps.MVCArray(),line:null,polygon:null},termina=function(){google.maps.event.removeListener(evtdblclick);google.maps.event.removeListener(evtclick);google.maps.event.removeListener(evtmousemove);pontos.line.setOptions({clickable:true});google.maps.event.addListener(pontos.line,'click',function(shape){if(shape.setEditable){shape.setEditable(!shape.editable)}});if(pontos){i3GEO.desenho.googlemaps.shapes.push(pontos.mvcLine);i3GEO.desenho.googlemaps.shapes.push(pontos.line);pontos=null}i3GEO.analise.medeArea.ultimoWkt=i3GEO.analise.medeArea.pontos2wkt()};evtclick=google.maps.event.addListener(i3GeoMap,"click",function(evt){var area=0,per;pontos.mvcLine.push(evt.latLng);pontos.xpt.push(evt.latLng.lng());pontos.ypt.push(evt.latLng.lat());i3GEO.analise.medeArea.pontos.xpt.push(evt.latLng.lng());i3GEO.analise.medeArea.pontos.ypt.push(evt.latLng.lat());if(pontos.mvcLine.getLength()>0){per=google.maps.geometry.spherical.computeLength(pontos.mvcLine);area=google.maps.geometry.spherical.computeArea(pontos.mvcLine);i3GEO.analise.medeArea.googlemaps.mostraTotal(per,area)}i3GEO.desenho.googlemaps.shapes.push(new google.maps.Marker({map:i3GeoMap,fillOpacity:0,clickable:false,position:evt.latLng,icon:{path:google.maps.SymbolPath.CIRCLE,scale:2.5,strokeColor:"#ffffff"},origem:"medeAreaExcluir"}));pontos.mvcLine.push(evt.latLng)});evtmousemove=google.maps.event.addListener(i3GeoMap,"mousemove",function(evt){if(!$i("mostraarea_calculo")){termina.call();return}var x1,y1,x2,y2,direcao,per,area,estilo=i3GEO.desenho.estilos[i3GEO.desenho.estiloPadrao],n=pontos.xpt.length;if(pontos.mvcLine.getLength()>0){if(!pontos.line){pontos.line=new google.maps.Polygon({map:i3GeoMap,clickable:false,strokeColor:estilo.linecolor,strokeOpacity:1,strokeWeight:estilo.linewidth,path:pontos.mvcLine,origem:"medeArea"})}pontos.mvcLine.pop();pontos.mvcLine.push(evt.latLng);per=google.maps.geometry.spherical.computeLength(pontos.mvcLine);x1=pontos.xpt[n-1];y1=pontos.ypt[n-1];x2=evt.latLng.lng();y2=evt.latLng.lat();trecho=i3GEO.calculo.distancia(x1,y1,x2,y2);direcao=i3GEO.calculo.direcao(x1,y1,x2,y2);direcao=i3GEO.calculo.dd2dms(direcao,direcao);direcao=direcao[0];area=google.maps.geometry.spherical.computeArea(pontos.mvcLine);i3GEO.analise.medeArea.googlemaps.mostraParcial(trecho,per,area,direcao)}});evtdblclick=google.maps.event.addListener(i3GeoMap,"dblclick",function(evt){pontos.mvcLine.push(new google.maps.LatLng(pontos.ypt[0],pontos.xpt[0]));var per=google.maps.geometry.spherical.computeLength(pontos.mvcLine),area=google.maps.geometry.spherical.computeArea(pontos.mvcLine);i3GEO.analise.medeArea.googlemaps.mostraTotal(per,area);termina.call()})},somaDist:function(pontos){var n,i,total=0;n=pontos.dist.length;for(i=0;i0){temp=window.confirm($trad("x94"));if(temp){i3GEO.desenho.googlemaps.destroyFeatures(f)}}f=i3GEO.desenho.googlemaps.getFeaturesByAttribute("origem","medeAreaExcluir");if(f&&f.length>0){i3GEO.desenho.googlemaps.destroyFeatures(f)}},mostraTotal:function(per,area){var mostra=$i("mostraarea_calculo"),texto;if(mostra){texto=""+$trad("d21at")+": "+(area/1000000).toFixed(3)+" km2"+"
"+$trad("d21at")+": "+(area/10000).toFixed(2)+" ha"+"
"+$trad("x98")+": "+(per).toFixed(2)+" km"+"
"+$trad("x25")+": "+i3GEO.calculo.metododistancia;mostra.innerHTML=texto;i3GEO.analise.medeArea.ultimaMedida=(area/1000000).toFixed(3)+" km2"}},mostraParcial:function(trecho,per,area,direcao){var mostra=$i("mostraarea_calculo_parcial"),texto;if(mostra){texto=""+$trad("d21at")+": "+(area/1000000).toFixed(3)+" km2"+"
"+$trad("d21at")+": "+(area/10000).toFixed(2)+" ha"+"
"+$trad("x95")+": "+trecho.toFixed(3)+" km"+"
"+$trad("x98")+": "+(per).toFixed(3)+" km"+"
"+$trad("x23")+" (DMS): "+direcao;mostra.innerHTML=texto}}}}}; // //compactados/maparef_compacto.js -if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.maparef={fatorZoomDinamico:-3,SELETORTIPO:true,VALORSELETORTIPO:"mapa",PERMITEFECHAR:true,PERMITEDESLOCAR:true,TRANSICAOSUAVE:false,OPACIDADE:65,TOP:4,RIGHT:70,W:function(){var w=parseInt(i3GEO.parametros.w,10)/5;if(w<150){w=150}return parseInt(w,10)},H:function(){var h=parseInt(i3GEO.parametros.h,10)/5;if(i3GEO.maparef.W()<=150){return 150}else{return parseInt(h,10)}},inicia:function(){var r,pos,novoel,ins,temp,moveX,moveY,escondeRef,janela;if($i("i3geo_winRef")){janela=YAHOO.i3GEO.janela.manager.find("i3geo_winRef");janela.show();janela.bringToTop();return}if(navm){i3GEO.maparef.TRANSICAOSUAVE=false}if(!$i("i3geo_winRef")){novoel=document.createElement("div");novoel.id="i3geo_winRef";novoel.style.display="none";novoel.style.borderColor="gray";ins="";if(this.PERMITEDESLOCAR){ins+='
';ins+=' ";if(this.SELETORTIPO){ins+=""}ins+="
"}ins+='
';ins+='';ins+='
';novoel.innerHTML=ins;if(i3GEO.maparef.TRANSICAOSUAVE){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100);novoel.onmouseover=function(){$(novoel).css("opacity",1)};novoel.onmouseout=function(){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100)}}document.body.appendChild(novoel);if($i("refDinamico")){$i("refDinamico").value=i3GEO.maparef.VALORSELETORTIPO}}if($i("i3geo_winRef").style.display!=="block"){$i("i3geo_winRef").style.display="block";this.PERMITEDESLOCAR?temp="shadow":temp="none";janela=new YAHOO.widget.Panel("i3geo_winRef",{height:i3GEO.maparef.H()+27+"px",width:i3GEO.maparef.W()+6+"px",fixedcenter:false,constraintoviewport:false,underlay:temp,close:i3GEO.maparef.PERMITEFECHAR,visible:true,draggable:i3GEO.maparef.PERMITEDESLOCAR,modal:false,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);if(i3GEO.maparef.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.render();janela.show();try{janela.header.style.height="20px"}catch(e){};r=$i("i3geo_winRef_c");if(r){r.style.position="absolute"}pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));$i("mapaReferencia").style.height=i3GEO.maparef.H()+"px";$i("i3geo_winRef").style.border="0px solid gray";moveX=pos[0]+i3GEO.parametros.w-i3GEO.maparef.W()+3-i3GEO.maparef.RIGHT;moveY=pos[1]+i3GEO.maparef.TOP;if(i3GEO.Interface.ATUAL==="googlemaps"){moveY+=30}janela.moveTo(moveX,moveY);escondeRef=function(){$i("imagemReferencia").src="";janela.destroy();i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","none")};$(janela.close).click(escondeRef);i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block");if($i("localizarxygeoProjxg")){var temp=function(){i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx,objposicaocursor.dmsy,"localizarxygeoProj")};YAHOO.util.Event.addListener($i("imagemReferencia"),"mousemove",temp)}}i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"]);this.atualiza(true);$i("i3geo_winRef_h").className="hd2";if(navm){$i("i3geo_winRef_h").style.width=i3GEO.maparef.W()+6+"px"}},atualiza:function(forca){if(arguments.length===0){forca=false}var tiporef,temp;temp=$i("refDinamico")?tiporef=$i("refDinamico").value:tiporef="fixo";if($i("mapaReferencia")){temp=$i("maparefmaismenosZoom");if(tiporef==="dinamico"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}if(tiporef==="mapa"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}}else{i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"])}},processaImagem:function(retorno){var m,box,temp,tiporef="fixo";if((retorno.data!=="erro")&&(retorno.data!==undefined)){eval(retorno.data);i3GEO.parametros.celularef=g_celularef;i3GEO.parametros.extentref=extentref;temp=$i("imagemReferencia");if(temp){m=new Image();m.src=refimagem;temp.src=m.src}temp=$i("refDinamico");if(temp){tiporef=temp.value}if(tiporef!=="fixo"){box=$i("boxref");if(box){box.style.display="none"}return}i3GEO.maparef.atualizaBox()}},atualizaBox:function(){var box=i3GEO.maparef.criaBox(),w;i3GEO.calculo.ext2rect("boxref",i3GEO.parametros.extentref,i3GEO.parametros.mapexten,i3GEO.parametros.celularef,$i("mapaReferencia"));w=parseInt(box.style.width,10);if(w>120){box.style.display="none";return}box.style.display="block";box.style.top=parseInt(box.style.top,10)+4+"px";box.style.left=parseInt(box.style.left,10)+4+"px";if(w<3){box.style.width="3px";box.style.height="3px"}},criaBox:function(){var box=$i("boxref");if(!box){novoel=document.createElement("div");novoel.id="boxref";novoel.style.zIndex=10;novoel.style.position='absolute';novoel.style.cursor="move";novoel.style.backgroundColor="RGB(120,220,220)";novoel.style.borderWidth="3px";if(navm){novoel.style.filter='alpha(opacity=40)'}else{novoel.style.opacity=0.4}$i("mapaReferencia").appendChild(novoel);boxrefdd=new YAHOO.util.DD("boxref");novoel.onmouseup=function(){var rect,telaminx,telamaxx,telaminy,m,x,ext;rect=$i("boxref");telaminx=parseInt(rect.style.left,10);telamaxy=parseInt(rect.style.top,10);telamaxx=telaminx+parseInt(rect.style.width,10);telaminy=telamaxy+parseInt(rect.style.height,10);m=i3GEO.calculo.tela2dd(telaminx,telaminy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");x=i3GEO.calculo.tela2dd(telamaxx,telamaxy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");ext=m[0]+" "+m[1]+" "+x[0]+" "+x[1];i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,"",ext)};return novoel}else{return box}},click:function(){if(i3GEO.Interface.ATUAL==="openlayers"||i3GEO.Interface.ATUAL==="googlemaps"){i3GEO.Interface[i3GEO.Interface.ATUAL].pan2ponto(objposicaocursor.ddx,objposicaocursor.ddy)}}}; +if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.maparef={fatorZoomDinamico:-3,SELETORTIPO:true,VALORSELETORTIPO:"mapa",PERMITEFECHAR:true,PERMITEDESLOCAR:true,TRANSICAOSUAVE:false,OPACIDADE:65,TOP:4,RIGHT:70,W:function(){var w=parseInt(i3GEO.parametros.w,10)/5;if(w<150){w=150}return parseInt(w,10)},H:function(){var h=parseInt(i3GEO.parametros.h,10)/5;if(i3GEO.maparef.W()<=150){return 150}else{return parseInt(h,10)}},inicia:function(){var r,pos,novoel,ins,temp,moveX,moveY,escondeRef,janela;if($i("i3geo_winRef")){janela=YAHOO.i3GEO.janela.manager.find("i3geo_winRef");janela.show();janela.bringToTop();return}if(navm){i3GEO.maparef.TRANSICAOSUAVE=false}if(!$i("i3geo_winRef")){novoel=document.createElement("div");novoel.id="i3geo_winRef";novoel.style.display="none";novoel.style.borderColor="gray";ins="";if(this.PERMITEDESLOCAR){ins+='
';ins+=' ";if(this.SELETORTIPO){ins+=""}ins+="
"}ins+='
';ins+='';ins+='
';novoel.innerHTML=ins;if(i3GEO.maparef.TRANSICAOSUAVE){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100);novoel.onmouseover=function(){$(novoel).css("opacity",1)};novoel.onmouseout=function(){$(novoel).css("opacity",i3GEO.maparef.OPACIDADE/100)}}document.body.appendChild(novoel);if($i("refDinamico")){$i("refDinamico").value=i3GEO.maparef.VALORSELETORTIPO}}if($i("i3geo_winRef").style.display!=="block"){$i("i3geo_winRef").style.display="block";this.PERMITEDESLOCAR?temp="shadow":temp="none";janela=new YAHOO.widget.Panel("i3geo_winRef",{height:i3GEO.maparef.H()+27+"px",width:i3GEO.maparef.W()+6+"px",fixedcenter:false,constraintoviewport:false,underlay:temp,close:i3GEO.maparef.PERMITEFECHAR,visible:true,draggable:i3GEO.maparef.PERMITEDESLOCAR,modal:false,iframe:false});YAHOO.i3GEO.janela.manager.register(janela);if(i3GEO.maparef.TRANSICAOSUAVE){janela.cfg.setProperty("effect",[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.5}])}janela.render();janela.show();try{janela.header.style.height="20px"}catch(e){};r=$i("i3geo_winRef_c");if(r){r.style.position="absolute"}pos=i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));$i("mapaReferencia").style.height=i3GEO.maparef.H()+"px";$i("i3geo_winRef").style.border="0px solid gray";moveX=pos[0]+i3GEO.parametros.w-i3GEO.maparef.W()+3-i3GEO.maparef.RIGHT;moveY=pos[1]+i3GEO.maparef.TOP;if(i3GEO.Interface.ATUAL==="googlemaps"){moveY+=30}janela.moveTo(moveX,moveY);escondeRef=function(){$i("imagemReferencia").src="";janela.destroy();i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","none")};$(janela.close).click(escondeRef);i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block");if($i("localizarxygeoProjxg")){var temp=function(){i3GEO.coordenadas.atualizaGeo(objposicaocursor.dmsx,objposicaocursor.dmsy,"localizarxygeoProj")};$("#imagemReferencia").mousemove(temp)}}i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"]);this.atualiza(true);$i("i3geo_winRef_h").className="hd2";if(navm){$i("i3geo_winRef_h").style.width=i3GEO.maparef.W()+6+"px"}},atualiza:function(forca){if(arguments.length===0){forca=false}var tiporef,temp;temp=$i("refDinamico")?tiporef=$i("refDinamico").value:tiporef="fixo";if($i("mapaReferencia")){temp=$i("maparefmaismenosZoom");if(tiporef==="dinamico"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}if(tiporef==="mapa"){i3GEO.php.referenciadinamica(i3GEO.maparef.processaImagem,i3GEO.maparef.fatorZoomDinamico,tiporef,i3GEO.maparef.W(),i3GEO.maparef.H());if(temp){temp.style.display="inline"}}}else{i3GEO.eventos.removeEventos("NAVEGAMAPA",["i3GEO.maparef.atualiza()"])}},processaImagem:function(retorno){var m,box,temp,tiporef="fixo";if((retorno.data!=="erro")&&(retorno.data!==undefined)){eval(retorno.data);i3GEO.parametros.celularef=g_celularef;i3GEO.parametros.extentref=extentref;temp=$i("imagemReferencia");if(temp){m=new Image();m.src=refimagem;temp.src=m.src}temp=$i("refDinamico");if(temp){tiporef=temp.value}if(tiporef!=="fixo"){box=$i("boxref");if(box){box.style.display="none"}return}i3GEO.maparef.atualizaBox()}},atualizaBox:function(){var box=i3GEO.maparef.criaBox(),w;i3GEO.calculo.ext2rect("boxref",i3GEO.parametros.extentref,i3GEO.parametros.mapexten,i3GEO.parametros.celularef,$i("mapaReferencia"));w=parseInt(box.style.width,10);if(w>120){box.style.display="none";return}box.style.display="block";box.style.top=parseInt(box.style.top,10)+4+"px";box.style.left=parseInt(box.style.left,10)+4+"px";if(w<3){box.style.width="3px";box.style.height="3px"}},criaBox:function(){var box=$i("boxref");if(!box){novoel=document.createElement("div");novoel.id="boxref";novoel.style.zIndex=10;novoel.style.position='absolute';novoel.style.cursor="move";novoel.style.backgroundColor="RGB(120,220,220)";novoel.style.borderWidth="3px";if(navm){novoel.style.filter='alpha(opacity=40)'}else{novoel.style.opacity=0.4}$i("mapaReferencia").appendChild(novoel);novoel.onmouseup=function(){var rect,telaminx,telamaxx,telaminy,m,x,ext;rect=$i("boxref");telaminx=parseInt(rect.style.left,10);telamaxy=parseInt(rect.style.top,10);telamaxx=telaminx+parseInt(rect.style.width,10);telaminy=telamaxy+parseInt(rect.style.height,10);m=i3GEO.calculo.tela2dd(telaminx,telaminy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");x=i3GEO.calculo.tela2dd(telamaxx,telamaxy,i3GEO.parametros.celularef,i3GEO.parametros.extentref,"imagemReferencia");ext=m[0]+" "+m[1]+" "+x[0]+" "+x[1];i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,"",ext)};return novoel}else{return box}},click:function(){if(i3GEO.Interface.ATUAL==="openlayers"||i3GEO.Interface.ATUAL==="googlemaps"){i3GEO.Interface[i3GEO.Interface.ATUAL].pan2ponto(objposicaocursor.ddx,objposicaocursor.ddy)}}}; // //compactados/ajuda_compacto.js if(typeof(i3GEO)==='undefined'){var i3GEO={}}i3GEO.ajuda={ATIVAJANELA:true,DIVAJUDA:"i3geo_ajuda",DIVLETREIRO:"i3geo_letreiro",MENSAGEMPADRAO:$trad("p1"),TRANSICAOSUAVE:true,OPACIDADE:20,abreDoc:function(url){if(!url){url="/documentacao/index.html"}window.open(i3GEO.configura.locaplic+url)},abreJanela:function(){try{var nx,ny,corpo,texto,janela,temp,largura=262,pos={left:20,top:i3GEO.parametros.h/2};if(this.ATIVAJANELA===false){return}temp=$i("contemFerramentas");if(temp){largura=parseInt(temp.style.width,10)-5}if(!$i("janelaMenTexto")){corpo=$i(i3GEO.Interface.IDCORPO);if(!corpo){corpo=$i(i3GEO.Interface.IDMAPA)}if(corpo){pos=$(corpo).position()}nx=pos.left-largura-3;ny=i3GEO.parametros.h-78;texto='
'+i3GEO.ajuda.MENSAGEMPADRAO+'
';if(nx<0){nx=10;ny=ny-50}janela=i3GEO.janela.cria(largura-3,70,"",nx,ny," ","i3geo_janelaMensagens",false,"hd","","",true);janela[2].innerHTML=texto;$(janela[0].close).click(i3GEO.ajuda.fechaJanela);this.ativaCookie()}}catch(e){}},ativaCookie:function(){var i=i3GEO.util.insereCookie;i("g_janelaMen","sim");i("botoesAjuda","sim")},ativaLetreiro:function(mensagem){var l;if($i(i3GEO.ajuda.DIVLETREIRO)){if(arguments.length===0){mensagem=i3GEO.parametros.mensagens}i3GEO.eventos.adicionaEventos("NAVEGAMAPA",["i3GEO.ajuda.ativaLetreiro()"]);try{clearTimeout(i3GEO.ajuda.tempoLetreiro)}catch(e){i3GEO.ajuda.tempoLetreiro=""}if(mensagem===""){i3GEO.eventos.removEventos("NAVEGAMAPA",["i3GEO.ajuda.ativaLetreiro()"]);return}l=$i(i3GEO.ajuda.DIVLETREIRO);if(l.style.display==="none"){return}l.style.cursor="pointer";if(mensagem===""){l.value="";return}if(l.size===1){l.size=i3GEO.parametros.w/8}BMessage=mensagem+" ---Clique para parar--- ";l.onclick=function(){l.style.display="none"};if(BMessage!==" ---Clique para parar--- "){BQuantas=0;BSize=l.size;BPos=BSize;BSpeed=1;BSpaces="";i3GEO.ajuda.mostraLetreiro()}i3GEO.ajuda.mostraLetreiro(mensagem)}},desativaCookie:function(){i3GEO.util.insereCookie("g_janelaMen","nao")},fechaJanela:function(){i3GEO.ajuda.desativaCookie();i3GEO.util.removeChild("i3geo_janelaMensagens_c",document.body)},mostraJanela:function(texto){var j=$i(this.DIVAJUDA),k=$i("janelaMenTexto"),jm=$i("i3geo_janelaMensagens"),h=parseInt($(jm).css("height"),10);if(j){j.innerHTML=texto===""?"-":texto}else{if(k){k.innerHTML=texto}if(this.TRANSICAOSUAVE){texto!==""?$(jm).css("opacity",1):$(jm).css("opacity",this.OPACIDADE/100)}h=parseInt($(jm).css("height"),10)}},mostraLetreiro:function(){for(var count=0;count"+$trad("u5c")+"
",i3GEO.util.generateId("redes"))}}; diff --git a/js/i3geonaocompacto.js b/js/i3geonaocompacto.js index 5812fa4..cfb9b15 100755 --- a/js/i3geonaocompacto.js +++ b/js/i3geonaocompacto.js @@ -147,13 +147,17 @@ OpenLayers = { "../pacotes/yui290/build/progressbar/assets/skins/sam/progressbar.css", "../css/corrigeyui_geral.css", "../css/janelaflutuante.css", - "../mashups/openlayers.css" + "../mashups/openlayers.css", + "../pacotes/bootstrap/css/bootstrap.min.css", + "../pacotes/bootstrap-material-design/dist/css/bootstrap-material-design.min.css" ); for (i = 0; i < cssfiles.length; i++) { var currentCssTag = ""; allCssTags += currentCssTag; } + allCssTags += ""; + allCssTags += ""; document.write(allCssTags); document.write(allScriptTags); diff --git a/js/tema.js b/js/tema.js index 72b6133..189b41d 100755 --- a/js/tema.js +++ b/js/tema.js @@ -886,4 +886,3 @@ i3GEO.tema = } } }; -// YAHOO.log("carregou classe tema", "Classes i3geo"); \ No newline at end of file diff --git a/js/util.js b/js/util.js index 7c795cf..d39a5c2 100755 --- a/js/util.js +++ b/js/util.js @@ -151,7 +151,7 @@ Array.prototype.getUnique = function() { return a; }; i3GEO.util = - { +{ /** * Elementos IMG criados na funcao criaPin * @@ -338,7 +338,7 @@ i3GEO.util = } titulo = "
" + titulo + "
"; d = { - html : titulo + html : titulo }; tempNode = new YAHOO.widget.HTMLNode(d, root, true, true); tempNode.enableHighlight = true; @@ -356,7 +356,7 @@ i3GEO.util = conteudo = linha.text; } d = { - html : conteudo + html : conteudo }; temaNode = new YAHOO.widget.HTMLNode(d, noDestino, false, true); temaNode.enableHighlight = false; @@ -386,55 +386,55 @@ i3GEO.util = removeAcentos : function(str) { var defaultDiacriticsRemovalMap = [ - { - 'base' : 'A', - 'letters' : /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g - }, - { - 'base' : 'C', - 'letters' : /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g - }, - { - 'base' : 'E', - 'letters' : /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g - }, - { - 'base' : 'I', - 'letters' : /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g - }, - { - 'base' : 'O', - 'letters' : /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g - }, - { - 'base' : 'U', - 'letters' : /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g - }, - { - 'base' : 'a', - 'letters' : /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g - }, - { - 'base' : 'c', - 'letters' : /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g - }, - { - 'base' : 'e', - 'letters' : /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g - }, - { - 'base' : 'i', - 'letters' : /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g - }, - { - 'base' : 'o', - 'letters' : /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g - }, - { - 'base' : 'u', - 'letters' : /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g - } - ]; + { + 'base' : 'A', + 'letters' : /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g + }, + { + 'base' : 'C', + 'letters' : /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g + }, + { + 'base' : 'E', + 'letters' : /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g + }, + { + 'base' : 'I', + 'letters' : /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g + }, + { + 'base' : 'O', + 'letters' : /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g + }, + { + 'base' : 'U', + 'letters' : /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g + }, + { + 'base' : 'a', + 'letters' : /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g + }, + { + 'base' : 'c', + 'letters' : /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g + }, + { + 'base' : 'e', + 'letters' : /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g + }, + { + 'base' : 'i', + 'letters' : /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g + }, + { + 'base' : 'o', + 'letters' : /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g + }, + { + 'base' : 'u', + 'letters' : /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g + } + ]; for (var i = 0; i < defaultDiacriticsRemovalMap.length; i++) { str = str.replace(defaultDiacriticsRemovalMap[i].letters, defaultDiacriticsRemovalMap[i].base); } @@ -471,8 +471,8 @@ i3GEO.util = if (obj) { if (!obj.style) { return [ - 0, 0 - ]; + 0, 0 + ]; } var curleft = 0, curtop = 0; if (obj) { @@ -485,12 +485,12 @@ i3GEO.util = } } return [ - curleft + document.body.scrollLeft, curtop + document.body.scrollTop - ]; + curleft + document.body.scrollLeft, curtop + document.body.scrollTop + ]; } else { return [ - 0, 0 - ]; + 0, 0 + ]; } }, /** @@ -547,50 +547,7 @@ i3GEO.util = * * {String} - onde esta instalado o i3Geo */ - mudaCursor : function(cursores, tipo, idobjeto, locaplic) { - var os = [], o, i, c = "", n, cursor = "", ext = ".ff"; - // - // no caso da interface openlayers, o cursor deve ser definido no estilo - // do elemento img de cada TILE de cada LAYER - // para achar os img faz-se a busca pela classe css utilizada pelo OpenLayers nos img desse tipo - // - try { - if (navm) { - ext = ".ie"; - } - os.push(document.getElementById(idobjeto)); - if (i3GEO.Interface.ATUAL === "openlayers") { - os = YAHOO.util.Dom.getElementsByClassName('olTileImage', 'img'); - } - if (i3GEO.Interface.ATUAL === "googlemaps") { - os = document.getElementById(idobjeto).firstChild; - os = os.getElementsByTagName("div"); - } - n = os.length; - if (tipo === "default" || tipo === "pointer" - || tipo === "crosshair" - || tipo === "help" - || tipo === "move" - || tipo === "text") { - cursor = tipo; - } else { - c = eval("cursores." + tipo + ext); - } - // testa novamente - if (c === "default" || c === "pointer" || c === "crosshair" || c === "help" || c === "move" || c === "text") { - cursor = c; - } - if (cursor === "") { - cursor = "URL(\"" + locaplic + eval("cursores." + tipo + ext) + "\"),auto"; - } - for (i = 0; i < n; i++) { - o = os[i]; - if (o) { - o.style.cursor = cursor; - } - } - } catch (e) { - } + mudaCursor : function() { }, /** * Cria um elemento div na pagina atual. @@ -697,13 +654,13 @@ i3GEO.util = onde.appendChild(novoel); i3GEO.util.PINS.push(id); return [ - true, novoel - ]; + true, novoel + ]; } p.style.display = "block"; return [ - false, p - ]; + false, p + ]; }, /** * Function: posicionaImagemNoMapa @@ -736,8 +693,8 @@ i3GEO.util = i.style.top = y - my + "px"; i.style.left = x - mx + "px"; return [ - y - my, x - mx - ]; + y - my, x - mx + ]; }, /** * Function: escondePin @@ -814,17 +771,17 @@ i3GEO.util = onch = ""; } return ""; + + "\" tabindex='0' onclick='javascript:this.select();' id='" + + idInput + + "' title='" + + titulo + + "' type='text' size='" + + digitos + + "' class='digitar' value='" + + valor + + "' name='" + + nome + + "' />"; }, // incluir no onmouseover dos itens com cores $inputTextMudaCor : function(obj) { @@ -908,7 +865,7 @@ i3GEO.util = abreCor : function(janelaid, elemento, tipo) { if (!i3GEO.configura) { i3GEO.configura = { - locaplic : "../" + locaplic : "../" }; } if (arguments.length === 2) { @@ -916,7 +873,7 @@ i3GEO.util = } var janela, ins, novoel, wdocaiframe, wsrc = i3GEO.configura.locaplic + "/ferramentas/colorpicker/index.htm?doc=" + janelaid + "&elemento=" + elemento + "&tipo=" + tipo, texto = - "Cor", id = "i3geo_janelaCor", classe = "hd"; + "Cor", id = "i3geo_janelaCor", classe = "hd"; if ($i(id)) { YAHOO.i3GEO.janela.manager.find(id).show(); return; @@ -924,7 +881,7 @@ i3GEO.util = ins = '
'; ins += ""; + + "/imagens/aguarde.gif\' />"; ins += texto; ins += '
'; if (wsrc !== "") { @@ -1203,8 +1160,8 @@ i3GEO.util = getScrollHeight : function() { var mx = Math.max, d = document; return mx(mx(d.body.scrollHeight, d.documentElement.scrollHeight), mx(d.body.offsetHeight, d.documentElement.offsetHeight), mx( - d.body.clientHeight, - d.documentElement.clientHeight)); + d.body.clientHeight, + d.documentElement.clientHeight)); /** * var maxDisplacement=0; window.scrollTo(0,10000000); if( typeof self.pageYOffset!='undefined' ) @@ -1258,10 +1215,6 @@ i3GEO.util = }; } else { script.onload = function() { - /* - * if (i3GEO.janela) { i3GEO.janela.fechaAguarde(id + "aguarde"); } - */ - //if (YAHOO.lang.isFunction(ini)) { if (ini.call) { ini.call(); } else { @@ -1269,9 +1222,6 @@ i3GEO.util = } }; } - /* - * if (i3GEO.janela) { i3GEO.janela.ESTILOAGUARDE = tipojanela; } - */ } script.src = js; if (id !== "") { @@ -1280,7 +1230,7 @@ i3GEO.util = head.appendChild(script); } else { if (ini !== "") { - if (YAHOO.lang.isFunction(ini)) { + if (jQuery.isFunction(ini)) { ini.call(); } else { eval(ini); @@ -1407,12 +1357,11 @@ i3GEO.util = * {String} */ rgb2hex : function(str) { - var re = new RegExp(" ", "g"), rgb = str.replace(re, ','); - return YAHOO.util.Dom.Color.toHex("rgb(" + rgb + ")"); - /** - * function hex(x) { var hexDigits = ["0", "1", "2", "3", "4", "5", "6", "7", "8","9", "A", "B", "C", "D", "E", "F"]; return - * hexDigits[(x - x % 16) / 16] + hexDigits[x% 16]; } return "#" + hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]); - */ + var rgb = str.split(","); + function hex(x) { + return ("0" + parseInt(x).toString(16)).slice(-2); + } + return "#" + hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]); }, /** * Function: comboTemas @@ -1463,67 +1412,67 @@ i3GEO.util = var monta, temp, temp1, temp2; monta = function(retorno) { - var i, comboTemas = '', n, nome = "", tema; - if (yui === true) { - comboTemas = - ''; - id = id + "select"; - nome = id; + var i, comboTemas = '', n, nome = "", tema; + if (yui === true) { + comboTemas = + ''; + id = id + "select"; + nome = id; + } + if (retorno !== undefined) { + if (retorno.data) { + retorno = retorno.data; } - if (retorno !== undefined) { - if (retorno.data) { - retorno = retorno.data; + n = retorno.length; + if (n > 0) { + if (multiplo) { + comboTemas += + ""; } - n = retorno.length; - if (n > 0) { - if (multiplo) { - comboTemas += - ""; + nome = retorno[i].tema; + tema = retorno[i].name; } - if (yui === false || incluiVazio === true) { - comboTemas += ""; + if (retorno[i].escondido !== "sim") { + comboTemas += ""; } - for (i = 0; i < n; i++) { - if (retorno[i].nome) { - nome = retorno[i].nome; - tema = retorno[i].tema; - } else { - nome = retorno[i].tema; - tema = retorno[i].name; - } - if (retorno[i].escondido !== "sim") { - comboTemas += ""; - } - } - comboTemas += ""; - temp = { + } + comboTemas += ""; + temp = { dados : comboTemas, tipo : "dados" + }; + } else { + if (tipoCombo === "poligonosSelecionados" || tipoCombo === "selecionados" || tipoCombo === "pontosSelecionados") { + temp = + { + dados : '
Nenhum tema encontrado. Selecionar...
', + tipo : "mensagem" }; } else { - if (tipoCombo === "poligonosSelecionados" || tipoCombo === "selecionados" || tipoCombo === "pontosSelecionados") { - temp = - { - dados : '
Nenhum tema encontrado. Selecionar...
', - tipo : "mensagem" - }; - } else { - temp = { + temp = { dados : '
Nenhum tema encontrado.
', tipo : "mensagem" - }; - } + }; } - } else { - temp = { + } + } else { + temp = { dados : "

Ocorreu um erro
", tipo : "erro" - }; - } - eval("funcao(temp);"); - }; + }; + } + eval("funcao(temp);"); + }; if (tipoCombo === "ligados") { if (i3GEO.arvoreDeCamadas.CAMADAS !== "") { monta(i3GEO.arvoreDeCamadas.filtraCamadas("status", 2, "igual", i3GEO.arvoreDeCamadas.CAMADAS)); @@ -1662,25 +1611,25 @@ i3GEO.util = if (!ids) { combo += "" - + nomes[i] - + ""; + + " onclick=" + + funcaoclick + + " size=2 style='top:1px;cursor:pointer' type=checkbox value='" + + valores[i] + + "' />" + + nomes[i] + + ""; } else { combo += "" - + nomes[i] - + ""; + + " id=" + + ids[i] + + " onclick=" + + funcaoclick + + " size=2 style='top:1px;cursor:pointer' type=checkbox value='" + + valores[i] + + "' />" + + nomes[i] + + ""; } } combo += "

"; @@ -1733,54 +1682,54 @@ i3GEO.util = var monta, temp, temp1, n, i; monta = function(retorno) { - try { - var i, comboTemas, n, nome; - if (retorno !== undefined) { - if (retorno.data) { - retorno = retorno.data; - } - n = retorno.length; - if (n > 0) { - comboTemas = ""; - for (i = 0; i < n; i++) { - if (retorno[i].nome) { - nome = retorno[i].nome; - tema = retorno[i].tema; - } else { - nome = retorno[i].tema; - tema = retorno[i].name; - } - comboTemas += ""; - comboTemas += - ""; + try { + var i, comboTemas, n, nome; + if (retorno !== undefined) { + if (retorno.data) { + retorno = retorno.data; + } + n = retorno.length; + if (n > 0) { + comboTemas = "
 
"; + for (i = 0; i < n; i++) { + if (retorno[i].nome) { + nome = retorno[i].nome; + tema = retorno[i].tema; + } else { + nome = retorno[i].tema; + tema = retorno[i].name; } - comboTemas += "
"; - temp = { + comboTemas += ""; + comboTemas += + " "; + } + comboTemas += ""; + temp = { dados : comboTemas, tipo : "dados" - }; - } else { - temp = { - dados : '
Nenhum tema encontrado.
', - tipo : "mensagem" - }; - } + }; } else { temp = { - dados : "

Ocorreu um erro
", - tipo : "erro" + dados : '

Nenhum tema encontrado.
', + tipo : "mensagem" }; } - eval("funcao(temp);"); - } catch (e) { + } else { + temp = { + dados : "

Ocorreu um erro
", + tipo : "erro" + }; } - }; + eval("funcao(temp);"); + } catch (e) { + } + }; if (tipoLista === "ligados") { if (i3GEO.arvoreDeCamadas.CAMADAS !== "") { monta(i3GEO.arvoreDeCamadas.filtraCamadas("status", 2, "igual", i3GEO.arvoreDeCamadas.CAMADAS)); @@ -1893,13 +1842,13 @@ i3GEO.util = ins.push(""); ins = ins.join(''); temp = { - dados : ins, - tipo : "dados" + dados : ins, + tipo : "dados" }; } else { temp = { - dados : '

Ocorreu um erro
', - tipo : "erro" + dados : '
Ocorreu um erro
', + tipo : "erro" }; } eval("funcao(temp)"); @@ -1947,13 +1896,13 @@ i3GEO.util = ins.push(""); ins = ins.join(''); temp = { - dados : ins, - tipo : "dados" + dados : ins, + tipo : "dados" }; } else { temp = { - dados : '
Ocorreu um erro', - tipo : "erro" + dados : '
Ocorreu um erro', + tipo : "erro" }; } eval("funcao(temp)"); @@ -2049,21 +1998,21 @@ i3GEO.util = } var monta = function(retorno) { - var ins = [], i, temp, n; - if (retorno.data !== undefined) { - if (ordenacao === "sim") { - ins.push(""); - } else { - ins.push("
" + $trad("x64") + "Ordem
"); - } - n = retorno.data.valores.length; - for (i = 0; i < n; i++) { - ins.push(""); - ins.push(""); - if (ordenacao === "sim") { - ins.push(""); - } else { - ins.push(""); - } - ins.push(""); + } else { + ins.push(""); } - ins.push("
" + $trad("x64") + "
"); - ins = ins.join(''); - temp = { + ins.push(""); + } + ins.push(""); + ins = ins.join(''); + temp = { dados : ins, tipo : "dados" - }; - } else { - temp = { + }; + } else { + temp = { dados : '
' + $trad("x66") + '
', tipo : "erro" - }; - } - funcao.call(this, temp); - }; + }; + } + funcao.call(this, temp); + }; i3GEO.php.listaItensTema(monta, tema); }, /** @@ -2128,34 +2077,34 @@ i3GEO.util = } var monta = function(retorno) { - var ins = [], i, n, temp; - if (retorno.data !== undefined) { - ins.push(""); - n = retorno.data.length; - for (i = 0; i < n; i++) { - ins.push(""); - c = ""; - ins.push(""); - } - ins.push("
"); + n = retorno.data.length; + for (i = 0; i < n; i++) { + ins.push("
" + retorno.data[i].nome + "
"); - ins = ins.join(''); - temp = { + c = ""; + ins.push("" + retorno.data[i].nome + ""); + } + ins.push(""); + ins = ins.join(''); + temp = { dados : ins, tipo : "dados" - }; - } else { - temp = { + }; + } else { + temp = { dados : '
Ocorreu um erro
', tipo : "erro" - }; - } - funcao(temp); - }; + }; + } + funcao(temp); + }; i3GEO.php.listaEpsg(monta); }, /** @@ -2230,18 +2179,18 @@ i3GEO.util = if (anterior !== "") { botoes += ""; + + idatual + + "anterior_' onclick='" + + anterior + + "' type='button' value='  ' />"; } if (proxima !== "") { botoes += ""; + + idatual + + "proxima_' onclick='" + + proxima + + "' type='button' value='  ' />"; } botoes += ""; @@ -2427,14 +2376,14 @@ i3GEO.util = abreColourRamp : function(janelaid, elemento, ncores,temaSel, displayComboTemas) { var janela, ins, novoel, wdocaiframe, temp, fix = false, wsrc = i3GEO.configura.locaplic + "/ferramentas/colourramp/index.php?ncores=" - + ncores - + "&doc=" - + janelaid - + "&elemento=" - + elemento - + "&locaplic=" - + i3GEO.configura.locaplic, // +janela+"&elemento="+elemento+"&tipo="+tipo, - nx = "", texto = "", id = "i3geo_janelaCorRamp", classe = "hd"; + + ncores + + "&doc=" + + janelaid + + "&elemento=" + + elemento + + "&locaplic=" + + i3GEO.configura.locaplic, // +janela+"&elemento="+elemento+"&tipo="+tipo, + nx = "", texto = "", id = "i3geo_janelaCorRamp", classe = "hd"; if(!temaSel){ temaSel = ""; } @@ -2447,7 +2396,7 @@ i3GEO.util = ins = '
'; ins += ""; + + "/imagens/aguarde.gif\' />"; if (i3GEO && i3GEO.arvoreDeCamadas) { ins += "
------
"; } @@ -2490,28 +2439,28 @@ i3GEO.util = if ($i("i3geo_janelaCorRampComboCabeca")) { temp = function() { - var p, tema = $i("i3geo_janelaCorRampComboCabecaSel").value, funcao = function(retorno) { - parent.frames["i3geo_janelaCorRampi"].document.getElementById("ncores").value = retorno.data.length; - }; - if (tema !== "") { - i3GEO.mapa.ativaTema(tema); - // pega o numero de classes nalegenda do tema escolhido - p = - i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" - + i3GEO.configura.sid - + "&funcao=editalegenda&opcao=edita&tema=" - + tema; - i3GEO.util.ajaxGet(p, funcao); - cp = new cpaint(); - } + var p, tema = $i("i3geo_janelaCorRampComboCabecaSel").value, funcao = function(retorno) { + parent.frames["i3geo_janelaCorRampi"].document.getElementById("ncores").value = retorno.data.length; }; + if (tema !== "") { + i3GEO.mapa.ativaTema(tema); + // pega o numero de classes nalegenda do tema escolhido + p = + i3GEO.configura.locaplic + "/ferramentas/legenda/exec.php?g_sid=" + + i3GEO.configura.sid + + "&funcao=editalegenda&opcao=edita&tema=" + + tema; + i3GEO.util.ajaxGet(p, funcao); + cp = new cpaint(); + } + }; i3GEO.janela.comboCabecalhoTemas( - "i3geo_janelaCorRampComboCabeca", - "i3geo_janelaCorRampComboCabecaSel", - "none", - "ligados", - temp, - temaSel); + "i3geo_janelaCorRampComboCabeca", + "i3geo_janelaCorRampComboCabecaSel", + "none", + "ligados", + temp, + temaSel); } }, /** @@ -2682,8 +2631,8 @@ i3GEO.util = } viewportwidth = viewportwidth - i3GEO.util.getScrollerWidth(); return [ - viewportwidth, viewportheight - ]; + viewportwidth, viewportheight + ]; }, /** * Function: detectaTablet @@ -2759,9 +2708,9 @@ i3GEO.util = if (document.implementation.createDocumentType) { var newDoctype = document.implementation.createDocumentType( - 'html', - '-//W3C//DTD XHTML 1.0 Transitional//EN', - 'http://www.w3.org/TR/html4/loose.dtd'); + 'html', + '-//W3C//DTD XHTML 1.0 Transitional//EN', + 'http://www.w3.org/TR/html4/loose.dtd'); // var newDoctype = document.implementation.createDocumentType('HTML'); if (document.doctype) { document.doctype.parentNode.replaceChild(newDoctype, document.doctype); @@ -2850,18 +2799,18 @@ i3GEO.util = falhou = function(e) { }; callback = { - success : function(o) { - try { - funcaoRetorno.call("", JSON.parse(o.responseText)); - } catch (e) { - falhou(e); + success : function(o) { + try { + funcaoRetorno.call("", JSON.parse(o.responseText)); + } catch (e) { + falhou(e); + } + }, + failure : falhou, + argument : { + foo : "foo", + bar : "bar" } - }, - failure : falhou, - argument : { - foo : "foo", - bar : "bar" - } }; YAHOO.util.Connect.asyncRequest("GET", sUrl, callback); }, @@ -3140,134 +3089,134 @@ i3GEO.util = base64decode : function(str) { var base64DecodeChars = new Array( - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - 62, - -1, - -1, - -1, - 63, - 52, - 53, - 54, - 55, - 56, - 57, - 58, - 59, - 60, - 61, - -1, - -1, - -1, - -1, - -1, - -1, - -1, - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - -1, - -1, - -1, - -1, - -1, - -1, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - -1, - -1, - -1, - -1, - -1); + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 62, + -1, + -1, + -1, + 63, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + -1, + -1, + -1, + -1, + -1, + -1, + -1, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + -1, + -1, + -1, + -1, + -1, + -1, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + -1, + -1, + -1, + -1, + -1); var c1, c2, c3, c4; var i, len, out; @@ -3350,13 +3299,10 @@ i3GEO.util = * */ aplicaAquarela : function(onde) { - var temp = function(obj) { - YAHOO.util.Event.addListener(obj, "click", function() { - i3GEO.util.abreCor("", obj.firstChild.id); - }); - YAHOO.util.Event.addListener(obj.firstChild, "click", YAHOO.util.Event.stopPropagation); - }; - YAHOO.util.Dom.getElementsByClassName("i3geoFormIconeAquarela", "div", onde, temp); + //id pode ter ponto !!! + $($i(onde)).find(".i3geoFormIconeAquarela").click(function() { + i3GEO.util.abreCor("", this.firstChild.id); + }); }, /** * Depreciado na versao 6.0 @@ -3424,171 +3370,29 @@ i3GEO.util = * {string} */ copyToClipboard : function(texto) { - if (window.clipboardData && window.clipboardData.setData) { - // IE specific code path to prevent textarea being shown while dialog is visible. - return clipboardData.setData("Text", texto); - - } else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { - var textarea = document.createElement("textarea"); - textarea.textContent = texto; - textarea.style.position = "fixed"; // Prevent scrolling to bottom of page in MS Edge. - document.body.appendChild(textarea); - textarea.select(); - try { - return document.execCommand("copy"); // Security exception may be thrown by some browsers. - } catch (ex) { - return false; - } finally { - document.body.removeChild(textarea); - } - } - } - }; - -// YUI ACCORDION -// 1/22/2008 - Edwart Visser - -// accordion - -// REQUIRES: yahoo-dom-event.js, animation-min.js - -try { - YAHOO.namespace("lutsr"); - YAHOO.lutsr.accordion = - { - properties : { - animation : true, - animationDuration : 10, - multipleOpen : false, - Id : "sanfona", - altura : 200, - ativa : 0 - }, - - init : function(animation, animationDuration, multipleOpen, Id, altura, ativa) { - if (animation) { - this.properties.animation = animation; - } - if (animationDuration) { - this.properties.animationDuration = animationDuration; - } - if (multipleOpen) { - this.properties.multipleOpen = multipleOpen; - } - if (Id) { - this.properties.Id = Id; - } - if (altura) { - this.properties.altura = altura; - } - if (ativa) { - this.properties.ativa = ativa; - } - var accordionObject = document.getElementById(this.properties.Id), headers; - if (accordionObject) { - if (accordionObject.nodeName === "DL") { - headers = accordionObject.getElementsByTagName("dt"); - this.attachEvents(headers, 0); - } - } - }, - attachEvents : function(headers, nr) { - var i, headerProperties, parentObj, header; - for (i = 0; i < headers.length; i++) { - headerProperties = { - objRef : headers[i], - nr : i, - jsObj : this - }; - YAHOO.util.Event.addListener(headers[i], "click", this.clickHeader, headerProperties); - } - parentObj = headers[this.properties.ativa].parentNode; - headers = parentObj.getElementsByTagName("dd"); - header = headers[this.properties.ativa]; - - this.expand(header); - }, - - clickHeader : function(e, headerProperties) { - var parentObj = headerProperties.objRef.parentNode, headers = parentObj.getElementsByTagName("dd"), header = - headers[headerProperties.nr], i; + if (window.clipboardData && window.clipboardData.setData) { + // IE specific code path to prevent textarea being shown while dialog is visible. + return clipboardData.setData("Text", texto); - if (YAHOO.util.Dom.hasClass(header, "open")) { - headerProperties.jsObj.collapse(header); - } else { - if (headerProperties.jsObj.properties.multipleOpen) { - headerProperties.jsObj.expand(header); - } else { - for (i = 0; i < headers.length; i++) { - if (YAHOO.util.Dom.hasClass(headers[i], "open")) { - headerProperties.jsObj.collapse(headers[i]); - } - } - headerProperties.jsObj.expand(header); - } - } - }, - collapse : function(header) { - YAHOO.util.Dom.removeClass(YAHOO.util.Dom.getPreviousSibling(header), "selected"); - if (!this.properties.animation) { - YAHOO.util.Dom.removeClass(header, "open"); - } else { - this.initAnimation(header, "close"); - } - }, - expand : function(header) { - YAHOO.util.Dom.addClass(YAHOO.util.Dom.getPreviousSibling(header), "selected"); - if (!this.properties.animation) { - YAHOO.util.Dom.addClass(header, "open"); - } else { - this.initAnimation(header, "open"); - } - }, - initAnimation : function(header, dir) { - var attributes, animation, animationEnd; - if (dir === "open") { - $(header).css({"visibility": "hidden","height": this.properties.altura}); - YAHOO.util.Dom.addClass(header, "open"); - - attributes = { - height : { - from : 0, - to : this.properties.altura - } - }; - $(header).css({"visibility": "visible","height": 0}); - animation = new YAHOO.util.Anim(header, attributes); - animationEnd = function() { - // alert(this.properties.altura+"px") - header.style.height = this.properties.altura + "px"; - }; - animation.duration = this.properties.animationDuration; - animation.useSeconds = false; - animation.onComplete.subscribe(animationEnd); - animation.animate(); - } else if ("close") { - attributes = { - height : { - to : 0 - } - }; - animationEnd = function() { - YAHOO.util.Dom.removeClass(header, "open"); - }; - animation = new YAHOO.util.Anim(header, attributes); - animation.duration = this.properties.animationDuration; - animation.useSeconds = false; - animation.onComplete.subscribe(animationEnd); - animation.animate(); + } else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { + var textarea = document.createElement("textarea"); + textarea.textContent = texto; + textarea.style.position = "fixed"; // Prevent scrolling to bottom of page in MS Edge. + document.body.appendChild(textarea); + textarea.select(); + try { + return document.execCommand("copy"); // Security exception may be thrown by some browsers. + } catch (ex) { + return false; + } finally { + document.body.removeChild(textarea); } } - }; -} catch (e) { -} - -// alias + } +}; -// depreciado na versao 6.0 +//alias +//depreciado na versao 6.0 var $im = function(g) { return i3GEO.util.$im(g); }; diff --git a/ms_configura.php b/ms_configura.php index bd6ee24..f5806a4 100755 --- a/ms_configura.php +++ b/ms_configura.php @@ -222,6 +222,9 @@ Esse array informa quais dessas ferramentas estao corretamente configuradas. As que estiverem marcadas como false nao serao mostradas na interface do mapa interativo Sobre essas configuracoes, veja na pasta i3geo/ferramentas e na documentacao do sistema de administracao do i3Geo + +No caso do SAIKU, verifique tambem se o programa i3geo/ferramentas/saiku/esquemaxml.php nao esta bloqueado (voce deve +abrir e verificar o inicio desse arquivo). Veja tambem: i3geo/ferramentas/saiku/install.txt */ $statusFerramentas = array( "saiku"=>false, @@ -269,6 +272,7 @@ buscarapida,conectarservicos,convertemapakml,cortina,editorsql,filtroarvore,geol inseretxt,mostraexten,outputformat,perfil,tipoimagem */ +//$i3geoBlFerramentas = array("saiku"); $i3geoBlFerramentas = array("saiku"); /* Variable: $ogrOutput @@ -328,6 +332,7 @@ $saikuConfigDataSource = array( "password"=>"postgres", "tabelaDimensaoTempo"=>"i3geo_metaestat.dim_tempo" ); + /* Variable: i3georendermode -- libgit2 0.21.2