Hi,
 
Geoserver is in some places using the traditional axis order with EPSG:4326 in 
order to make old applications to function.  I would have a try by giving 
srsName as urn:x-ogc:def:crs:EPSG:4326 but I cannot guarantee that it works.
 
-Jukka Rahkonen- 
 
 
 
________________________________

Lähettäjä: Christian Seewald [mailto:[email protected]] 
Lähetetty: 8. huhtikuuta 2011 13:24
Vastaanottaja: '[email protected]'
Aihe: [Geoserver-users] A BBOX-Filter axis order problem in WFS 1.1.0



        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. 

        <ogc:BBOX>

          <ogc:PropertyName>the_geom</ogc:PropertyName>

          <gml:Envelope srsName="EPSG:4326" 
xmlns:gml="http://www.opengis.net/gml";>

            <gml:lowerCorner>4.19131460613648 
49.97894409826496</gml:lowerCorner>

            <gml:upperCorner>15.843890646710745 
53.33055446943188</gml:upperCorner>

          </gml:Envelope>

        </ogc:BBOX>

        
        I presume the error lies with GeoServer, since all positions within a 
GetFeature response are encoded with Northing/Easting in WFS 1.1.0 for EPSG 
4326, so I believe the BBOX in a request should be the same. 
        
        If this problem cannot be remedied, is there an easy way to disable WFS 
1.1.0 in GeoServer? This means a version=1.1.0 request must be illegal and the 
default Capabilites document must be in 1.0.0 format. 
        
        I played arround with a few config files including a spring application 
context file, but I did not manage to disable it. 
        
        Any help is really appreciated!!

         

        Thx, Christian

         

         

------------------------------------------------------------------------------
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

Reply via email to