Commit 4395057fdcaa80704688496592b8eb4f6fa0998a
1 parent
7e410197
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
11 additions
and
0 deletions
Show diff stats
ogc.php
| ... | ... | @@ -268,6 +268,17 @@ else |
| 268 | 268 | if (($conta >= $int[0]) && ($conta <= $int[1])) |
| 269 | 269 | { |
| 270 | 270 | $l = $nmap->getlayerbyname($t); |
| 271 | + if ($l->connectiontype == MS_POSTGIS) | |
| 272 | + { | |
| 273 | + //inclui extensao geografica | |
| 274 | + $extensao = $l->getmetadata("EXTENSAO"); | |
| 275 | + if($extensao == "") | |
| 276 | + { | |
| 277 | + $e = $oMap->extent; | |
| 278 | + $extensao = ($e->minx)." ".($e->miny)." ".($e->maxx)." ".($e->maxy); | |
| 279 | + } | |
| 280 | + $l->setmetadata("wms_extent",$extensao); | |
| 281 | + } | |
| 271 | 282 | $l->setmetadata("ows_title",pegaNome($l)); |
| 272 | 283 | $l->setmetadata("ows_srs","EPSG:4291 EPSG:4326"); |
| 273 | 284 | $l->set("status",MS_OFF); | ... | ... |