Commit 39aefe2f1178b14ab451ce1ca6952e9d6e742c1f
1 parent
f9cf1f71
Exists in
master
and in
7 other branches
Inclusao de timeout 0 em ogc.php quando não definido no LAYER
Showing
2 changed files
with
10 additions
and
5 deletions
Show diff stats
ogc.php
... | ... | @@ -498,7 +498,12 @@ else{ |
498 | 498 | } |
499 | 499 | $l->setmetadata("ows_title",pegaNome($l)); |
500 | 500 | $l->setmetadata("ows_srs",$listaepsg); |
501 | - $l->set("group",""); | |
501 | + $l->set("group",""); | |
502 | + //timeout | |
503 | + $tout = $l->getmetadata("wms_connectiontimeout"); | |
504 | + if($tout == ""){ | |
505 | + $l->setmetadata("wms_connectiontimeout",0); | |
506 | + } | |
502 | 507 | //essa linha é necessária pq as vezes no mapfile não tem nenhum layer com o nome igual ao nome do mapfile |
503 | 508 | if(count($ts)==1 && $temai3geo == true){ |
504 | 509 | $l->set("name",$tx); | ... | ... |
temas/testewms.map
... | ... | @@ -2,7 +2,7 @@ MAP |
2 | 2 | FONTSET "../symbols/fontes.txt" |
3 | 3 | SYMBOLSET "../symbols/simbolos.sym" |
4 | 4 | LAYER |
5 | - CONNECTION "http://www.geoservicos.ibge.gov.br/geoserver/wms?" | |
5 | + CONNECTION "https://www.agritempo.gov.br/geoserver/ows?" | |
6 | 6 | CONNECTIONTYPE WMS |
7 | 7 | METADATA |
8 | 8 | "wms_srs" "EPSG:4326" |
... | ... | @@ -11,12 +11,12 @@ LAYER |
11 | 11 | "wfs" "nao" |
12 | 12 | "TEXTO" "NAO" |
13 | 13 | "wms_force_separate_request" "1" |
14 | - "wms_name" "CREN:GeomorfologiaSE23" | |
14 | + "wms_name" "agritempo:BR.TMAXH" | |
15 | 15 | "formatosinfo" "text/plain" |
16 | 16 | "legendawms" "http://www.geoservicos.ibge.gov.br/geoserver/wms?&service=wms&request=getlegendgraphic&version=1.1.1&service=wms&layer=CREN:GeomorfologiaSE23&format=image/png" |
17 | 17 | "wms_formatlist" "image/png" |
18 | 18 | "wms_format" "image/png" |
19 | - "wms_connectiontimeout" "30" | |
19 | + "wms_connectiontimeout" "0" | |
20 | 20 | "wms_tile" "" |
21 | 21 | "tema" "Mapa Geomorfologico da Folha SE.23 - Belo Horizonte" |
22 | 22 | "wms_server_version" "1.1.1" |
... | ... | @@ -25,7 +25,7 @@ LAYER |
25 | 25 | END # METADATA |
26 | 26 | NAME "testewms" |
27 | 27 | OFFSITE 255 255 255 |
28 | - STATUS DEFAULT | |
28 | + STATUS OFF | |
29 | 29 | TILEITEM "location" |
30 | 30 | TYPE RASTER |
31 | 31 | UNITS METERS | ... | ... |