Commit a1c39da1a72ae1b193be4e58fb29303a557380bd

Authored by Edmar Moretti
1 parent 8ec277f9

--no commit message

Showing 1 changed file with 10 additions and 9 deletions   Show diff stats
@@ -80,6 +80,15 @@ ogc.php?intervalo=0,50 @@ -80,6 +80,15 @@ ogc.php?intervalo=0,50
80 // 80 //
81 //validações e includes 81 //validações e includes
82 // 82 //
  83 +//
  84 +//compatibiliza chamadas fora do padrao
  85 +//
  86 +if(isset($_GET["outputFormat"]) && $_GET["outputFormat"] != ""){
  87 + $_GET["OUTPUTFORMAT"] = $_GET["outputFormat"];
  88 +}
  89 +if(isset($_GET["outputformat"]) && $_GET["outputformat"] != ""){
  90 + $_GET["OUTPUTFORMAT"] = $_GET["outputformat"];
  91 +}
83 $cache = true; 92 $cache = true;
84 require_once(dirname(__FILE__)."/classesphp/carrega_ext.php"); 93 require_once(dirname(__FILE__)."/classesphp/carrega_ext.php");
85 include(dirname(__FILE__)."/ms_configura.php"); 94 include(dirname(__FILE__)."/ms_configura.php");
@@ -265,12 +274,7 @@ if(isset($_GET["tms"])){ @@ -265,12 +274,7 @@ if(isset($_GET["tms"])){
265 if(isset($_GET["Z"]) && isset($_GET["X"])){ 274 if(isset($_GET["Z"]) && isset($_GET["X"])){
266 $agora .= "google"; 275 $agora .= "google";
267 } 276 }
268 -//  
269 -//compatibiliza chamadas fora do padrao  
270 -//  
271 -if(isset($_GET["outputFormat"]) && $_GET["outputFormat"] != ""){  
272 - $_GET["OUTPUTFORMAT"] = $_GET["outputFormat"];  
273 -} 277 +
274 // 278 //
275 //se o outputformat for definido, evita o cahce de arquivo 279 //se o outputformat for definido, evita o cahce de arquivo
276 //o mesmo se existir filtro para o layer 280 //o mesmo se existir filtro para o layer
@@ -828,9 +832,6 @@ if((isset($legenda)) && (strtolower($legenda) == "sim")){ @@ -828,9 +832,6 @@ if((isset($legenda)) && (strtolower($legenda) == "sim")){
828 // 832 //
829 //altera o outputformat 833 //altera o outputformat
830 // 834 //
831 -if(isset($outputFormat)){  
832 - $OUTPUTFORMAT = $outputFormat;  
833 -}  
834 if(isset($OUTPUTFORMAT)){ 835 if(isset($OUTPUTFORMAT)){
835 if(strtolower($OUTPUTFORMAT) == "shape-zip"){ 836 if(strtolower($OUTPUTFORMAT) == "shape-zip"){
836 $l = $oMap->getlayer(0); 837 $l = $oMap->getlayer(0);