Quantcast

WMS GetFeatureInfo parameters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

WMS GetFeatureInfo parameters

Guillaume Sueur
Hi list,

I'm setting up a WMS server able to handle getFeatureInfo requests. It's
fine using this kind of parameters :
?map=/data/atlas/MD_77/MD_77.map&layers=MD_77&SRS=EPSG%3A27572&FORMAT=agg&SERVICE=WMS&VERSION=1.1.1&&REQUEST=GetFeatureInfo&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&BBOX=676399.0098411,2370419.2078563003,948746.3365309,2519140.3959517004&X=500&Y=250&INFO_FORMAT=text/plain&QUERY_LAYERS=MD_77&WIDTH=1031&HEIGHT=563
but on the MapServer WMS Howto, I've seen a working example I didn't
manage to use on my own server :

http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?&SERVICE=wms&VERSION=1.1.1&REQUEST=getfeatureinfo&LAYERS=popplace&QUERY_LAYERS=popplace&x=305&y=200

This second url doesn't use BBOX, SRS, HEIGHT, WIDTH parameters. When I
try to do that, mapserv complains about the lack.
So, how does that one work ? How does mapserv compute geo x,y without
BBOX nor h,w (as 305,200 does look as screen coordinates !) ? Is it a
kind of DMSolutions magic, something embedded into the mswms_gmap
wrapper which populates the missing params ?


Thanks,

--
Guillaume SUEUR
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Perform spatial filter in 2 different layers (e.g. "Which cities does Road X cross?")

simos
[UMN_MAPSERVER-USERS] WMS GetFeatureInfo parameters
 
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 | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Perform spatial filter in 2 different layers (e.g. "Which cities does Road X cross?")

Kralidis,Tom [Ontario]
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:[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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Perform spatial filter in 2 different layers (e.g. "Which cities does Road X cross?")

simos
RE: [UMN_MAPSERVER-USERS] Perform spatial filter in 2 different layers (e.g. "Which cities does Road X cross?")
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:[hidden email]]
Αποστολή: Τρι 19/02/2008 18:11
Προς: Simos Dimitrios; [hidden email]
Θέμα: 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
[[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

Loading...