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,7 +498,12 @@ else{ | ||
498 | } | 498 | } |
499 | $l->setmetadata("ows_title",pegaNome($l)); | 499 | $l->setmetadata("ows_title",pegaNome($l)); |
500 | $l->setmetadata("ows_srs",$listaepsg); | 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 | //essa linha é necessária pq as vezes no mapfile não tem nenhum layer com o nome igual ao nome do mapfile | 507 | //essa linha é necessária pq as vezes no mapfile não tem nenhum layer com o nome igual ao nome do mapfile |
503 | if(count($ts)==1 && $temai3geo == true){ | 508 | if(count($ts)==1 && $temai3geo == true){ |
504 | $l->set("name",$tx); | 509 | $l->set("name",$tx); |
temas/testewms.map
@@ -2,7 +2,7 @@ MAP | @@ -2,7 +2,7 @@ MAP | ||
2 | FONTSET "../symbols/fontes.txt" | 2 | FONTSET "../symbols/fontes.txt" |
3 | SYMBOLSET "../symbols/simbolos.sym" | 3 | SYMBOLSET "../symbols/simbolos.sym" |
4 | LAYER | 4 | LAYER |
5 | - CONNECTION "http://www.geoservicos.ibge.gov.br/geoserver/wms?" | 5 | + CONNECTION "https://www.agritempo.gov.br/geoserver/ows?" |
6 | CONNECTIONTYPE WMS | 6 | CONNECTIONTYPE WMS |
7 | METADATA | 7 | METADATA |
8 | "wms_srs" "EPSG:4326" | 8 | "wms_srs" "EPSG:4326" |
@@ -11,12 +11,12 @@ LAYER | @@ -11,12 +11,12 @@ LAYER | ||
11 | "wfs" "nao" | 11 | "wfs" "nao" |
12 | "TEXTO" "NAO" | 12 | "TEXTO" "NAO" |
13 | "wms_force_separate_request" "1" | 13 | "wms_force_separate_request" "1" |
14 | - "wms_name" "CREN:GeomorfologiaSE23" | 14 | + "wms_name" "agritempo:BR.TMAXH" |
15 | "formatosinfo" "text/plain" | 15 | "formatosinfo" "text/plain" |
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" | 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 | "wms_formatlist" "image/png" | 17 | "wms_formatlist" "image/png" |
18 | "wms_format" "image/png" | 18 | "wms_format" "image/png" |
19 | - "wms_connectiontimeout" "30" | 19 | + "wms_connectiontimeout" "0" |
20 | "wms_tile" "" | 20 | "wms_tile" "" |
21 | "tema" "Mapa Geomorfologico da Folha SE.23 - Belo Horizonte" | 21 | "tema" "Mapa Geomorfologico da Folha SE.23 - Belo Horizonte" |
22 | "wms_server_version" "1.1.1" | 22 | "wms_server_version" "1.1.1" |
@@ -25,7 +25,7 @@ LAYER | @@ -25,7 +25,7 @@ LAYER | ||
25 | END # METADATA | 25 | END # METADATA |
26 | NAME "testewms" | 26 | NAME "testewms" |
27 | OFFSITE 255 255 255 | 27 | OFFSITE 255 255 255 |
28 | - STATUS DEFAULT | 28 | + STATUS OFF |
29 | TILEITEM "location" | 29 | TILEITEM "location" |
30 | TYPE RASTER | 30 | TYPE RASTER |
31 | UNITS METERS | 31 | UNITS METERS |