[OpenLayers-Users] Pass parameters to mapfile

S.Reena reena at indiamail.com
Fri Nov 7 04:39:06 EST 2008


I am using the following data in my mapfile

 DATA "the_geom from ( select * from customised_point AS f where
user_id='userid' AND f.subcat_id IN (select subcat_id from subcat_info where
maincat_id =0))AS foo USING UNIQUE gid"


I want the userid ( used in the above query) to be passed to map file at the
time of layer creation something like this....

wms[5] = new OpenLayers.Layer.WMS.Untiled(
                  
"Customization","http://gis.rtbi-iitm.in/cgi-bin/mapserv?map=/var/www/html/customisation/mapfile/customNR.map"
+ userid  ,{'layers': "NR_point",'transparent':"true"},{'layers':
"NR_polygon",'transparent':"true"},{'isBaseLayer':false} );

How to do that?

Thanks in advance :)

Cheers,
Reena.
-- 
View this message in context: http://www.nabble.com/Pass-parameters-to-mapfile-tp20377405p20377405.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list