Mapfile - 50 Layers Maximum ?

Paul Ramsey pramsey at REFRACTIONS.NET
Fri Jan 13 10:09:37 PST 2006


It's a fact that there is a limit, but it is a compile-time option,  
so it is trivial to change.

Edit map.h and change MS_MAX_LAYERS to the number you want, then  
recompile.  Oddly, looking at the CVS HEAD of mapserver, I see that:

   #define MS_MAXLAYERS 200

What version are you using?  Perhaps someone upped the maximum in a  
more recent version.

P.

On 13-Jan-06, at 9:51 AM, Randy How wrote:

>
> Greetings,
>
> I've come across this rumor/fact, that there is a maximum of 50  
> layers in a
> map file.  Unknowingly  I was experimenting the use of MapServer  
> for QC'ing
> a project, that I put in 2,500 layers into a mapfile.  Yes, not  
> surprisingly
> MapServer baucked about this.  Then the first question is what is  
> the limit,
> then I found out that it was 50!
>
> I looked in to an existing mapfile that we have and it has 45  
> layers.  These
> layers are represented at different scales, and/or by spatial  
> reference
> (i.e. Indices for different UTM zones), then a watermark.
>
> We are moving into more global datasets which may be represented  
> the same
> way.  There's 60 UTM zones.  So the 50 layer limit is going to be a  
> problem
> in the short term.
>
> Can anyone verify this fact?  And is there a work around in place to
> accomplish these needs?
>
> Thanks, Randy
>
> ________________________________________________
> Randy How
>
> Geospatial Applications Developer
> Voice: +1-970-482-4400
> Fax: +1-970-482-4499
> Web: http://www.i3.com/
>
> i-cubed    	
> 201 Linden, Third Floor    	
> Fort Collins, CO 80524    	



More information about the MapServer-users mailing list