[Mapserver-users] Max number of layers craps out at about 295

Frank Warmerdam warmerdam at pobox.com
Fri Feb 13 10:44:42 EST 2004


Stephen Clark wrote:
> Pericles,
> 
> I chose the number 700 for each of the following :
> 
> #define MS_MAXCOLORS 700
> #define MS_MAXCLASSES 700
> #define MS_MAXLAYERS 700
> 
> 
> because I thought that each LAYER needed the same number of CLASSES and
> COLORS.
> 
> So can I assume that if I have about 3 classes per layer then I can use the
> following:
> 
> #define MS_MAXCOLORS 128
> #define MS_MAXCLASSES 128
> #define MS_MAXLAYERS 700
> 
> or perhaps a number less than 128?
> 
> I will try out this option and recompile MS with the above specs.

Stephen,

MAXLAYERS and MAXCOLORS should be pretty configurable.  But I would like
to discourage using values for MAXCOLORS other than 256 unless you have
looked through the implications.  Somethings are just #defined macros out
of habit ... not because they should be fiddled with.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the mapserver-users mailing list