[Mapserver-dev] Maptemplate->processLine

Daniel Morissette dmorissette at dmsolutions.ca
Wed Feb 4 15:51:21 EST 2004


Ned Harding wrote:
> All,
> 
> Since I'm new at working in the MapServer code base, I wanted to run a
> proposed change by the list and make sure no one has any issues.
> 
> The way I am using MapServer I want to get access to the variables in the
> MapServer template that are currently expanded in processLine.  I am
> planning to spilt this into 2 functions:
> 
> 1) msGetTemplateVariables which will get the variables into the mapservObj
> in new variables similar to ParamNames, ParamValues and NumParams
> 
> 2) processLine will then call msGetTemplateVariables if the variables are
> not available and then proceed similarly as before.
> 
> This will allow me access to those variables without using a template and
> should make processLine more efficient at the same time.
> 

 From where do you need access to those variables? From MapScript?

My main concern with this change is the amount of memory that will be 
allocated to temporarily store the values of all the expanded variables. 
  For instance the metadata variables can become quite large.  At the 
moment the same buffer is used for all the variables.

Since those variables just represent values already accessible in the 
mapObj from MapScript, could you not simply access the values directly 
in the mapObj?  (I guess if we understood what you are trying to do it 
would be easier to justify the change.)

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-dev mailing list