mapserv.c cgi var substitutions

Charlton Purvis cplist at EARTHLINK.NET
Thu Oct 20 08:58:05 EDT 2005


Hey, Steve:

I know you responded to an earlier post re. CLASSITEM's not playing nicely
w/ CGI var substitutions, but I'd like to see if wouldn't mind tagging these
three additions to mapserv.c to the next CVS commit.

      if(map->layers[j].classitem && (strstr(map->layers[j].classitem,
tmpstr) != NULL)) map->layers[j].classitem = gsub(map->layers[j].classitem,
tmpstr, msObj->request->ParamValues[i]);
      if(map->layers[j].labelangleitem &&
(strstr(map->layers[j].labelangleitem, tmpstr) != NULL))
map->layers[j].labelangleitem = gsub(map->layers[j].labelangleitem, tmpstr,
msObj->request->ParamValues[i]);
      if(map->layers[j].labelsizeitem &&
(strstr(map->layers[j].labelsizeitem, tmpstr) != NULL))
map->layers[j].labelsizeitem = gsub(map->layers[j].labelsizeitem, tmpstr,
msObj->request->ParamValues[i]);

Those seem to work for me.  Or if the mechanism to havec CLASSITEM,
LABELANGLEITEM, and LABELSIZEITEM part of the %var% family, I missed it.

Thanks,

Charlton



More information about the mapserver-users mailing list