Commit 86f8bb7e8faddc43a1cc11a5936233510ee7c2a0

Authored by Edmar Moretti
1 parent fb4e3d21
Exists in master

Opção em ogc.php para usar json

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
@@ -88,6 +88,9 @@ if(isset($_GET["outputFormat"]) && $_GET["outputFormat"] != ""){ @@ -88,6 +88,9 @@ if(isset($_GET["outputFormat"]) && $_GET["outputFormat"] != ""){
88 } 88 }
89 if(isset($_GET["outputformat"]) && $_GET["outputformat"] != ""){ 89 if(isset($_GET["outputformat"]) && $_GET["outputformat"] != ""){
90 $_GET["OUTPUTFORMAT"] = $_GET["outputformat"]; 90 $_GET["OUTPUTFORMAT"] = $_GET["outputformat"];
  91 +}
  92 +if(strtolower($OUTPUTFORMAT) == "geojson"){
  93 + $OUTPUTFORMAT = "json";
91 } 94 }
92 $cache = true; 95 $cache = true;
93 require_once(dirname(__FILE__)."/classesphp/carrega_ext.php"); 96 require_once(dirname(__FILE__)."/classesphp/carrega_ext.php");