variable substitution

Huub Fleuren hfl at HOME.NL
Tue Aug 23 15:46:46 EDT 2005


>
> I was wondering. It's not that there are explicit excludes for certain 
> substitutes; is there a policy on it?

so there is a policy
(mapserv.c)

      if(map->layers[j].data && (strstr(map->layers[j].data, tmpstr) != 
NULL)) map->layers[j].data = gsub(map->layers[j].data, tmpstr, 
msObj->request->ParamValues[i]);
      if(map->layers[j].connection && (strstr(map->layers[j].connection, 
tmpstr) != NULL)) map->layers[j].connection = 
gsub(map->layers[j].connection, tmpstr, msObj->request->ParamValues[i]);
      if(map->layers[j].filter.string && 
(strstr(map->layers[j].filter.string, tmpstr) != NULL)) 
map->layers[j].filter.string = gsub(map->layers[j].filter.string, 
tmpstr, msObj->request->ParamValues[i]);

since wfs_filter is a filter, whereof the <Literal>parts are the 
variable substitute candidates, i would eloborate this for the wfs  filter

the only possibility now is

http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/wfs_park.map&service=wms&request=getmap&version=1.1.1&layers=wfs_park&styles=&srs=EPSG:42304&bbox=-2600000,-700000,3500000,3840000&width=610&height=450&format=png&transparent=true&exceptions=text/xml&bgcolor=0xffffff&PARK_=10&wfsfilter=<Filter><PropertyIsEqualTo><PropertyName>PARK_</PropertyName><Literal>10</Literal></PropertyIsEqualTo></Filter>
(still only 413 characters)
for a:
CONNECTION 
"http://localhost/cgi-bin/mapserv/bin/mapserv.exe?map=mapserv/bin/chameleon.map&filter=%wfsfilter%"


> Regards,Huub
>
>



More information about the mapserver-users mailing list