[Mapserver-dev] Additional Map Keywords

woodbri at swoodbridge.com woodbri at swoodbridge.com
Tue Feb 24 10:22:03 EST 2004


I would vote for this. If it is not defined, then set it to some 
default and allocate the structures, but if it is set then allocate 
to the requested sizes. This would save me a lot of headaches have to 
remember to change these on every new release.

-Steve W.

On 24 Feb 2004 at 9:06, Yewondwossen Assefa wrote:

> Frank Warmerdam wrote:
> > Folks,
> > 
> > I would like to add a few additional keywords to the map file for 
> > controlling
> > configuration information at runtime without environment variables.  In
> > particular, I have in mind:
> > 
> > PROJ_LIB "<directory with PROJ.4 support files>"
> > CPL_CONFIG_OPTION "name" "value"
> > 
> > The PROJ_LIB is pretty much self explanatory.  The CPL_CONFIG_OPTION can be
> > used to control various things in GDAL and OGR.  For instance, setting the
> > GDAL_DATA CPL_CONFIG_OPTION would set the directory for GDAL to look in for
> > supporting data files (such as pcs.csv).  Some OGR drivers have behaviour
> > modified by CPL_CONFIG_OPTIONS, some GDAL issues like caching memory can
> > be controlled this way, and some GDAL drivers (such as DODS) can also be
> > influenced by configuration options.
> > 
> > My thinking is that these would be global options (in the mapObj), as they
> > can't easily be restricted to invidual layers due to the way they work
> > internally.
> > 
> > If we are really lucky this will forstall some of the requests for new
> > versions of mapserver compiled with different PROJ_LIB values, or questions
> > about how to set environment variables in different environments.
> > 
> > Any ideas of other similar config options we should offer?  Does the 
> > general
> > approach seem OK?
> > 
> 
>   Could this mecanism be used to control some of the MAX_XXX (like 
> maximum number of layers) used in Mapserver ? I think  if it does It 
> could really be benefical to several perople.
> 
> 
> -- 
> ----------------------------------------------------------------
> Assefa Yewondwossen
> Software Analyst
> 
> Email: assefa at dmsolutions.ca
> http://www.dmsolutions.ca/
> 
> Phone: (613) 565-5056 (ext 14)
> Fax:   (613) 565-0925
> ----------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> Mapserver-dev mailing list
> Mapserver-dev at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-dev
> 





More information about the mapserver-dev mailing list