Hello.
 
Thank you very much for your help. For now, I have acquired the geometries
by performing another WFS request, but I'm not sure how to put them in
the <gml:coordinates> yet (any ideas are welcome). I haven't found an
example of this process either, although it must have been implemented 
many times in the past.
 
Dimitrios Simos

________________________________

Από: Kralidis,Tom [Burlington] [mailto:[EMAIL PROTECTED]
Αποστολή: Τρι 19/02/2008 18:11
Προς: Simos Dimitrios; MAPSERVER-USERS@LISTS.UMN.EDU
Θέμα: RE: [UMN_MAPSERVER-USERS] Perform spatial filter in 2 different layers 
(e.g. "Which cities does Road X cross?")




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&typ
ename=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:[EMAIL PROTECTED] On Behalf Of Simos Dimitrios
        Sent: 19 February, 2008 10:44 AM
        To: MAPSERVER-USERS@LISTS.UMN.EDU
        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



Reply via email to