[Mapbender-commits] r8246 - branches/2.7/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Feb 13 11:44:56 EST 2012
Author: astrid_emde
Date: 2012-02-13 08:44:56 -0800 (Mon, 13 Feb 2012)
New Revision: 8246
Modified:
branches/2.7/http/classes/class_wmc.php
Log:
handle exception for wms 1.0.0 and wms 1.3.0 set default xml
Modified: branches/2.7/http/classes/class_wmc.php
===================================================================
--- branches/2.7/http/classes/class_wmc.php 2012-02-13 16:19:38 UTC (rev 8245)
+++ branches/2.7/http/classes/class_wmc.php 2012-02-13 16:44:56 UTC (rev 8246)
@@ -1796,7 +1796,11 @@
$wms->gui_wms_mapformat = $currentLayer["format"][$formatIndex]["name"];
$wms->gui_wms_featureinfoformat = "text/html"; // TODO : Add correct data
- $wms->gui_wms_exceptionformat = "application/vnd.ogc.se_xml"; // TODO : Add correct data
+ if($currentLayer["version"] == '1.3.0' || $currentLayer["version"] == '1.0.0'){
+ $wms->gui_wms_exceptionformat = "XML"; // TODO : Add correct data
+ }else{
+ $wms->gui_wms_exceptionformat = "application/vnd.ogc.se_xml"; // TODO : Add correct data
+ }
$wms->gui_wms_epsg = $this->mainMap->getEpsg();
$wms->gui_wms_visible = $currentLayer["extension"]["WMS_VISIBLE"];
$wms->gui_wms_opacity = $currentLayer["extension"]["GUI_WMS_OPACITY"];
More information about the Mapbender_commits
mailing list