Commit 96ec7824173b090abbc7d4befd22a2d0693d6bb9
1 parent
2f0ecbf6
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/php/classe_metaestat.php
@@ -449,7 +449,10 @@ class Metaestat{ | @@ -449,7 +449,10 @@ class Metaestat{ | ||
449 | } | 449 | } |
450 | //define o tipo correto de layer | 450 | //define o tipo correto de layer |
451 | $dg = $this->listaDadosGeometriaRegiao($codigo_tipo_regiao); | 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 | $tipolayer = "point"; | 456 | $tipolayer = "point"; |
454 | } | 457 | } |
455 | if($dg["dimension"] == 1){ | 458 | if($dg["dimension"] == 1){ |
@@ -574,7 +577,10 @@ class Metaestat{ | @@ -574,7 +577,10 @@ class Metaestat{ | ||
574 | $tipolayer = "polygon"; | 577 | $tipolayer = "polygon"; |
575 | //define o tipo correto de layer | 578 | //define o tipo correto de layer |
576 | $dg = $this->listaDadosGeometriaRegiao($codigo_tipo_regiao); | 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 | $tipolayer = "point"; | 584 | $tipolayer = "point"; |
579 | } | 585 | } |
580 | if($dg["dimension"] == 1){ | 586 | if($dg["dimension"] == 1){ |