<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
On 16/06/2011 7:29 AM, Marco Bagni wrote:
<blockquote
cite="mid:a7b4a4443dffca261c32cb3068c7cce1.squirrel@webmail.marcobagni.com"
type="cite">
<pre wrap="">Dear John,
let me take your request as the occasion to share a thought with this
community.
You are experiencing my same problem and your last deduction is correct:
BBOX works, for the rest the mismatch between the available documentation
and the real implementation of the spatial filters (if really implemented!
at this point doubting is legitimate) makes impossible for a normal human
being to sort out how to make the Intersect or other filters work.
</pre>
</blockquote>
The docs on this at <a class="moz-txt-link-freetext" href="http://mapserver.org/ogc/filter_encoding.html">http://mapserver.org/ogc/filter_encoding.html</a> on
<a class="reference external"
href="http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=%3CFilter%3E%3CIntersect%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Polygon%3E%3Cgml:outerBoundaryIs%3E%3Cgml:LinearRing%3E%3Cgml:coordinates%3E135.5329,34.6624%20135.4921,34.8153%20135.3673,34.7815%20135.3800,34.6216%20135.5361,34.6210%20135.5329,34.6624%3C/gml:coordinates%3E%3C/gml:LinearRing%3E%3C/gml:outerBoundaryIs%3E%3C/gml:Polygon%3E%3C/Intersect%3E%3C/Filter%3E">Spatial
operator Intersects</a> suggests to use intersect with polygon. It
was not revised for some time but was working at the time of
implementation.<br>
<br>
You can also check examples in the the autotest tools;
<a class="moz-txt-link-freetext" href="http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/">http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/</a> (in
wfs_filter.map)<br>
<br>
<blockquote
cite="mid:a7b4a4443dffca261c32cb3068c7cce1.squirrel@webmail.marcobagni.com"
type="cite">
<pre wrap="">What is missing is the proper syntax on how to describe the feature
boundaries that you want to use to perform the spatial filter.
I have seen examples where your "SHAPE" was replaced by "Polygon" but also
for that statement was not clear how to say what projection (EPSG) use.
Fortunately the given (working) example for the BBOX filter that you can
find in the documentation is complete (covers also the declaration of the
EPSG directive) and works.
You and I (and many more users with the same problem) are facing the
"other side" of the Open Source. Who writes the code and releases it for
public domain, sometimes arranges things in such a way that, elegantly,
the users are "suggested" to turn to his commercial consultancy services
in order to have the information that makes the whole thing work; he has
to put some bread on his table too!
</pre>
</blockquote>
wow, that is an unfair comment. I think you are very wrong on your
assumptions and how you think people make a living on open source.
Non constructive comment here.<br>
<br>
<br>
Sometime it simply takes time to as answer to questions on the
mailing list and address every requests. Note that all things put in
trac as bugs or enhancements are considered at release time and
depending on time and how critical they are, they are addressed.<br>
<br>
<blockquote
cite="mid:a7b4a4443dffca261c32cb3068c7cce1.squirrel@webmail.marcobagni.com"
type="cite">
<pre wrap="">But almost all of the problems that we are facing in this specific area
depend mostly on us, since I find difficult to think that in so many years
nobody has tried to apply a Spatial filter different from BBOX.
Most probably these guys used this very list to ask the support from other
users but when it came the time to "return" something to the user's
community (for instance the simple howto recipe that solved their
problem), then all the animosity and kindness shown up in the request
message, disappeared and the found solution remained in their code without
being shared with the rest of us.
Let's start to SHARE. Be generous and the community shall become a real
living thing made of requests and also of solutions (real solution, well
written and comprehensible to everybody).
Many parts of Mapserver features are well supported by this community and
the knowledge is already generously shared. This peculiar area (SLD and
WFS filtering) is not but the solution is within our realm, just share it.
</pre>
</blockquote>
I have not tried or checked your specific issue you sent but
reading through it, I did not see a MapServer version. Try it with
6.0. If things don't work, provide a sample map/data/test that I can
reproduce and attach it to a trac bug. <br>
<br>
<br>
Assefa<br>
<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: <a class="moz-txt-link-abbreviated" href="mailto:yassefa@dmsolutions.ca">yassefa@dmsolutions.ca</a>
<a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a>
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
</pre>
</body>
</html>