<div>&nbsp;</div>
<div>I am using Mapserver through Primagis, which uses mapserver as rendering engine.</div>
<div>&nbsp;</div>
<div>I have a road network which I want to display at varying zoom levels in different ways, with the roads rendered by stacking styles on top of each other: eg. a wide black line on top of which comes a narrower yellow line&nbsp;on top of which comes a narrow black line, which overall gives the impression of a divided highway as we know it from paper maps. 
</div>
<div>&nbsp;</div>
<div>I do this at varying zoom levels, but then when rendering I get the message </div>
<div>&nbsp;</div>
<div>MapServerChildError: insertStyle(): Child array error. Maximum number of class styles, 5, has been reached<br>&nbsp;</div>
<div>which comes from&nbsp;classobject.c.</div>
<div>&nbsp;</div>
<div>Obviously, I can change this in map.h and recompile. </div>
<div>&nbsp;</div>
<div>But is there a good reason for such a low maximum? Is it there to protect people from their own errors or is there a significant performance penalty or some such?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Ludwig</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>