[Mapserver-DE] WFS-Filter Problem
Kai Behncke
kbehncke at igf.uni-osnabrueck.de
Son Sep 6 14:34:15 CEST 2009
Hallo Liste,
ich stehe vor einem merkwürdigen Rätsel.
Ich nutze folgenden WFS-Filter:
<Filter><ogc:Or> <ogc:PropertyIsEqualTo
matchCase="true"><ogc:PropertyName>objekt_id</ogc:PropertyName><ogc:Literal>8</ogc:Literal></ogc:PropertyIsEqualTo><ogc:PropertyIsEqualTo
matchCase="true"><ogc:PropertyName>objekt_id</ogc:PropertyName><ogc:Literal>20</ogc:Literal></ogc:PropertyIsEqualTo><ogc:PropertyIsEqualTo
matchCase="true"><ogc:PropertyName>objekt_id</ogc:PropertyName><ogc:Literal>34</ogc:Literal></ogc:PropertyIsEqualTo><ogc:PropertyIsEqualTo
matchCase="true"><ogc:PropertyName>objekt_id</ogc:PropertyName><ogc:Literal>41</ogc:Literal></ogc:PropertyIsEqualTo><ogc:PropertyIsEqualTo
matchCase="true"><ogc:PropertyName>objekt_id</ogc:PropertyName><ogc:Literal>111</ogc:Literal></ogc:PropertyIsEqualTo>
</ogc:Or></Filter>
(insgesamt 5 Objekte).
Wenn ich das einbinde wie folgt:
(MapServer 5.0)
http://www.tourismus-maps.de/cgi-bin/mapserv?map=/home/promotion/behncke/gastronomap_wms/gastronomap_ows.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=gastronomie_ows&Filter=%3CFilter%3E%3Cogc:Or%3E%20%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName%3E%3Cogc:Literal%3E8%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName%3E%3Cogc:Literal%3E20%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName%3E%3Cogc:Literal%3E34%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName%3E%3Cogc:Literal%3E41%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName!
%3E%3Cogc:Literal%3E111%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Or%3E%3C/Filter%3E
Werden alle 5 Objekte wunderbar ausgeliefert.
Wenn ich das aber in MS 5.4 ausprobiere (spielt dabei keine Rolle ob ich WFS
1.0.0 oder 1.1.0 nutze)
dann werden mir zwar insgesamt 5 Objekte ausgeliefert (aber drei mal das
Objekt Nr. 8
(??????)), siehe:
http://www.tourismus-maps.de/cgi-bin/mapserv54?map=/home/promotion/behncke/gastronomap_wms/gastronomap_ows.map&VERSION=1.1.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=gastronomie_ows&Filter=%3CFilter%3E%3Cogc:Or%3E%20%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName%3E%3Cogc:Literal%3E8%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName%3E%3Cogc:Literal%3E20%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName%3E%3Cogc:Literal%3E34%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyName%3E%3Cogc:Literal%3E41%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cogc:PropertyIsEqualTo%20matchCase=%22true%22%3E%3Cogc:PropertyName%3Eobjekt_id%3C/ogc:PropertyNa!
me%3E%3Cogc:Literal%3E111%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Or%3E%3C/Filter%3E
Hat jemand eine Ahnung wodran das liegen könnte?:
Das Mapfile sieht aus wie folgt:
LAYER
NAME 'gastronomie_ows'
TYPE POINT
STATUS DEFAULT
CONNECTIONTYPE postgis
CONNECTION '*************'
DATA '************'
DUMP TRUE
METADATA
'ows_title' 'gastronomie_ows'
'ows_srs' "EPSG:900913 EPSG:4326"
"gml_featureid" "objekt_id"
"GML_INCLUDE_ITEMS" "all"
'WMS_INCLUDE_ITEMS' 'all'
END
CLASS
....und so weiter.....
Danke im Voraus, Kai
--
Dipl.-Geogr. Dipl.-Umweltwiss. Kai Behncke
Geschäftsführer Gesellschaft für Geoinformatik (GfGI)
Institut für Geoinformatik und Fernerkundung (IGF)
Universität Osnabrück
Barbarastr. 22b
49076 Osnabrück
Raum: 92/E11
Tel.: +49 541 969-3922
E-Mail: mailto:kbehncke at igf.uni-osnabrueck.de
********************************************
2.-5. März 2010
FOSSGIS/Open Street Map-Konferenz an der Universität Osnabrück
http://www.fossgis.de/konferenz
********************************************