[Mapserver-users] WFS support

Normand Savard nsavard at dmsolutions.ca
Tue Jan 6 10:42:09 EST 2004


--------------030608000305020000010208
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

See answers below.

Norm


Kralidis,Tom [Burlington] wrote:

>  
>
>>-----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.
>>
>>    
>>
Only the BBOX spatial filter is supported but he BBOX can be used in 
combinatiion with other filter types.

Example:

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&
filter=<filter><AND><BBOX><PropertyName>Name</PropertyName><Box+srsName='EPSG:42304'>
<coordinates>201000,-7300+410396,67400</coordinates></Box></BBOX><PropertyIsEqualTo>
<PropertyName>NAME</PropertyName><Literal>Digby</Literal></PropertyIsEqualTo></AND></filter>


>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:
>  
>
The filter encoding support is in MapServer 4.1 cvs.

>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.
>  
>
The BBOX parameter is mutually exclusive with FEATUREID and FILTER as 
stated in the WFS specifications (see 13.7.3.1).  So the BBOX is 
supported as a GML element.

>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
>>
>>    
>>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>  
>


--------------030608000305020000010208
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<pre wrap=""></pre>
Hi,<br>
<br>
See answers below.<br>
<br>
Norm<br>
<br>
<br>
Kralidis,Tom [Burlington] wrote:<br>
<blockquote type="cite"
 cite="mid2576812186CDD411BF1500508B6DCE9505D493FA at ECNWRI1.ontario.int.ec.gc.ca">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">-----Original Message-----
From: Amit S BEHERE [<a class="moz-txt-link-freetext" href="mailto:abehere at cs.ucsd.edu">mailto:abehere at cs.ucsd.edu</a>] 
Sent: Monday, January 05, 2004 7:22 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users at lists.gis.umn.edu">mapserver-users at lists.gis.umn.edu</a>
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.

    </pre>
  </blockquote>
  <pre wrap=""><!----></pre>
</blockquote>
Only the BBOX spatial filter is supported but he BBOX can be used in combinatiion
with other filter types.<br>
<br>
<pre wrap="">Example:
</pre>
 
<pre wrap=""><a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/mapserv-4.0?map=/home/httpd/html/prototypes/ec/msc/">http://localhost/cgi-bin/mapserv-4.0?map=/home/httpd/html/prototypes/ec/msc/</a>
config.map&amp;version=1.0.0&amp;service=WFS&amp;request=GetFeature&amp;typename=stn_info&amp;
filter=&lt;filter&gt;&lt;AND&gt;&lt;BBOX&gt;&lt;PropertyName&gt;Name&lt;/PropertyName&gt;&lt;Box+srsName='EPSG:42304'&gt;
&lt;coordinates&gt;201000,-7300+410396,67400&lt;/coordinates&gt;&lt;/Box&gt;&lt;/BBOX&gt;&lt;PropertyIsEqualTo&gt;
&lt;PropertyName&gt;NAME&lt;/PropertyName&gt;&lt;Literal&gt;Digby&lt;/Literal&gt;&lt;/PropertyIsEqualTo&gt;&lt;/AND&gt;&lt;/filter&gt;</pre>
<br>
<blockquote type="cite"
 cite="mid2576812186CDD411BF1500508B6DCE9505D493FA at ECNWRI1.ontario.int.ec.gc.ca">
  <pre wrap="">
In MapServer OGC:WFS (v4.0), BBOX works like this:

<a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/mapserv-4.0?map=/home/httpd/html/prototypes/ec/msc/">http://localhost/cgi-bin/mapserv-4.0?map=/home/httpd/html/prototypes/ec/msc/</a>
config.map&amp;version=1.0.0&amp;service=WFS&amp;request=GetFeature&amp;typename=stn_info&amp;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:
  </pre>
</blockquote>
The filter encoding support is in MapServer 4.1 cvs.<br>
<br>
<blockquote type="cite"
 cite="mid2576812186CDD411BF1500508B6DCE9505D493FA at ECNWRI1.ontario.int.ec.gc.ca">
  <pre wrap="">
<a class="moz-txt-link-freetext" href="http://localhost/cgi-bin/mapserv-4.0?map=/home/httpd/html/prototypes/ec/msc/">http://localhost/cgi-bin/mapserv-4.0?map=/home/httpd/html/prototypes/ec/msc/</a>
config.map&amp;version=1.0.0&amp;service=WFS&amp;request=GetFeature&amp;typename=stn_info&amp;bb
ox=-120,50,-118,51&amp;filter=&lt;Filter&gt;&lt;PropertyIsEqualTo&gt;&lt;PropertyName&gt;Street&lt;/P
ropertyName&gt;&lt;Literal&gt;myhouseaddr%20blvd&lt;/Literal&gt;&lt;/PropertyIsEqualTo&gt;&lt;/Filte
r&gt;

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.
  </pre>
</blockquote>
The BBOX parameter is mutually exclusive with FEATUREID and FILTER as stated
in the WFS specifications (see 13.7.3.1). &nbsp;So the BBOX is supported as a
GML element.<br>
<br>
<blockquote type="cite"
 cite="mid2576812186CDD411BF1500508B6DCE9505D493FA at ECNWRI1.ontario.int.ec.gc.ca">
  <pre wrap="">
Thanks

..Tom

=========================
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
<a class="moz-txt-link-freetext" href="http://www.ec.gc.ca/cise/">http://www.ec.gc.ca/cise/</a>
========================= 

  </pre>
  <blockquote type="cite">
    <pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:Mapserver-users at lists.gis.umn.edu">Mapserver-users at lists.gis.umn.edu</a> 
<a class="moz-txt-link-freetext" href="http://lists.gis.umn.edu/mailman/listinfo/maps">http://lists.gis.umn.edu/mailman/listinfo/maps</a>&gt; erver-users

    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
Mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapserver-users at lists.gis.umn.edu">Mapserver-users at lists.gis.umn.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.gis.umn.edu/mailman/listinfo/mapserver-users">http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</a>

  </pre>
</blockquote>
<br>
</body>
</html>

--------------030608000305020000010208--




More information about the mapserver-users mailing list