[Mapserver-users] WFS support
Kralidis,Tom [Burlington]
Tom.Kralidis at ec.gc.ca
Mon Jan 5 16:54:54 PST 2004
> -----Original Message-----
> From: Amit S BEHERE [mailto:abehere at cs.ucsd.edu]
> Sent: Monday, January 05, 2004 7:22 PM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] WFS support
>
>
> Hi all,
>
> I do not seem to be able to filter my queries (WFS queries)
> correctly. I read in the documentation that only BBOX filter
> is supposed to work for WFS queries. Now does that mean that
> only the BBOX filter will work among the spatial filters
> (filters could be attribute filters or spatial filters) or
> its BBOX filter alone without any other attribute or spatial filters.
>
In MapServer OGC:WFS (v4.0), BBOX works like this:
http://localhost/cgi-bin/mapserv-4.0?map=/home/httpd/html/prototypes/ec/msc/
config.map&version=1.0.0&service=WFS&request=GetFeature&typename=stn_info&bb
ox=-120,50,-118,51
As for Filter, the forthcoming release of MapServer will support Filter
Encoding (is it already in CVS?), so you should be able to pull off queries
like:
http://localhost/cgi-bin/mapserv-4.0?map=/home/httpd/html/prototypes/ec/msc/
config.map&version=1.0.0&service=WFS&request=GetFeature&typename=stn_info&bb
ox=-120,50,-118,51&filter=<Filter><PropertyIsEqualTo><PropertyName>Street</P
ropertyName><Literal>myhouseaddr%20blvd</Literal></PropertyIsEqualTo></Filte
r>
Now, I'm not sure whether spatial filtering will still be supported by the
BBOX parameter, or as a GML element in Filter, or both. Perhaps the DM
Solutions folks can clarify to what extent Filter will be supported.
Thanks
..Tom
=========================
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/cise/
=========================
> So bottom line is can I do something like the following
> query, "Return me trees only on the street matching the
> property Street=myhouseaddr blvd" using filters. If I can it
> means I am going wrong somewhere with my query.
>
> Amit Behere.
> UCSD.
> "Technology won't make your life more difficult or easy, it
> just changes the rules"......Vishwanathan Anand
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
>
More information about the MapServer-users
mailing list