Commit 23d166d6ecbd35252f5e39a2c8062bd6286f9c04
1 parent
a3b36d1c
Exists in
master
and in
7 other branches
--no commit message
Showing
5 changed files
with
12 additions
and
5 deletions
Show diff stats
classesphp/classe_legenda.php
| ... | ... | @@ -357,10 +357,15 @@ array |
| 357 | 357 | $linhas[$c]["totalreg"] = $total; |
| 358 | 358 | } |
| 359 | 359 | } |
| 360 | - if ($nc == 0) | |
| 360 | + if ($layer->type == MS_LAYER_RASTER && $nc == 1) | |
| 361 | 361 | { |
| 362 | 362 | $proc = ""; |
| 363 | + $linhas = array(); | |
| 363 | 364 | if($layer->num_processing > 0){$proc = $layer->getProcessing();} |
| 365 | + if($layer->type == MS_LAYER_RASTER && $proc == "") | |
| 366 | + { | |
| 367 | + $proc = array("RESAMPLE=NEAREST"); | |
| 368 | + } | |
| 364 | 369 | $linhas[] = array("tema"=>$l,"idclasse"=>"","nomeclasse"=>"","expressao"=>"","imagem"=>"","proc"=>$proc); |
| 365 | 370 | } |
| 366 | 371 | } | ... | ... |
classesphp/classe_temas.php
| ... | ... | @@ -142,7 +142,7 @@ $lista - lista de processos separados por | |
| 142 | 142 | if(!$this->layer){return "erro";} |
| 143 | 143 | if ($this->layer->num_processing > 0) |
| 144 | 144 | {$this->layer->clearProcessing();} |
| 145 | - $lista = str_replace('"',"",$lista); | |
| 145 | + //$lista = str_replace('"',"",$lista); | |
| 146 | 146 | $lista = explode("|",$lista); |
| 147 | 147 | foreach ($lista as $processo) |
| 148 | 148 | {$this->layer->setprocessing($processo);} | ... | ... |
ferramentas/legenda/index.js
| ... | ... | @@ -144,16 +144,18 @@ function montaLegenda(retorno) |
| 144 | 144 | ajuda += " Você pode aplicar a escala em bandas individuais, para isso, utilize SCALE_n, por exemplo SCALE_1=AUTO SCALE_2=200,500." |
| 145 | 145 | ajuda += "<br>Para escolher quais bandas serão utilizadas e qual sua ordem, utilize a opção BANDAS." |
| 146 | 146 | ajuda += " Utilize, por exemplo, BANDS=1,2,3 BANDS=1 ." |
| 147 | + ajuda += " Para alterar o modo de amostragem, utilize RESAMPLE com uma das opções: AVERAGE,NEAREST ou BILINEAR." | |
| 147 | 148 | var ins = "<br>Você pode incluir processos na imagem para modificar as características de visualização<br><br>Adicionar processo:"; |
| 148 | 149 | ins += "<select onchange=adicionaProcesso(this) >" |
| 149 | 150 | ins += "<option value='' >selecione o processo</option>" |
| 150 | 151 | ins += "<option value='SCALE=' >Escala de cores</option>" |
| 152 | + ins += "<option value='RESAMPLE=' >Reamostragem</option>" | |
| 151 | 153 | ins += "<option value='BANDS=' >Bandas</option>" |
| 152 | 154 | ins += "<option value='COLOR_MATCH_THRESHOLD=' >Threshold</option>" |
| 153 | 155 | ins += "<option value='NODATA=' >Nodata</option>" |
| 154 | 156 | ins += "</select><br>" |
| 155 | 157 | ins += '<br><input class="executar" onclick="aplicaProcessos()" size="22" type="buttom" value="aplicar processos">' |
| 156 | - if(retorno.data[0].proc != "") | |
| 158 | + if(retorno.data[0].proc == "") | |
| 157 | 159 | {ins += "<div style=width:80% id=processos ></div>"} |
| 158 | 160 | else |
| 159 | 161 | { |
| ... | ... | @@ -194,7 +196,7 @@ function aplicaProcessos() |
| 194 | 196 | } |
| 195 | 197 | } |
| 196 | 198 | lista = lista.join("|") |
| 197 | - lista = '"'+lista+'"' | |
| 199 | + //lista = '"'+lista+'"' | |
| 198 | 200 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=aplicaProcessos&lista="+lista+"&tema="+tema |
| 199 | 201 | var cp = new cpaint(); |
| 200 | 202 | //cp.set_debug(2) | ... | ... |
menutemas/admin.db
No preview for this file type