Dimitrios,
Check out
http://mapserver.gis.umn.edu/docs/howto/filterencoding. A WFS
Intersect filter would look like:
http://example.org/url?&version=1.0.0&service=WFS&request=GetFeature&typename=popplace&filter=<Filter>
<Intersect><PropertyName>Geometry</PropertyName><gml:Polygon><gml:outerB
oundaryIs><gml:LinearRing>
<gml:coordinates>2488789,289552 2588789,289552 2588789,389552
2488789,389552 2488789,289552</gml:coordinates>
</gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersect></Filte
r>
Of course, how you acquire (WFS request) and setup / pass those
geometries is up to your middleware. I'm not exactly sure whether
MapServer's support of the Intersect filter works only with gml:Polygon,
or other types. Assefa would know best here.
Yiasou
..Tom
________________________________
From: UMN MapServer Users List
[mailto:
[hidden email]] On Behalf Of Simos Dimitrios
Sent: 19 February, 2008 10:44 AM
To:
[hidden email]
Subject: [UMN_MAPSERVER-USERS] Perform spatial filter in 2
different layers (e.g. "Which cities does Road X cross?")
Hello list.
I'm trying to perform somewhat more complex filters using the
WFS. More specifically, I want
to do the following, which I found in the list:
[..]
Ah, ok. For that kind of scenario (and I want to find :"The
Road with name X which Cities crosses ?"), you could:
- query a roads WFS to get geometry
- pass these geometries to a WFS Intersect filter to seek
..Tom
[..]
Supposing I manage to get the geometries of the roads contained
in a bounding box.
My question is: how will I pass the geometries that the first
filter returns to an intersect filter
in the other geometry using the KVP (Keyword-Value Pair) way?
Thanx a lot,
Mimis