Hi, are you sure that you are using the correct wfs versions? The WFS 1.0 standard does not support specifying the SRS name (srsName) in GetFeature requests. This is possible from wfs 1.1 upwards. And as far as i know mapbender supports it - at least with Mapbender 2.7.
Cheers, Michael 2010/10/7 necipakca <[email protected]>: > > i am working now WFS service on mapbender 2.6.2 and when i was developing new > wfs search items ,i found that ,,, > > "<wfs:Query "; > > // add namespace > if (strpos($featureTypeName, ":") !== false) { > $ft = $this->findFeatureTypeByName($featureTypeName); > $ns = $this->getNamespace($featureTypeName); > $url = $ft->getNamespace($ns); > $postData .= "xmlns:" . $ns . "=\"" . $url . "\" "; > > } > $postData .= "typeName=\"" . $featureTypeName . "\">" . > $filter . > "</wfs:Query></wfs:GetFeature>"; > > there is no srsName attribute so GeoServer is directing to wrong BBOX and > wrong place. > > but when i was adding srsName attribute wfs:Query every thing is ok .its > works!!! > > like that ; > > "<wfs:Query srsName=\"EPSG:2320\" "; > > // add namespace > if (strpos($featureTypeName, ":") !== false) { > $ft = $this->findFeatureTypeByName($featureTypeName); > $ns = $this->getNamespace($featureTypeName); > $url = $ft->getNamespace($ns); > $postData .= "xmlns:" . $ns . "=\"" . $url . "\" "; > > } > $postData .= "typeName=\"" . $featureTypeName . "\">" . > $filter . > "</wfs:Query></wfs:GetFeature>"; > Regards, > Necip AKCA > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/hi-evreybody-i-think-there-is-a-problem-abouth-WFS-search-via-GeoServer-WFS-Service-tp5610970p5610970.html > Sent from the mapbender-dev mailing list archive at Nabble.com. > _______________________________________________ > Mapbender_dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapbender_dev > -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Treffen Sie uns auf der INTERGEO 05.10. - 07.10.2010 in Köln Halle: 11.2 Stand-Nr: 2C.121 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----------------------------------------------------------- Michael Schulz [email protected] in medias res Gesellschaft für Informationstechnologie mbH Schwimmbadstraße 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -------------------------------------------------------------- Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg _______________________________________________ Mapbender_dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapbender_dev
