VS: [mapserver-users] WFS with Filter

Jörg Thomsen jt at mapmedia.de
Wed Nov 2 04:17:25 EDT 2011


Hi,

and thanks to Lars!
(kriegst 'n Kaffee und 'n Kuchen, wenn Du mal wieder hier bist)

it was a configuration-problem. we changed the srs of the geodata and I
set a comment before the extend in the mapfile. So the SQL from
MapServer to the DB had a bbox -1-1-1-....

I was sure, that the extend is not mandatory and all other requests
(wms, WFS without filter) worked well, so I wonder if this behaviour is
wanted?

Jörg

Am 31.10.2011 17:39, schrieb Rahkonen Jukka:
> 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


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_________________________________________________

MapMedia
Kartographie und raumbezogene Informationssysteme

Gillweg 3, 14193 Berlin
fon: +49 30 89 06 82-70
fax: +49 30 89 09 53-21
mail: jt at mapmedia.de
net:  www.mapmedia.de
_________________________________________________



Geschäftsführer: G. v. Tschirnhaus, J. Thomsen, P. Stamm
Registergericht, Berlin - Amtsgericht Charlottenburg,
HRB 89625, Umsatzsteuer-Identnummer: DE 813794062


More information about the mapserver-users mailing list