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 | 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){ | ... | ... |