[mapserver-dev] WFS Filter in GET parameter doesn't work with PostGIS Layer

Martin Kofahl martin.kofahl at gmail.com
Tue Jan 29 00:34:52 PST 2013


Hi Denis,
the filter PropertyIsEqualTo is working for me. Are you abel to compile
from trunk (but PropertyIsEqualTo should have worked in 6.0, too) and can
you post the full mapfile?

Martin

2013/1/28 Denis Rykov <rykovd at gmail.com>

> Hi!
>
> PostGIS datastore and If  I use temporary mapfile created by MapServer -
> PostGIS returns features which fits filter value.
>
>
> On Mon, Jan 28, 2013 at 3:09 PM, Martin Kofahl <martin.kofahl at gmail.com>wrote:
>
>> Hi Denis,
>> which datastore do you use? In case of sql, does the database return any
>> features?
>>
>> Martin
>>
>> 2013/1/21 Denis Rykov <rykovd at gmail.com>
>>
>>> Hello!
>>>
>>> $ mapserv -v
>>> MapServer version 6.2.0
>>>
>>> Trying to use filter with the following URL:
>>>
>>>
>>>> http://localhost/cgi-bin/mapserv?map=/home/wfs.map&service=wfs&version=1.1.0&request=GetFeature&typeName=water&Filter=
>>>> <Filter><PropertyIsEqualTo><PropertyName>natural</PropertyName><Literal>wetland</Literal></PropertyIsEqualTo></Filter>
>>>
>>>
>>> But server response looks like:
>>>
>>> <wfs:FeatureCollection xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
>>>> xmlns:gml="http://www.opengis.net/gml" xmlns:wfs="
>>>> http://www.opengis.net/wfs"xmlns:ogc="http://www.opengis.net/ogc"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver
>>>> http://localhost/cgi-bin/mapserv?map=/home/rykov/nextgis/vega2013/wfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=water&OUTPUTFORMAT=text/xml;%20subtype=gml/3.1.1
>>>> http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd
>>>> ">
>>>> <gml:boundedBy>
>>>> <gml:Null>missing</gml:Null>
>>>> </gml:boundedBy>
>>>> </wfs:FeatureCollection>
>>>
>>>
>>>
>>> Try to debug mapfile by adding DEBUG 5 то MAP section. Accordingly log
>>> file - no errors, moreover if I change original mapfile with temporary
>>> mapfile created by MapServer with hardcoded FILTER expression - all works
>>> fine.
>>> _______________________________________________
>>> mapserver-dev mailing list
>>> mapserver-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20130129/a3faa68b/attachment.html>


More information about the mapserver-dev mailing list