Commit 82b6bb6d6fd9fcb8712785078085dd8ad0054f59
1 parent
785deaea
Exists in
master
and in
7 other branches
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,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"); |