diff --git a/ogc.php b/ogc.php index ed5dec8..635c5cb 100755 --- a/ogc.php +++ b/ogc.php @@ -498,7 +498,12 @@ else{ } $l->setmetadata("ows_title",pegaNome($l)); $l->setmetadata("ows_srs",$listaepsg); - $l->set("group",""); + $l->set("group",""); + //timeout + $tout = $l->getmetadata("wms_connectiontimeout"); + if($tout == ""){ + $l->setmetadata("wms_connectiontimeout",0); + } //essa linha é necessária pq as vezes no mapfile não tem nenhum layer com o nome igual ao nome do mapfile if(count($ts)==1 && $temai3geo == true){ $l->set("name",$tx); diff --git a/temas/testewms.map b/temas/testewms.map index 864603b..2b388af 100755 --- a/temas/testewms.map +++ b/temas/testewms.map @@ -2,7 +2,7 @@ MAP FONTSET "../symbols/fontes.txt" SYMBOLSET "../symbols/simbolos.sym" LAYER - CONNECTION "http://www.geoservicos.ibge.gov.br/geoserver/wms?" + CONNECTION "https://www.agritempo.gov.br/geoserver/ows?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" @@ -11,12 +11,12 @@ LAYER "wfs" "nao" "TEXTO" "NAO" "wms_force_separate_request" "1" - "wms_name" "CREN:GeomorfologiaSE23" + "wms_name" "agritempo:BR.TMAXH" "formatosinfo" "text/plain" "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" "wms_formatlist" "image/png" "wms_format" "image/png" - "wms_connectiontimeout" "30" + "wms_connectiontimeout" "0" "wms_tile" "" "tema" "Mapa Geomorfologico da Folha SE.23 - Belo Horizonte" "wms_server_version" "1.1.1" @@ -25,7 +25,7 @@ LAYER END # METADATA NAME "testewms" OFFSITE 255 255 255 - STATUS DEFAULT + STATUS OFF TILEITEM "location" TYPE RASTER UNITS METERS -- libgit2 0.21.2