wfs_filter doesn't work
Christian Wilmes
C.Wilmes at GMX.DE
Wed May 31 00:38:58 PDT 2006
Hi All,
I've set up a WFS with "VirtualSpatialData" and thought everything is working fine, but now I have to assert, a WMS-Layer on the WFS with a "wfs_filter" doesn't work. Whatever I'm typing in the wfs_filter there will not be just one point in my Layer.
In the log-file I found the following:
[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Starting to prepare HTTP requests.\r
[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, http://localhost/cgi-bin/mapserv.exe?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=myWFS&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etyp%3C%2FPropertyName%3E%3CLiteral%3EREFERENCE%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E\r
[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP request: id=4, found in cache, skipping.\r
[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: Before download loop\r
[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] HTTP: After download loop\r
[Tue May 30 09:37:06 2006] [error] [client 127.0.0.1] msHTTPExecuteRequests() timing summary per layer (connect_time + time_to_first_packet + download_time = total_time in seconds)\r
My mapfile for the WFS:
MAP
NAME WFS_Server
STATUS ON
WEB
IMAGEPATH "c:/ms4w/tmp/ms_tmp"
IMAGEURL "/ms_tmp/"
METADATA
"wfs_title" "WFS Server"
"wfs_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?"
"wfs_srs" "EPSG:31467"
END
END
PROJECTION
"init=EPSG:31467"
END
CONFIG "PGSQL_OGR_FID" "id"
DEBUG ON
LAYER
NAME myWFS
DUMP TRUE
DEBUG ON
METADATA
"wfs_title" "myWFS"
"gml_include_items" "all"
END
TYPE POINT
STATUS ON
CONNECTIONTYPE OGR
CONNECTION "PostgreSQL.ovf"
PROJECTION
"init=EPSG:31467"
END
END
END
The WMS-Layer:
LAYER
NAME "RosoftWFS"
TYPE POINT
STATUS ON
DEBUG ON
CONNECTIONTYPE WFS
CONNECTION "http://localhost/cgi-bin/mapserv.exe?"
METADATA
"wfs_typename" "myWFS"
"wfs_version" "1.0.0"
"wfs_request_method" "GET"
"wfs_service" "WFS"
"wfs_filter" "<PropertyIsEqualTo><PropertyName>typ</PropertyName><Literal>REFERENCE</Literal></PropertyIsEqualTo>"
END
PROJECTION
"init=EPSG:31467"
END
CLASS
NAME test
SYMBOL "Punkt"
SIZE 10
COLOR 255 0 0
END
END
I would be very thankful for any help!
Best Regards
Christian
--
Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
--
Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
--
Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer!
Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
More information about the MapServer-users
mailing list