Commit bed4749b1ff68a6906a3ea4004f149453c74c211
1 parent
169de75c
Exists in
master
and in
7 other branches
Correção no teste de arquivos raster
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
testamapfile.php
@@ -128,7 +128,6 @@ function verifica($map) | @@ -128,7 +128,6 @@ function verifica($map) | ||
128 | $dados = $layern->connection; | 128 | $dados = $layern->connection; |
129 | else | 129 | else |
130 | $dados = $layern->data; | 130 | $dados = $layern->data; |
131 | - | ||
132 | $pegarext = $teman; | 131 | $pegarext = $teman; |
133 | } | 132 | } |
134 | if (isset($postgis_mapa)) | 133 | if (isset($postgis_mapa)) |
@@ -204,6 +203,8 @@ function verifica($map) | @@ -204,6 +203,8 @@ function verifica($map) | ||
204 | function zoomTema($nomelayer,&$mapa) | 203 | function zoomTema($nomelayer,&$mapa) |
205 | { | 204 | { |
206 | $layer = $mapa->getlayerbyname($nomelayer); | 205 | $layer = $mapa->getlayerbyname($nomelayer); |
206 | + if($layer->type > 2) | ||
207 | + {return;} | ||
207 | $prjMapa = $mapa->getProjection(); | 208 | $prjMapa = $mapa->getProjection(); |
208 | $prjTema = $layer->getProjection(); | 209 | $prjTema = $layer->getProjection(); |
209 | $extatual = $mapa->extent; | 210 | $extatual = $mapa->extent; |