From 119f0826f776f2329ff334aa674b5f2ca1383531 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 3 Sep 2014 22:06:26 +0000 Subject: [PATCH] V60 - alteração em ogc.php para informar um formato default quando a requisição for vazia --- ogc.htm | 3 ++- ogc.php | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ogc.htm b/ogc.htm index 9a2a113..0a96af3 100644 --- a/ogc.htm +++ b/ogc.htm @@ -92,9 +92,10 @@ function ogc_endereco(botao) ins += "

"+servico; ins += "

Bookmark: "; ins += "

"; + ins += "

GetCapabilities"; ins += "

testar getmap"; ins += "

visualizar com openLayers"; - ins += "

download sahpefile via WFS"; + ins += "

download shapefile via WFS"; ins += "

download CSV via WFS"; if(!$i("panellistaarquivos")){ diff --git a/ogc.php b/ogc.php index 6e6af06..7b6d807 100644 --- a/ogc.php +++ b/ogc.php @@ -801,6 +801,10 @@ if(isset($OUTPUTFORMAT)){ } } ms_ioinstallstdouttobuffer(); +//verifica parametro outputformat +if(strtolower($req->getValueByName("REQUEST")) == "getmap" && $req->getValueByName("format") == ""){ + $req->setParameter("format","image/png"); +} $oMap->owsdispatch($req); $contenttype = ms_iostripstdoutbuffercontenttype(); if(strtolower($request) == "getcapabilities"){ -- libgit2 0.21.2