From 96ec7824173b090abbc7d4befd22a2d0693d6bb9 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 20 May 2013 14:22:15 +0000 Subject: [PATCH] --- admin/admin.db | Bin 197632 -> 0 bytes admin/php/classe_metaestat.php | 10 ++++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/admin/admin.db b/admin/admin.db index 807dc8f..7472939 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/admin/php/classe_metaestat.php b/admin/php/classe_metaestat.php index 0ac5d49..b0ddac3 100755 --- a/admin/php/classe_metaestat.php +++ b/admin/php/classe_metaestat.php @@ -449,7 +449,10 @@ class Metaestat{ } //define o tipo correto de layer $dg = $this->listaDadosGeometriaRegiao($codigo_tipo_regiao); - if(empty($tipolayer) || $dg["dimension"] == 0){ + if(empty($tipolayer)){ + $tipolayer = "polygon"; + } + if($dg["dimension"] == 0){ $tipolayer = "point"; } if($dg["dimension"] == 1){ @@ -574,7 +577,10 @@ class Metaestat{ $tipolayer = "polygon"; //define o tipo correto de layer $dg = $this->listaDadosGeometriaRegiao($codigo_tipo_regiao); - if(empty($tipolayer) || $dg["dimension"] == 0){ + if(empty($tipolayer)){ + $tipolayer = "polygon"; + } + if($dg["dimension"] == 0){ $tipolayer = "point"; } if($dg["dimension"] == 1){ -- libgit2 0.21.2