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

Stephen Clark stephen.clark at focus.ca
Fri Feb 13 12:04:58 EST 2004


Frank and others,

I see in the 4.0.1 release that maxcolors is set to 256 and maxclasses is
set to 250.

#define MS_MAXCOLORS 256
#define MS_MAXCLASSES 250


So can I make the assumption that to increase the number of layers I DO NOT
NEED to touch these
#define's?

thanks,
Stephen


----- Original Message ----- 
From: "Frank Warmerdam" <warmerdam at pobox.com>
To: "Stephen Clark" <stephen.clark at focus.ca>
Cc: <mapserver-users at lists.gis.umn.edu>
Sent: Friday, February 13, 2004 7:44 AM
Subject: Re: [Mapserver-users] Max number of layers craps out at about 295


> 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