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
ogc.php
... ... @@ -88,6 +88,9 @@ if(isset($_GET["outputFormat"]) && $_GET["outputFormat"] != ""){
88 88 }
89 89 if(isset($_GET["outputformat"]) && $_GET["outputformat"] != ""){
90 90 $_GET["OUTPUTFORMAT"] = $_GET["outputformat"];
  91 +}
  92 +if(strtolower($OUTPUTFORMAT) == "geojson"){
  93 + $OUTPUTFORMAT = "json";
91 94 }
92 95 $cache = true;
93 96 require_once(dirname(__FILE__)."/classesphp/carrega_ext.php");
... ...