Commit 7df5dc2cbbdc778811cba300536d2758ec23e28b
1 parent
70d02e03
Exists in
master
V5 - correção na identificação de serviços ogc.php
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
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 |