From 23d166d6ecbd35252f5e39a2c8062bd6286f9c04 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 10 Aug 2009 17:36:32 +0000 Subject: [PATCH] --- classesphp/classe_legenda.php | 7 ++++++- classesphp/classe_temas.php | 2 +- ferramentas/legenda/index.js | 6 ++++-- menutemas/admin.db | Bin 53248 -> 0 bytes temas/cbersgeo.map | 2 +- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/classesphp/classe_legenda.php b/classesphp/classe_legenda.php index 3ba2c05..1ff7300 100644 --- a/classesphp/classe_legenda.php +++ b/classesphp/classe_legenda.php @@ -357,10 +357,15 @@ array $linhas[$c]["totalreg"] = $total; } } - if ($nc == 0) + if ($layer->type == MS_LAYER_RASTER && $nc == 1) { $proc = ""; + $linhas = array(); if($layer->num_processing > 0){$proc = $layer->getProcessing();} + if($layer->type == MS_LAYER_RASTER && $proc == "") + { + $proc = array("RESAMPLE=NEAREST"); + } $linhas[] = array("tema"=>$l,"idclasse"=>"","nomeclasse"=>"","expressao"=>"","imagem"=>"","proc"=>$proc); } } diff --git a/classesphp/classe_temas.php b/classesphp/classe_temas.php index 1f5be3b..08c1fda 100644 --- a/classesphp/classe_temas.php +++ b/classesphp/classe_temas.php @@ -142,7 +142,7 @@ $lista - lista de processos separados por | if(!$this->layer){return "erro";} if ($this->layer->num_processing > 0) {$this->layer->clearProcessing();} - $lista = str_replace('"',"",$lista); + //$lista = str_replace('"',"",$lista); $lista = explode("|",$lista); foreach ($lista as $processo) {$this->layer->setprocessing($processo);} diff --git a/ferramentas/legenda/index.js b/ferramentas/legenda/index.js index bbd1751..2b6bb65 100644 --- a/ferramentas/legenda/index.js +++ b/ferramentas/legenda/index.js @@ -144,16 +144,18 @@ function montaLegenda(retorno) ajuda += " Você pode aplicar a escala em bandas individuais, para isso, utilize SCALE_n, por exemplo SCALE_1=AUTO SCALE_2=200,500." ajuda += "
Para escolher quais bandas serão utilizadas e qual sua ordem, utilize a opção BANDAS." ajuda += " Utilize, por exemplo, BANDS=1,2,3 BANDS=1 ." + ajuda += " Para alterar o modo de amostragem, utilize RESAMPLE com uma das opções: AVERAGE,NEAREST ou BILINEAR." var ins = "
Você pode incluir processos na imagem para modificar as características de visualização

Adicionar processo:"; ins += "
" ins += '
' - if(retorno.data[0].proc != "") + if(retorno.data[0].proc == "") {ins += "
"} else { @@ -194,7 +196,7 @@ function aplicaProcessos() } } lista = lista.join("|") - lista = '"'+lista+'"' + //lista = '"'+lista+'"' var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=aplicaProcessos&lista="+lista+"&tema="+tema var cp = new cpaint(); //cp.set_debug(2) diff --git a/menutemas/admin.db b/menutemas/admin.db index 7e24128..dacdd1f 100644 Binary files a/menutemas/admin.db and b/menutemas/admin.db differ diff --git a/temas/cbersgeo.map b/temas/cbersgeo.map index 23740fe..d723cea 100644 --- a/temas/cbersgeo.map +++ b/temas/cbersgeo.map @@ -4,7 +4,7 @@ FONTSET "../symbols/fontes.txt" LAYER DATA "c://ms4w/Apache/htdocs/geodados/cbersgeo.img" METADATA - "classe" "SIM" + "classe" "NAO" "DOWNLOAD" "sim" "tema" "cbersgeo" END -- libgit2 0.21.2