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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Sep 1 11:41:50 EDT 2008


Author: astrid_emde
Date: 2008-09-01 11:41:46 -0400 (Mon, 01 Sep 2008)
New Revision: 2904

Modified:
   branches/2.5/http/classes/class_wfs.php
Log:
the WFS handling is done via POST (WMS Requests are handled via GET). Therefore it makes sense that Mapbender chooses the POST-tags instead of the GET-tags from the Capabilities-document

http://trac.osgeo.org/mapbender/ticket/222

Modified: branches/2.5/http/classes/class_wfs.php
===================================================================
--- branches/2.5/http/classes/class_wfs.php	2008-09-01 14:14:58 UTC (rev 2903)
+++ branches/2.5/http/classes/class_wfs.php	2008-09-01 15:41:46 UTC (rev 2904)
@@ -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"){
@@ -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"){



More information about the Mapbender_commits mailing list