[mapserver-users] PHP MapScript - Max Layers / Classes

woodbri at swoodbridge.com woodbri at swoodbridge.com
Sun Oct 6 19:42:40 EDT 2002


Chip,

The limits are hard coded array sizes in map.h, the default has been 
50 layers. This is NOT the number of layers displayed, this is the 
maximum number of layers defined as in thoses in the mapfile plus any 
defined dynamically via CGI or mapscript. You database idea sound 
fine and would allow you to generate only the ones needed dynamically 
and limit the total if you want.

Not sure what the failure mechanism is if you exceed the limit.

-Steve W.

On 4 Oct 2002 at 9:05, Hankley, Chip wrote:

> Does anyone know if the maximum number of layers / classes issue
> (feature) that CGI MapServer has applies to PHP MapScript (I think
> it's like 50 / 300)?
> 
> If so, how does it manifest? Does the mapfile just not load? Is an
> error generated? Or does everything generate up to the limit?
> 
> I've got an app that is growing, and I think it may reach this level
> of data. Anyone have any experience with larger applications like
> this? I would like to NOT allow someone to turn on, say, 100 layers at
> a time, so the limit (if there is one) seems like a good idea. OTH, I
> may need to give access to more than 50 layers. I was thinking about
> moving to dynamically generated layers, using a database structure to
> store layer defs... but don't want to re-invent something someone else
> has done.
> 
> Any ideas?
> 
> Chip Hankley
> 





More information about the mapserver-users mailing list