RE [Polluriel potentiel] [mapserver-users] what is the way to get feature info in mapserver?

Steve.Toutant at inspq.qc.ca Steve.Toutant at inspq.qc.ca
Thu Jul 29 07:27:42 PDT 2010


What happen when you click on the map? Do you get an error?
What's in the mapserver log?


 




Kiks <enrico.oemi at gmail.com>@lists.osgeo.org 
Envoyé par : mapserver-users-bounces at lists.osgeo.org
29/07/2010 09:35 AM

A
mapserver-users at lists.osgeo.org
cc

Objet
[Polluriel potentiel]  [mapserver-users] what is the way to get feature 
info in mapserver?









Hi to all,
I'm trying to obtain information by clicking on the map and display it on 
a
popup window with Openlayers.
First of all, I added to my mapfile the template reference that is this:

<html xmlns="http://www.w3.org/1999/xhtml"> 
         <head> 
         </head> 
         <body> 
                                                  <tr bgcolor=#FFFFD0> 
   <td>[COD]</td> 
   <td>[FOG]</td> 
   <td>[NUM]</td> 
                                                  </tr> 
         </body> 
</html> 

(where COD, FOG and NUM are the name of the fields on the same table where
the spatial information of my layer are)

then I added to the LAYER section this:
     ...
     METADATA 
       "wms_title" "Parcels" 
       "wms_info_format"       "text/plain"
     END 
     TEMPLATE "..\template\Parcel.html"
     ...

then I worked on OpenLayer to make the WMS getFeatureInfo call.

I'm sure I'm forgiving or misunderstanding something important, but I 
can't
find what..
Has anybody suggestions or tutorial to do this working?

thanks again,
Kiks

-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/what-is-the-way-to-get-feature-info-in-mapserver-tp5347323p5347323.html

Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100729/06fe3aa1/attachment.htm>


More information about the MapServer-users mailing list