[Mapbender-commits] r2751 - branches/2.5/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Aug 7 09:11:54 EDT 2008


Author: verenadiewald
Date: 2008-08-07 09:11:53 -0400 (Thu, 07 Aug 2008)
New Revision: 2751

Modified:
   branches/2.5/http/classes/class_wms.php
Log:
removed bug: function createObjFromDBNoGui gets default parameter for gui_wms_mapformat, gui_wms_featureinfoformat and gui_wms_exceptionformat

Modified: branches/2.5/http/classes/class_wms.php
===================================================================
--- branches/2.5/http/classes/class_wms.php	2008-08-07 07:39:52 UTC (rev 2750)
+++ branches/2.5/http/classes/class_wms.php	2008-08-07 13:11:53 UTC (rev 2751)
@@ -1714,6 +1714,18 @@
 			$this->gui_wms_epsg=$row["gui_wms_epsg"];
 			$this->gui_wms_sldurl = $row["gui_wms_sldurl"];
 			
+			if($this->wms_version == "1.0.0"){
+                    $this->gui_wms_mapformat = "PNG";
+                    $this->gui_wms_featureinfoformat = "MIME";
+                    $this->gui_wms_exceptionformat = "INIMAGE";
+            }
+            /*define defaults for wms-version 1.1.0 and 1.1.1*/
+            else{
+                    $this->gui_wms_mapformat = "image/png";
+                    $this->gui_wms_featureinfoformat = "text/html";
+                    $this->gui_wms_exceptionformat = "application/vnd.ogc.se_inimage";
+            }
+			
 			$count_wms++;
 		}
 	



More information about the Mapbender_commits mailing list