Ruben, You can attach arbitrary variables to the URL that requests the image:
http://...mapserv?mode=map?myvar=123 Then in your mapfile you can set the FILTER item for your postgis layer and reference that variable: FILTER "mycolumn = %myvar%" This variable substition method only works on certain mapfile items such as FILTER and DATA but that should be sufficient to do a postgis query. and here's the official docs http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub Matt On 1/27/06, ruben rincon (sent by Nabble.com) <[EMAIL PROTECTED]> wrote: > Hello... everybody > > I'm about to finish my final project but I've found myself with a problem I > haven't been able to handle. > > I need to pass a variable to the map file in order to make a query using > postgis but I've no idea how to do it. > > There's no information about it but I know it's possible. I just want to > know how to declare the variable in the map file and the html file. > > So if you know how to do it or have a clue write me to this mail > > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > Thank you > ________________________________ > View this message in context: Passing a variable in mapserver > Sent from the Mapserver - User forum at Nabble.com. -- Matt Perry [EMAIL PROTECTED] http://www.perrygeo.net
