Commit 4b4deaa5f98eb0dcbc5d292a7bebae66ff9990f4
1 parent
bea0d669
Exists in
master
and in
7 other branches
Inclusão de wms_version default como 1.1.1 quando for enviado como vazio
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
classesphp/classe_mapa.php
... | ... | @@ -1568,7 +1568,9 @@ class Mapa |
1568 | 1568 | */ |
1569 | 1569 | function adicionatemawms($tema,$servico,$nome,$proj,$formato,$locaplic,$tipo="",$versao,$nomecamada,$dir_tmp,$imgdir,$imgurl,$tiporep,$suportasld,$formatosinfo="text/plain",$time="",$tile=0) |
1570 | 1570 | { |
1571 | - //echo $tile;exit; | |
1571 | + if($versao == ""){ | |
1572 | + $versao = "1.1.1"; | |
1573 | + } | |
1572 | 1574 | if(file_exists($this->locaplic."/classesphp/wmswfs.php")) |
1573 | 1575 | include_once($this->locaplic."/classesphp/wmswfs.php"); |
1574 | 1576 | else | ... | ... |
ogc.php
... | ... | @@ -254,7 +254,7 @@ $listaepsg = $req->getValueByName("SRS")." EPSG:4618 EPSG:4291 EPSG:4326 EPSG:22 |
254 | 254 | if(isset($version) && !isset($VERSION)){ |
255 | 255 | $VERSION = $version; |
256 | 256 | } |
257 | -if(!isset($VERSION)){ | |
257 | +if(!isset($VERSION) || $VERSION == ""){ | |
258 | 258 | $req->setParameter("VeRsIoN","1.1.1"); |
259 | 259 | } |
260 | 260 | // | ... | ... |