VS: [mapserver-users] WFS with Filter
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Mon Oct 31 09:39:29 PDT 2011
Hi,
Seems to work with my Mapserver 6.0.1 with PostGIS data. I do not have shapefile layers to compare with.
http://188.64.1.61/cgi-bin/osm-mapserver_i?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=POI_pub_restaurant&SRSNAME=EPSG:4326&maxfeatures=10&FILTER=%3Cogc%3AFilter%3E%3Cogc%3APropertyIsLike+wildCard%3D%27%2A%27+singleChar%3D%27.%27+escape%3D%27%21%27%3E%3Cogc%3APropertyName%3Ename%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3E%2ABossa%2A%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsLike%3E%3C%2Fogc%3AFilter%3E
SRSNAME part does not work but is is not supported by WFS 1.0.0 so do not bother about that.
-Jukka Rahkonen-
________________________________________
Lähettäjä: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] käyttäjän Jörg Thomsen [jt at mapmedia.de] puolesta
Lähetetty: 31. lokakuuta 2011 18:14
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] WFS with Filter
Hello,
I have found some older list-entries concerning this topic, but no final
solution.
I am using MapServer version 6.0.1 as WFS, the getFeature returns a nice
XML I can use e.g. in QGIS, so everything seems to be fine. But when I
use a filter in my request like
> http://xxx/cgi-bin/mapserv?map=/data/UMN/bundeslaender.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Bundeslaender_1000&SRSNAME=EPSG:4326&
> FILTER=%20%3Cogc:Filter%3E%3Cogc:PropertyIsLike%20wildCard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3Cogc:PropertyName%3Ebundesland%3C/ogc:PropertyName%3E%3Cogc:Literal%3E*BRANDENBURG*%3C/ogc:Literal%3E%3C/ogc:PropertyIsLike%3E%3C/ogc:Filter%3E
I get the following answer:
> <wfs:FeatureCollection .....>
> <gml:boundedBy>
> <gml:null>missing</gml:null>
> </gml:boundedBy>
> </wfs:FeatureCollection>
Using the same PG-DB with Mapserver 5.6 the request works.
In former threads I found the questions if it does work with geodata
based on shape-files:
1. it dos not
2. I have to use PG
Anyone any idea?
Jörg
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list