Commit f5c2ca58e12d98760607072c1f5d8c69faf6bed7

Authored by Edmar Moretti
1 parent 5855b772

Correção na geração da legenda em temas do tipo raster

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
classesphp/classe_alteraclasse.php
... ... @@ -988,6 +988,12 @@ class Alteraclasse
988 988 $ignorararray = explode(",",$ignorar);
989 989 if (@$layer->queryByrect($mapa->extent) == MS_SUCCESS)
990 990 {
  991 + if($layer->type == MS_LAYER_RASTER){
  992 + if($item == "pixel"){
  993 + $item = "value_0";
  994 + }
  995 + }
  996 +
991 997 $sopen = $layer->open();
992 998 if($sopen == MS_FAILURE){
993 999 return "erro";
... ...