[Mapbender-commits] r4453 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jul 29 09:46:56 EDT 2009


Author: christoph
Date: 2009-07-29 09:46:56 -0400 (Wed, 29 Jul 2009)
New Revision: 4453

Modified:
   trunk/mapbender/http/classes/class_wfs_configuration.php
Log:


Modified: trunk/mapbender/http/classes/class_wfs_configuration.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs_configuration.php	2009-07-29 13:46:14 UTC (rev 4452)
+++ trunk/mapbender/http/classes/class_wfs_configuration.php	2009-07-29 13:46:56 UTC (rev 4453)
@@ -157,6 +157,7 @@
 	var $type;
 	var $wfsId;
 	var $featureTypeId;
+	var $featureTypeName;
 	var $label; 
 	var $labelId;
 	var $style;
@@ -422,6 +423,17 @@
 		$wfsConf->featureTypeId = intval($row["fkey_featuretype_id"]);
 
 		$sql = <<<SQL
+SELECT featuretype_name FROM wfs_featuretype WHERE featuretype_id = $1 LIMIT 1
+SQL;
+
+        $v = array($wfsConf->featureTypeId);
+        $t = array("i");
+        $res = db_prep_query($sql, $v, $t);
+        $row = db_fetch_array($res);
+		
+		$wfsConf->featureTypeName = $row["featuretype_name"];
+
+		$sql = <<<SQL
 SELECT * FROM wfs_conf_element JOIN wfs_element 
 ON wfs_conf_element.f_id = wfs_element.element_id 
 WHERE wfs_conf_element.fkey_wfs_conf_id = $1 



More information about the Mapbender_commits mailing list