Hi,
 
In a hurry I just believe this is not a valid WFS 1.1.0 request. Try 1.0.0 
instead, or rewrite the polygon in gml3.
 
-Jukka-


________________________________

        Lähettäjä: Jean-Baptiste RAYNAUD [mailto:[email protected]] 
        Lähetetty: 24. elokuuta 2010 11:24
        Vastaanottaja: Rahkonen Jukka; [email protected]
        Aihe: RE: [Geoserver-users] wfs getfeature: geometry filter with 
polygon doesn't work with version 2
        
        

        Here the post with WFS query parameters catched with firebug: 

         

        Filter : <Filter xmlns="http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml";><Intersects><PropertyName>wkb_geometry</PropertyName><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>912119.35162095,6312937.3566085
 912139.35162095,6312937.3566085 912139.35162095,6312957.3566085 
912119.35162095,6312957.3566085 
912119.35162095,6312937.3566085</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersects></Filter>

        OutputFormat : JSON

        Request  : GetFeature

        Service :  wfs

        typeName : topp:communes

        version : 1.1.0

         

        I do not have error from geoserver but an empty result : 

        {"type":"FeatureCollection","features":[]}

         

        The projection is EPSG:2154 (Lambert 93 France)

         

        I tried with a DWithin filter and it worked fine so I think I will use 
this method. But I would like to understand why the intersects filter didn't 
work with polygon geometry but worked with a point.

         

        Thanks,

         

        Jean-Baptiste Raynaud

         

        De : Rahkonen Jukka [mailto:[email protected]] 
        Envoyé : mardi 24 août 2010 10:01
        À : Jean-Baptiste RAYNAUD; [email protected]
        Objet : VS: [Geoserver-users] wfs getfeature: geometry filter with 
polygon doesn't work with version 2

         

        Hi,

         

        Try to catch the exact WFS query that your application is sending.

         

        -Jukka Rahkonen-

                 

                
________________________________


                Lähettäjä: Jean-Baptiste RAYNAUD 
[mailto:[email protected]] 
                Lähetetty: 24. elokuuta 2010 10:26
                Vastaanottaja: [email protected]
                Aihe: [Geoserver-users] wfs getfeature: geometry filter with 
polygon doesn't work with version 2

                Hello,

                 

                I think there is a bug in the version 2 of GeoServer with wfs 
getfeature request. 

                 

                I developed a  function for a web mapping interface that use a 
wfs getfeature request with a geometry intersects filter with a polygon. 

                The polygon is actually a little square  made with 4 
coordinates based on a mouse click in the map area. I choose this method 
because the accuracy with a bbox is not good and if I choose a point intersects 
filter it doesn't work with a point layer or a linestring layer because the 
user have to click exactly on the point or the line in the map.

                 

                With Geoserver 1.7.7 it worked fine but with the version 2.02 
the request returns an empty set of records. The requested output format is 
JSON and my data are stored in Postgres/PostGis database. I tested the request 
in PGAdmin and I obtained the attempted result, so, maybe the filter function 
changed in the new version of Geoserver?

                Is there a solution? It is for me a real  problem because I use 
to work with the latest version of Geoserver, and it should be a waste of time 
to go back to the previous version.

                 

                Regards,

                 

                Jean-Baptiste Raynaud

                 

                 

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to