Commit 96ec7824173b090abbc7d4befd22a2d0693d6bb9

Authored by Edmar Moretti
1 parent 2f0ecbf6

--no commit message

admin/admin.db
No preview for this file type
admin/php/classe_metaestat.php
... ... @@ -449,7 +449,10 @@ class Metaestat{
449 449 }
450 450 //define o tipo correto de layer
451 451 $dg = $this->listaDadosGeometriaRegiao($codigo_tipo_regiao);
452   - if(empty($tipolayer) || $dg["dimension"] == 0){
  452 + if(empty($tipolayer)){
  453 + $tipolayer = "polygon";
  454 + }
  455 + if($dg["dimension"] == 0){
453 456 $tipolayer = "point";
454 457 }
455 458 if($dg["dimension"] == 1){
... ... @@ -574,7 +577,10 @@ class Metaestat{
574 577 $tipolayer = "polygon";
575 578 //define o tipo correto de layer
576 579 $dg = $this->listaDadosGeometriaRegiao($codigo_tipo_regiao);
577   - if(empty($tipolayer) || $dg["dimension"] == 0){
  580 + if(empty($tipolayer)){
  581 + $tipolayer = "polygon";
  582 + }
  583 + if($dg["dimension"] == 0){
578 584 $tipolayer = "point";
579 585 }
580 586 if($dg["dimension"] == 1){
... ...