Commit 82b6bb6d6fd9fcb8712785078085dd8ad0054f59

Authored by Edmar Moretti
1 parent 785deaea

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");