Wfs filter

vincent.dacol vincent.dacol at LAPOSTE.NET
Wed Jun 15 00:02:07 PDT 2005


Hi the list,

I want to apply a filter on my WFS server.

But this simple thinks seem harder than I think.

The original data is a shape file with attribut and
geographique data.

The result of the filter is an empty GML file.

Here is a copy of my WFS mapserver client and the GML file.

Thanks for the help.

Extract of WFS layer in the Client mapfile:


    CONNECTIONTYPE WFS
    CONNECTION
"http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L93_WFS.map&"
    
    METADATA
        "wfs_service" "WFS"
        "wfs_version" "1.0.0"
        "wfs_typename" "France_L93_Name"
        "wfs_connectiontimeout" "120"
        "wfs_filter"   
"<PropertyIsGreaterThan><PropertyName>PERIMETRE</PropertyName><Literal>300</Literal></PropertyIsGreaterThan>"
    END


The GML data :
<?xml version='1.0' encoding="ISO-8859-1" ?>
<wfs:FeatureCollection
   xmlns="http://www.ttt.org/myns"
   xmlns:myns="http://www.ttt.org/myns"
   xmlns:wfs="http://www.opengis.net/wfs"
   xmlns:gml="http://www.opengis.net/gml"
   xmlns:ogc="http://www.opengis.net/ogc"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd 
                       http://www.ttt.org/myns
http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/projection/Serveur_France/France_L93_WFS.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=France_L93_Name">
   <gml:boundedBy>
      <gml:null>missing</gml:null>
   </gml:boundedBy>
</wfs:FeatureCollection>

Bye,

Vincent



Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)





More information about the MapServer-users mailing list