[Mapbender-commits] r4362 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jul 16 09:41:08 EDT 2009
Author: christoph
Date: 2009-07-16 09:41:07 -0400 (Thu, 16 Jul 2009)
New Revision: 4362
Modified:
trunk/mapbender/http/classes/class_wfs.php
Log:
correct namespaces and filter
Modified: trunk/mapbender/http/classes/class_wfs.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs.php 2009-07-16 07:22:03 UTC (rev 4361)
+++ trunk/mapbender/http/classes/class_wfs.php 2009-07-16 13:41:07 UTC (rev 4362)
@@ -81,8 +81,9 @@
protected function getFeaturePost ($featureTypeName, $filter) {
$postData = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" .
"<wfs:GetFeature version=\"" . $this->getVersion() . "\" " .
- "xmlns:ogc=\"http://www.opengis.net/ogc\" " .
- "xmlns:wfs=\"http://www.opengis.net/wfs\">" .
+ "xmlns:wfs=\"http://www.opengis.net/wfs\" " .
+ "xmlns:gml=\"http://www.opengis.net/gml\" " .
+ "xmlns:ogc=\"http://www.opengis.net/ogc\">" .
"<wfs:Query ";
// add namespace
@@ -93,8 +94,9 @@
$postData .= "xmlns:" . $ns . "=\"" . $url . "\" ";
}
- $postData .= "typeName=\"" . $featureTypeName . "\"/>" .
- "</wfs:GetFeature>";
+ $postData .= "typeName=\"" . $featureTypeName . "\">" .
+ $filter .
+ "</wfs:Query></wfs:GetFeature>";
return $this->post($this->getFeature, $postData);
}
More information about the Mapbender_commits
mailing list