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

Kiks enrico.oemi at gmail.com
Thu Jul 29 06:35:37 PDT 2010


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.



More information about the MapServer-users mailing list