WFS and filter
Kralidis,Tom [Burlington]
Tom.Kralidis at EC.GC.CA
Mon Jul 24 07:33:06 PDT 2006
Have you tried passing these as run-time variable substitutions? So, if you have a URL like:
http://host/mapserv?filter_id=123456
with your mapfile constructed as follows:
...
LAYER
...
METADATA
"wfs_filter" "<PropertyIsEqualTo><PropertyName>id</PropertyName><Literal>%filter_id%</Literal></PropertyIsEqualTo>"
...
END
...
END
I haven't tested this myself, but the docs at http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub seem to suggest this would work.
Hope this helps.
..Tom
-----Original Message-----
From: UMN MapServer Users List on behalf of Daniel Goetz
Sent: Mon 24-Jul-06 09:49
To: MAPSERVER-USERS at LISTS.UMN.EDU
Cc:
Subject: [UMN_MAPSERVER-USERS] WFS and filter
Hi coummunity,
I bulid up a little WFS-server using mapserver (local mapserver installation; ms4w 1.5.3; CGI). Then I tried to map it using mapserver (on another machine in the intranet) as WFS-client. Everything works fine.
Now I want to map only a single feature. Therefor I used a filter-expression in the LAYER-METADATA. This works fine too. But my question is: Is it possible to filter single features dynamically? I mean: Is it possible to filter features by writing the filter-expression in the URL of my browser (Similar to a filter-expression in a WFS-conform GetFeature-Request)? Hope you could understand what I mean. I want the user to be able to filter certain features without editing the .map-file but via specifying the filter-expression in the URL.
Thank you for your ideas and helpings.
regards
Daniel
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
More information about the MapServer-users
mailing list