Commit d5e7556d7d01acafeff4c4b04f3e27ea67f85a9d
1 parent
67d975f6
Exists in
master
i3Geosaude - correção na identificação de serviços ogc.php
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
i3geo/ogc.php
| @@ -282,6 +282,10 @@ else{ | @@ -282,6 +282,10 @@ else{ | ||
| 282 | $oMap->setmetadata("wms_attribution_onlineresource",$proto.$server.dirname($_SERVER['PHP_SELF'])); | 282 | $oMap->setmetadata("wms_attribution_onlineresource",$proto.$server.dirname($_SERVER['PHP_SELF'])); |
| 283 | $oMap->setmetadata("wms_attribution_title",$tituloInstituicao); | 283 | $oMap->setmetadata("wms_attribution_title",$tituloInstituicao); |
| 284 | $oMap->setmetadata("ows_enable_request","*"); | 284 | $oMap->setmetadata("ows_enable_request","*"); |
| 285 | + //parametro mandatario | ||
| 286 | + if($oMap->getmetadata("wms_srs") == ""){ | ||
| 287 | + $oMap->setmetadata("wms_srs","EPSG:4326"); | ||
| 288 | + } | ||
| 285 | $e = $oMap->extent; | 289 | $e = $oMap->extent; |
| 286 | $extensaoMap = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy); | 290 | $extensaoMap = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy); |
| 287 | //gera o mapa | 291 | //gera o mapa |