GetFeatureInfo-Request
Eijnden, Bart van den (AGI)
b.vdeijnden at AGI.RWS.MINVENW.NL
Mon Oct 2 06:04:33 PDT 2006
Karin,
your request is wrong.
X and Y are in pixels, and you need to specify WIDTH, HEIGHT and BBOX. Basically a good practice is to copy your GetMap URL, change GetMap into GetFeatureInfo, add QUERY_LAYERS, add INFO_FORMAT and add X and Y.
Also, version should be 1.1.1 since Mapserver does not support WMS 1.3.0.
Best regards,
Bart
-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Karin Kampitsch
Verzonden: maandag 2 oktober 2006 15:02
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] GetFeatureInfo-Request
Dear List,
I have problems with implementing the GetFeatureInfo Request.
I would like to have information of a castle (=Schloss)
The Request is:
http://localhost/cgi-bin/mapserv.exe?map=maps/wk_wms.map&&VERSION=1.3.0&REQUEST=GetFeatureInfo&SERVICE=WMS&QUERY_LAYERS=Schloss&LAYERS=Schloss&x=485756.84&y=330575.04
In the Mapfile the layer "schloss" looks like this:
LAYER
NAME "Schloss"
GROUP "Sehenswuerdigkeiten"
STATUS ON
DATA "schlk"
TYPE POINT
TEMPLATE "template_schloss.html"
FOOTER "footer_schloss.html"
HEADER "header_schloss.html"
PROJECTION
"init=epsg:23033"
END
CLASS
SYMBOL "bild_schloss"
END
END
The content of the template TEMPLATE is:
<tr>
<td>[namedb]</td>
<td>[namegraphik]</td>
<td>[beschreibung]</td>
<td>[adresse]</td>
<td>[telefon]</td>
<td>[url]</td>
</tr>
The content of the template HEADER is:
<font size+1>
<b></b>
</font>
<p>
<table cellpadding=5 cellspacing=2 border=0>
<tr bgcolor=#CCCCCC></td>
<th>Name in der Datenbank</th>
<th>Name in der Graphikk</th>
<th>Beschreibung</th>
<th>Adresse</th>
<th>Telefon</th>
<th>Url</th>
</tr>
The content of the template FOOTER is:
</table><p>
So I do not know, if the contents of the templates are correct, or maybe there is something wrong in the request.
So,please could you help me?
Yours,
karin
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
informeren. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid van de mail contact met afzender op te nemen.
This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************
More information about the MapServer-users
mailing list