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

Lime, Steve D (DNR) Steve.Lime at state.mn.us
Thu Jul 29 08:07:18 PDT 2010


Hi Kiks: Basic configuration looks fine, but what problem are you experiencing, what are the symptoms? Have you tried getInfo requests outside of the OL framework? If so, what happens?

Steve

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Kiks
Sent: Thursday, July 29, 2010 8:36 AM
To: mapserver-users at lists.osgeo.org
Subject: [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



More information about the MapServer-users mailing list