[mapserver-users] no results for wfs getfeature request
Daniel Morissette
dmorissette at mapgears.com
Mon Apr 15 12:00:01 PDT 2013
I don't know if that's the issue here, but I seem to remember a problem
related to WFS GetFeature request returning no results when the filter
contains only attribute filters and no spatial filter.
In this case the default mapfile extents is used as the default spatial
filter which may lead to no results if it does not overlap with the data.
Either try adding a spatial component to your query, or make sure the
extents and projection in the mapfile are valid and overlap with the
data that you are querying.
Daniel
On 13-04-15 2:55 PM, Martin Kofahl wrote:
> Holger,
> your request contains PropertyIsLike conditions only. So I don't expect
> the filter to be the source of the error. What about a querystring like
> "SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=flst_gdsrvt01&maxFeatures=1"
> and WFS 1.1.0? Do these requests return any results or errors? You'll
> probably have to post the significant parts of the mapfile, too.
>
> Kind regards,
> Martin
>
> 2013/4/15 <porath at web.de <mailto:porath at web.de>>
>
> Hi!
> Here is the full WFS 1.0.0 request:
> http://host/ogc-sec-data.ows?service=WFS&version=1.0.0&request=getFeature&typeName=flst_gdsrvt01&Filter=%3CFilter%3E%0A%3Cand%3E%0A%3CPropertyIsLike%20wildCard%3D%22%25%22%20singleChar%3D%22%3F%22%20escape%3D%22ESC%22%3E%0A%3CPropertyName%3EFS_GKNR%3C%2FPropertyName%3E%0A%3CLiteral%3E534%3C%2FLiteral%3E%0A%3C%2FPropertyIsLike%3E%0A%3CPropertyIsLike%20wildCard%3D%22%25%22%20singleChar%3D%22%3F%22%20escape%3D%22ESC%22%3E%0A%3CPropertyName%3EFS_FLNR%3C%2FPropertyName%3E%0A%3CLiteral%3E26%3C%2FLiteral%3E%0A%3C%2FPropertyIsLike%3E%0A%3CPropertyIsLike%20wildCard%3D%22%25%22%20singleChar%3D%22%3F%22%20escape%3D%22ESC%22%3E%0A%3CPropertyName%3EFS_FSZ%3C%2FPropertyName%3E%0A%3CLiteral%3E111%3C%2FLiteral%3E%0A%3C%2FPropertyIsLike%3E%0A%3C%2Fand%3E%0A%3C%2FFilter%3E
> Regards
> Holger
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
More information about the MapServer-users
mailing list