Commit a05cf547d66e3fc9d303922c9728419a531a3ec8
1 parent
2034aebf
Exists in
master
and in
7 other branches
v6 - inclusão de parâmetro no editor de conexão (sistema de administração) para …
…definir se imagens serão extendidas e recortadas no processo de desenho
Showing
4 changed files
with
33 additions
and
24 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/js/editormapfile.js
| ... | ... | @@ -1263,8 +1263,9 @@ function editorEditavel(codigoMap,codigoLayer) |
| 1263 | 1263 | core_pegaDados("Obtendo dados...",sUrl,"montaEditorEditavel"); |
| 1264 | 1264 | } |
| 1265 | 1265 | //depreciado |
| 1266 | -function editorConexao(codigoMap,codigoLayer) | |
| 1267 | -{editorDados(codigoMap,codigoLayer);} | |
| 1266 | +function editorConexao(codigoMap,codigoLayer){ | |
| 1267 | + editorDados(codigoMap,codigoLayer); | |
| 1268 | +} | |
| 1268 | 1269 | /* |
| 1269 | 1270 | Function: editorMetadados |
| 1270 | 1271 | |
| ... | ... | @@ -1594,6 +1595,8 @@ function montaEditorDados(dados) |
| 1594 | 1595 | titulo:"Type",id:"",value:dados.type,tipo:"text",div:"<div id=cType ></div>"}, |
| 1595 | 1596 | {ajuda:"Ativa ou não a manutenção de um cache para armazenar as imagens geradas para montar o mapa. Essa opção afeta apenas as interfaces do i3Geo que utilizam o modo TILE (como a interface OpenLayers). O cache é mantido no diretório temporário utilizado pelo i3Geo, na pasta chamada cache. Para cada camada é criada uma sub-pasta. Para limpar o cache, utilize a opção existente junto ao nó principal desse mapfile", |
| 1596 | 1597 | titulo:"Cache de mapas. Camadas WMS são acessadas diretamente do servidor de origem quando o cache estiver inativo. (CACHE)",id:"",value:dados.cache,tipo:"text",div:"<div id=cCache ></div>"}, |
| 1598 | + {ajuda:"Ao desenhar a imagem de um TILE que compõe o mapa, a imagem é extendida e depois cortada para o tamanho correto. Isso evita que símbolos apareçam de forma parcial no mapa. Indicado para temas com representação pontual e que também utilizem cache, pois pode degradar a performance.", | |
| 1599 | + titulo:"Extende e corta imagem em pixels (cortepixels)",id:"cortepixels",value:dados.cortepixels,tipo:"text"}, | |
| 1597 | 1600 | {ajuda:"Projeção", |
| 1598 | 1601 | titulo:"Projection",id:"projection",value:dados.projection,tipo:"text"}, |
| 1599 | 1602 | {ajuda:"Este parâmetro permite filtrar atributos específicos ao mesmo tempo em que é feita uma filtragem espacial, mas antes de que qualquer expressão em CLASS seja contabilizada. Para OGR e shapefiles, a string é simplesmente uma expressão regular do MapServer. Por exemplo: FILTER type= road and size <2. Para bancos de dados espaciais é uma cláusula SQL WHERE que é válida de acordo com o banco de dados subjacente. ", |
| ... | ... | @@ -1640,8 +1643,6 @@ function montaEditorDados(dados) |
| 1640 | 1643 | temp += "<img onclick='selIdMedidaVariavel(\"metaestat_id_medida_variavel\",\"metaestat_id_medida_variavel\")' src='"+limg+"' style='cursor:pointer;position :relative;top:2px'/>"; |
| 1641 | 1644 | $i("cMetaestat_id_medida_variavel").innerHTML = temp; |
| 1642 | 1645 | } |
| 1643 | - | |
| 1644 | - | |
| 1645 | 1646 | if($i("cMetaestat")){ |
| 1646 | 1647 | temp = "<select id='metaestat' >"; |
| 1647 | 1648 | temp += core_combosimnao(dados.metaestat); |
| ... | ... | @@ -1662,7 +1663,6 @@ function montaEditorDados(dados) |
| 1662 | 1663 | temp += "</select>"; |
| 1663 | 1664 | $i("cTipoOriginal").innerHTML = temp; |
| 1664 | 1665 | } |
| 1665 | - | |
| 1666 | 1666 | temp = "<select id='connectiontype' >"; |
| 1667 | 1667 | temp += core_comboObjeto(objcontype,"valor","texto",dados.connectiontype); |
| 1668 | 1668 | temp += "</select>"; |
| ... | ... | @@ -2197,7 +2197,7 @@ function salvarDadosEditor(tipo,codigoMap,codigoLayer,indiceClasse,indiceEstilo, |
| 2197 | 2197 | } |
| 2198 | 2198 | if(tipo == "conexao") |
| 2199 | 2199 | { |
| 2200 | - campos = new Array("metaestat_id_medida_variavel","metaestat","cache","projection","type","connection","data","connectiontype","tileitem","tileindex","filteritem","filter","tipooriginal","convcaracter"); | |
| 2200 | + campos = new Array("cortepixels","metaestat_id_medida_variavel","metaestat","cache","projection","type","connection","data","connectiontype","tileitem","tileindex","filteritem","filter","tipooriginal","convcaracter"); | |
| 2201 | 2201 | par = "&codigoMap="+codigoMap+"&codigoLayer="+codigoLayer; |
| 2202 | 2202 | prog = "../php/editormapfile.php?funcao=alterarConexao"; |
| 2203 | 2203 | } | ... | ... |
admin/php/editormapfile.php
| ... | ... | @@ -1654,6 +1654,10 @@ function pegaConexao() |
| 1654 | 1654 | $dados["tileindex"] = $layer->tileindex; |
| 1655 | 1655 | $dados["tileitem"] = $layer->tileitem; |
| 1656 | 1656 | $dados["cache"] = $layer->getmetadata("cache"); |
| 1657 | + $dados["cortepixels"] = $layer->getmetadata("cortepixels"); | |
| 1658 | + if($dados["cortepixels"] == ""){ | |
| 1659 | + $dados["cortepixels"] = 0; | |
| 1660 | + } | |
| 1657 | 1661 | if($dados["tileindex"] == ""){ |
| 1658 | 1662 | $dados["tileitem"] = ""; |
| 1659 | 1663 | } |
| ... | ... | @@ -1691,7 +1695,7 @@ function pegaConexao() |
| 1691 | 1695 | } |
| 1692 | 1696 | function alterarConexao() |
| 1693 | 1697 | { |
| 1694 | - global $esquemaadmin,$metaestat_id_medida_variavel,$metaestat,$convcaracter,$cache,$tipooriginal,$filteritem,$filter,$projection,$type,$dir_tmp,$testar,$codigoMap,$codigoLayer,$locaplic,$connection,$connectiontype,$data,$tileitem,$tileindex; | |
| 1698 | + global $cortepixels,$esquemaadmin,$metaestat_id_medida_variavel,$metaestat,$convcaracter,$cache,$tipooriginal,$filteritem,$filter,$projection,$type,$dir_tmp,$testar,$codigoMap,$codigoLayer,$locaplic,$connection,$connectiontype,$data,$tileitem,$tileindex; | |
| 1695 | 1699 | $mapfile = $locaplic."/temas/".$codigoMap.".map"; |
| 1696 | 1700 | $mapa = ms_newMapObj($mapfile); |
| 1697 | 1701 | $layer = $mapa->getlayerbyname($codigoLayer); |
| ... | ... | @@ -1741,6 +1745,11 @@ function alterarConexao() |
| 1741 | 1745 | $layer->setmetadata("tipooriginal",$tipooriginal); |
| 1742 | 1746 | } |
| 1743 | 1747 | $layer->setmetadata("cache",$cache); |
| 1748 | + if($cortepixels == ""){ | |
| 1749 | + $cortepixels = 0; | |
| 1750 | + } | |
| 1751 | + $layer->setmetadata("cortepixels",$cortepixels); | |
| 1752 | + | |
| 1744 | 1753 | $layer->setmetadata("convcaracter",$convcaracter); |
| 1745 | 1754 | if($testar == "true") |
| 1746 | 1755 | { | ... | ... |
temas/_llocali.map
| ... | ... | @@ -6,41 +6,41 @@ MAP |
| 6 | 6 | DATA "/var/www/i3geo/aplicmap/dados/locali.shp" |
| 7 | 7 | METADATA |
| 8 | 8 | "METAESTAT_ID_MEDIDA_VARIAVEL" "" |
| 9 | - "cache" "SIM" | |
| 10 | - "cortepixels" "50" | |
| 11 | - "LTEMPOITEMIMAGEM" "" | |
| 12 | 9 | "TIP" "TIPO,ANOCRIA,NOMELOC" |
| 13 | - "LTEMPOITEMDESCRICAO" "TIPO" | |
| 10 | + "LTEMPOITEMIMAGEM" "" | |
| 11 | + "cache" "SIM" | |
| 14 | 12 | "CLASSE" "SIM" |
| 15 | - "palletestep" "" | |
| 13 | + "LTEMPOITEMDESCRICAO" "TIPO" | |
| 16 | 14 | "LTEMPOITEMINICIO" "ANOCRIA" |
| 17 | - "temporizador" "" | |
| 18 | - "LTEMPOITEMTIP" "ANOCRIA" | |
| 15 | + "palletestep" "" | |
| 19 | 16 | "permitekmz" "sim" |
| 20 | - "description_template" "" | |
| 21 | - "LTEMPOITEMTITULO" "NOMELOC" | |
| 17 | + "LTEMPOITEMTIP" "ANOCRIA" | |
| 18 | + "temporizador" "" | |
| 22 | 19 | "iconetema" "" |
| 20 | + "LTEMPOITEMTITULO" "NOMELOC" | |
| 21 | + "description_template" "" | |
| 23 | 22 | "LTEMPOITEMLINK" "" |
| 24 | 23 | "METAESTAT_CODIGO_TIPO_REGIAO" "" |
| 25 | 24 | "palletefile" "" |
| 26 | - "LTEMPOFORMATODATA" "iso8601" | |
| 27 | 25 | "permitedownload" "sim" |
| 28 | - "LTEMPOITEMICONE" "" | |
| 26 | + "LTEMPOFORMATODATA" "iso8601" | |
| 29 | 27 | "permitecomentario" "SIM" |
| 28 | + "LTEMPOITEMICONE" "" | |
| 30 | 29 | "metaestat" "" |
| 31 | 30 | "download" "SIM" |
| 32 | 31 | "itembuscarapida" "NOMELOC" |
| 33 | - "arquivokmz" "" | |
| 34 | 32 | "arquivodownload" "" |
| 35 | - "transitioneffect" "NAO" | |
| 36 | - "permiteogc" "sim" | |
| 33 | + "arquivokmz" "" | |
| 37 | 34 | "permitekml" "sim" |
| 38 | - "convcaracter" "" | |
| 35 | + "permiteogc" "sim" | |
| 36 | + "transitioneffect" "NAO" | |
| 39 | 37 | "TEMA" "Localidades (usar com timeline)" |
| 40 | - "LTEMPOCONVENCODE" "SIM" | |
| 38 | + "convcaracter" "" | |
| 39 | + "cortepixels" "40" | |
| 41 | 40 | "editorsql" "" |
| 42 | - "legendaimg" "" | |
| 41 | + "LTEMPOCONVENCODE" "SIM" | |
| 43 | 42 | "LTEMPOITEMFIM" "" |
| 43 | + "legendaimg" "" | |
| 44 | 44 | END # METADATA |
| 45 | 45 | NAME "_llocali" |
| 46 | 46 | STATUS OFF | ... | ... |