From 86f8bb7e8faddc43a1cc11a5936233510ee7c2a0 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 11 May 2015 13:31:50 +0000 Subject: [PATCH] Opção em ogc.php para usar json --- ogc.php | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/ogc.php b/ogc.php index 8546b8a..a6b58f4 100644 --- a/ogc.php +++ b/ogc.php @@ -88,6 +88,9 @@ if(isset($_GET["outputFormat"]) && $_GET["outputFormat"] != ""){ } if(isset($_GET["outputformat"]) && $_GET["outputformat"] != ""){ $_GET["OUTPUTFORMAT"] = $_GET["outputformat"]; +} +if(strtolower($OUTPUTFORMAT) == "geojson"){ + $OUTPUTFORMAT = "json"; } $cache = true; require_once(dirname(__FILE__)."/classesphp/carrega_ext.php"); -- libgit2 0.21.2