svn commit: r159 - trunk/mapbender/owsproxy/http/index.php
uli at osgeo.org
uli at osgeo.org
Tue May 2 08:46:45 EDT 2006
Author: uli
Date: 2006-05-02 12:46:45+0000
New Revision: 159
Modified:
trunk/mapbender/owsproxy/http/index.php
Log:
featurInfo handling included
Modified: trunk/mapbender/owsproxy/http/index.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/owsproxy/http/index.php?view=diff&rev=159&p1=trunk/mapbender/owsproxy/http/index.php&p2=trunk/mapbender/owsproxy/http/index.php&r1=158&r2=159
==============================================================================
--- trunk/mapbender/owsproxy/http/index.php (original)
+++ trunk/mapbender/owsproxy/http/index.php 2006-05-02 12:46:45+0000
@@ -54,8 +54,11 @@
case 'getcapabilities':
getCapabilities($or);
break;
+ case 'getfeatureinfo':
+ getFeatureInfo($or);
+ break;
default:
- sendResponse($or);
+ getMap($or);
}
/*********************************************************/
function throwE($e){
@@ -110,13 +113,18 @@
}
return $t;
}
-function sendResponse($or){
+function getMap($or){
global $format;
if($format == 'image/png'){header("Content-Type: image/png");}
if($format == 'image/jpeg' || $format == 'image/jpg'){header("Content-Type: image/jpeg");}
if($format == 'image/gif'){header("Content-Type: image/gif");}
readfile($or);
}
+function getFeatureInfo($url){
+ global $info_format;
+ header("Content-Type: ".$info_format);
+ readfile($url);
+}
function getCapabilities($url){
global $wms_getcapabilities,$wms_getmap,$wms_getfeatureinfo,$wms_getcapabilities_doc;
global $sid,$wms;
More information about the Mapbender_commits
mailing list