On Fri, Apr 8, 2011 at 12:23 PM, Christian Seewald <[email protected]> wrote: > I am using GeoServer version 2.0.1. I am having a problem in WFS 1.1.0 with > axis ordering in a BBOX filter (also tried 2.1 RC 3, same problem). > > A WFS 1.1.0 capable map client issues an http-POST GetFeature request, > including a spatial constraint: > > <wfs:GetFeature service="WFS" version="1.1.0" > > outputFormat="text/xml; subtype=gml/3.1.1" > xmlns:wfs="http://www.opengis.net/wfs"> > > <wfs:Query typeName="gk:waterlevels" > xmlns:gk="http://gkinfo.wsv.de"> > > <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> > > <ogc:BBOX> > > <ogc:PropertyName>the_geom</ogc:PropertyName> > > <gml:Envelope srsName="EPSG:4326" > xmlns:gml="http://www.opengis.net/gml"> > > <gml:lowerCorner>49.97894409826496 > 4.19131460613648</gml:lowerCorner> > > <gml:upperCorner>53.33055446943188 > 15.843890646710745</gml:upperCorner> > > </gml:Envelope> > > </ogc:BBOX> > > </ogc:Filter> > > </wfs:Query> > > </wfs:GetFeature> > > These coordinates are central european, the ordering is northing/easting. > The response contains no features at all. If I reverse those coordinates > within each corner, all features are delivered.
The error lies in your request, you're using a deprecated syntax that GeoServer uses to force axis order in lon/lat order. See: http://docs.geoserver.org/latest/en/user/services/wfs/basics.html#axis-ordering To get compliant behavior make a request using non deprecated syntax, srsName="urn:x-ogc:def:crs:EPSG:4326" Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
