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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Oct 1 09:52:35 EDT 2008


Author: christoph
Date: 2008-10-01 09:52:35 -0400 (Wed, 01 Oct 2008)
New Revision: 3094

Modified:
   trunk/mapbender/http/classes/class_wfs.php
Log:
merged w/ 2.5

Modified: trunk/mapbender/http/classes/class_wfs.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs.php	2008-10-01 13:51:31 UTC (rev 3093)
+++ trunk/mapbender/http/classes/class_wfs.php	2008-10-01 13:52:35 UTC (rev 3094)
@@ -22,8 +22,8 @@
 */
 
 require_once(dirname(__FILE__)."/../../core/globalSettings.php");
-require_once(dirname(__FILE__)."/class_connector.php");
-require_once(dirname(__FILE__)."/class_administration.php");
+require_once(dirname(__FILE__)."/class_connector.php");
+require_once(dirname(__FILE__)."/class_administration.php");
 
 class wfs {
 
@@ -64,7 +64,7 @@
 	$values = null;
 	$tags = null;
 	$admin = new administration();
-	$this->wfs_getcapabilities_doc = $admin->char_encode($data);
+	$this->wfs_getcapabilities_doc = $admin->char_encode($data);
 	$this->wfs_upload_url = $url;
 	
 	# for temporary wfs a id has to be created...
@@ -75,7 +75,7 @@
 	xml_parser_set_option($parser,XML_OPTION_TARGET_ENCODING,CHARSET);
 	xml_parse_into_struct($parser,$this->wfs_getcapabilities_doc,$values,$tags);
 	//xml_parse_into_struct($parser,$data,$values,$tags);
-	
+	
 	xml_parser_free($parser);
 	
 	$section = false;
@@ -115,7 +115,7 @@
 			if(strtoupper($element[tag]) == "GETCAPABILITIES" && $element[type] == "open"){
 				$section = "getcapabilities";
 			}
-			if($section == "getcapabilities" && strtoupper($element[tag]) == "GET"){
+			if($section == "getcapabilities" && strtoupper($element[tag]) == "POST"){
 				$this->wfs_getcapabilities = $element[attributes][onlineResource];
 			}
 			
@@ -126,7 +126,7 @@
 				
 				
 			}
-			if($section == "describefeaturetype" && strtoupper($element[tag]) == "GET"){
+			if($section == "describefeaturetype" && strtoupper($element[tag]) == "POST"){
 				$this->wfs_describefeaturetype = $element[attributes][onlineResource];
 			}
 			
@@ -134,7 +134,7 @@
 			if(strtoupper($element[tag]) == "GETFEATURE" && $element[type] == "open"){
 				$section = "getfeature";
 			}
-			if($section == "getfeature" && strtoupper($element[tag]) == "GET"){
+			if($section == "getfeature" && strtoupper($element[tag]) == "POST"){
 				$this->wfs_getfeature = $element[attributes][onlineResource];
 			}
 			if(strtoupper($element[tag]) == "GETFEATURE" && $element[type] == "close"){
@@ -144,7 +144,7 @@
 			if(strtoupper($element[tag]) == "TRANSACTION" && $element[type] == "open"){
 				$section = "transaction";
 			}
-			if($section == "transaction" && strtoupper($element[tag]) == "GET"){
+			if($section == "transaction" && strtoupper($element[tag]) == "POST"){
 				$this->wfs_transaction = $element[attributes][onlineResource];
 			}
 			if(strtoupper($element[tag]) == "TRANSACTION" && $element[type] == "close"){
@@ -195,7 +195,7 @@
 } 
 function addFeaturetype($name,$title,$abstract,$srs,$url,$version){
 	$this->wfs_featuretype[count($this->wfs_featuretype)] = new featuretype($name,$title,$abstract,$srs,$url,$version);
-}
+}
  function stripEndlineAndCarriageReturn($string) {
 	  	return preg_replace("/\n/", "", preg_replace("/\r/", " ", $string));
 	  }
@@ -565,7 +565,7 @@
 			if(strtoupper($element[tag]) == "GETCAPABILITIES" && $element[type] == "open"){
 				$section = "getcapabilities";
 			}
-			if($section == "getcapabilities" && strtoupper($element[tag]) == "GET"){
+			if($section == "getcapabilities" && strtoupper($element[tag]) == "POST"){
 				$this->wfs_getcapabilities = $element[attributes][onlineResource];
 			}
 			
@@ -576,7 +576,7 @@
 				
 				
 			}
-			if($section == "describefeaturetype" && strtoupper($element[tag]) == "GET"){
+			if($section == "describefeaturetype" && strtoupper($element[tag]) == "POST"){
 				$this->wfs_describefeaturetype = $element[attributes][onlineResource];
 			}
 			
@@ -584,7 +584,7 @@
 			if(strtoupper($element[tag]) == "GETFEATURE" && $element[type] == "open"){
 				$section = "getfeature";
 			}
-			if($section == "getfeature" && strtoupper($element[tag]) == "GET"){
+			if($section == "getfeature" && strtoupper($element[tag]) == "POST"){
 				$this->wfs_getfeature = $element[attributes][onlineResource];
 			}
 			if(strtoupper($element[tag]) == "GETFEATURE" && $element[type] == "close"){
@@ -594,7 +594,7 @@
 			if(strtoupper($element[tag]) == "TRANSACTION" && $element[type] == "open"){
 				$section = "transaction";
 			}
-			if($section == "transaction" && strtoupper($element[tag]) == "GET"){
+			if($section == "transaction" && strtoupper($element[tag]) == "POST"){
 				$this->wfs_transaction = $element[attributes][onlineResource];
 			}
 			if(strtoupper($element[tag]) == "TRANSACTION" && $element[type] == "close"){
@@ -808,4 +808,4 @@
 		}		
 	}
 }
-?>
+?>
\ No newline at end of file



More information about the Mapbender_commits mailing list